:root {
    --bg-body: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-2: #22c55e;
    --radius-xl: 26px;
    --transition-fast: 220ms ease-out;
    --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.16);
    --shadow-card: 0 18px 55px rgba(15, 23, 42, 0.10);
    --ink: #0b1220;
    --panel: rgba(255, 255, 255, .72);
    --panel-border: rgba(15, 20, 35, .10);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    scroll-behavior: smooth;
}

a {
    color: inherit;
}

main {
    padding-top: 84px;
}

/* NAVBAR ---------------------------------------------------- */
.navbar-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: conic-gradient(from 200deg, #22d3ee, #4f46e5, #f97316, #22d3ee);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-right: 8px;
}

.nav-logo-mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, #ffffff, transparent 55%);
    opacity: 0.85;
}

.nav-logo-text {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563 !important;
    opacity: 0.9;
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent) !important;
}

.btn-pill {
    border-radius: 999px;
    padding-inline: 22px;
    padding-block: 9px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
}

.btn-pill-primary {
    background: #111827;
    color: #f9fafb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.btn-pill-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.4);
    color: #f9fafb;
}

.btn-pill-ghost {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.btn-pill-ghost:hover {
    background: #f9fafb;
}

.btn-icon-circle {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* HERO ------------------------------------------------------ */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #f9fafb, #ffffff);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 0.78rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 18px;
}

.hero-headline {
    font-weight: 900;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    letter-spacing: -0.05em;
    margin-bottom: 12px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.18rem;
    max-width: 720px;
    margin-inline: auto;
    color: var(--text-muted);
}

.hero-cta {
    margin-top: 28px;
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-metrics {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.metric-chip {
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .70);
    backdrop-filter: blur(10px);
    padding: 10px 12px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    min-width: 170px;
    text-align: left;
}

.metric-chip .num {
    font-weight: 950;
    letter-spacing: -.02em;
    font-size: 1.05rem;
    color: #0b1020;
}

.metric-chip .txt {
    color: rgba(20, 25, 40, .60);
    font-size: .86rem;
    margin-top: 2px;
}

/* CIRCUIT BACKGROUND ---------------------------------------- */
.circuit-bg {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    z-index: 1;
    opacity: 0.85;
    pointer-events: none;
}

.circuit-bg path {
    fill: none;
    stroke: rgba(148, 163, 184, 0.55);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.circuit-bg .glow {
    fill: #38bdf8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.95));
    opacity: 0.95;
}

/* GENERAL SECTIONS ----------------------------------------- */
.section-padding {
    padding-top: 92px;
    padding-bottom: 92px;
}

.section-heading-lg {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.section-lead {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.soft-panel {
    border-radius: 24px;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
}

/* VIDEO ----------------------------------------------------- */
.video-shell {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #050b14, #0b1220);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* TRUST / COMPLIANCE --------------------------------------- */
.trust-strip {
    background: radial-gradient(1200px 500px at 20% 0%, rgba(58, 146, 255, .12), transparent 60%),
        radial-gradient(900px 500px at 90% 40%, rgba(34, 197, 94, .10), transparent 60%),
        #ffffff;
}

.badge-iso {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .70);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .06);
    font-weight: 800;
    font-size: .92rem;
    white-space: nowrap;
}

.badge-iso i {
    color: var(--accent);
    font-size: 1.1rem;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: center;
}

.logo-tile {
    border-radius: 18px;
    border: 1px dashed rgba(15, 20, 35, .16);
    background: rgba(255, 255, 255, .55);
    padding: 14px 12px;
    text-align: center;
    box-sizing: border-box;
}

.logo-tile img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


@media (max-width: 992px) {
    .logo-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .logo-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CASE STUDY ------------------------------------------------ */
.case-hero {
    background: radial-gradient(1200px 500px at 10% 0%, rgba(99, 102, 241, .14), transparent 60%),
        radial-gradient(900px 500px at 90% 40%, rgba(56, 189, 248, .12), transparent 60%),
        #ffffff;
}

.case-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .20);
    color: rgba(30, 60, 200, .95);
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: .02em;
    margin-bottom: 10px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .pill-icon-row {
        gap: 12px;
    }

    .pill-icon {
        width: 48px;
        height: 48px;
    }

    .persona-overlay {
        padding: 24px 20px 20px;
    }

    .persona-meta {
        padding: 16px 18px;
    }
}

.kpi {
    border-radius: 18px;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .72);
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .06);
}

.kpi .big {
    font-weight: 950;
    font-size: 1.25rem;
    letter-spacing: -.02em;
    color: #0b1020;
}

.kpi .small {
    color: rgba(20, 25, 40, .58);
    font-size: .9rem;
    margin-top: 4px;
}

/* DASHBOARD ------------------------------------------------- */
.dash-section {
    background: radial-gradient(1200px 500px at 20% 0%, rgba(58, 146, 255, .14), transparent 60%),
        radial-gradient(900px 500px at 90% 40%, rgba(160, 90, 255, .12), transparent 60%),
        #ffffff;
}

.dash-card {
    border-radius: 24px;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(12px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .10);
    overflow: hidden;
}

.dash-head {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(15, 20, 35, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-title {
    font-weight: 900;
    margin: 0;
    letter-spacing: -.02em;
    color: #0b1020;
}

.dash-sub {
    color: rgba(20, 25, 40, .60);
    font-size: .9rem;
    margin: 0;
}

.dash-body {
    padding: 18px;
}

.stat-mini {
    border: 1px solid rgba(15, 20, 35, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .65);
    padding: 12px;
}

.stat-mini .n {
    font-weight: 950;
    color: #0b1020;
    letter-spacing: -.02em;
}

.stat-mini .t {
    color: rgba(20, 25, 40, .58);
    font-size: .88rem;
    margin-top: 2px;
}

/* PROJECTS (your section, kept) ---------------------------- */
.projects {
    position: relative;
    background: radial-gradient(1200px 500px at 20% 0%, rgba(58, 146, 255, .18), transparent 60%),
        radial-gradient(900px 500px at 90% 40%, rgba(140, 70, 255, .18), transparent 60%), #ffffff;
}

.projects-title {
    font-weight: 900;
    letter-spacing: -.02em;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin: 0 0 .25rem;
}

.projects-sub {
    color: rgba(20, 25, 40, .65);
    margin: 0;
    max-width: 52ch;
}

.projects-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.proj-item {
    text-align: left;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 16px 16px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.proj-item::before {
    content: "";
    position: absolute;
    inset: -60px -40px auto auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 30%, rgba(80, 140, 255, .35), transparent 60%);
    filter: blur(6px);
    opacity: .0;
    transition: opacity .18s ease;
}

.proj-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
    border-color: rgba(70, 120, 255, .25);
}

.proj-item:hover::before {
    opacity: 1;
}

.proj-item.active {
    border-color: rgba(70, 120, 255, .35);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .10);
    background: linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(255, 255, 255, .70));
}

.proj-tag {
    display: inline-flex;
    font-size: .75rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(55, 120, 255, .10);
    color: rgba(30, 60, 200, .9);
    font-weight: 900;
}

.proj-name {
    margin-top: 10px;
    font-weight: 950;
    font-size: 1.05rem;
    color: #0b1020;
}

.proj-meta {
    margin-top: 6px;
    color: rgba(20, 25, 40, .55);
    font-size: .9rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(20, 25, 40, .35);
}

.projects-detail .detail-shell {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .10);
    padding: 22px;
}

.detail-top {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.detail-kicker {
    font-weight: 950;
    color: rgba(65, 115, 255, .95);
    letter-spacing: .02em;
}

.detail-title {
    font-weight: 950;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    margin: 6px 0 6px;
    color: #090f1f;
}

.detail-desc {
    margin: 0;
    color: rgba(20, 25, 40, .62);
    max-width: 60ch;
}

.detail-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-neo,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.btn-neo {
    color: #0b1020;
    background: linear-gradient(135deg, rgba(90, 150, 255, .25), rgba(160, 90, 255, .18));
    border: 1px solid rgba(80, 140, 255, .25);
}

.btn-neo:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .10);
}

.btn-ghost {
    color: #0b1020;
    border: 1px solid rgba(15, 20, 35, .15);
    background: rgba(255, 255, 255, .55);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .08);
}

.detail-split {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    margin-top: 18px;
}

@media (max-width: 992px) {
    .detail-split {
        grid-template-columns: 1fr;
    }
}

.detail-media {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 20, 35, .10);
    background: linear-gradient(135deg, #0b1220, #101a33);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    aspect-ratio: 16 / 9;
    position: relative;
}

.detail-media img,
.detail-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-block {
    border-radius: 18px;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .55);
    padding: 14px;
}

.info-label {
    font-weight: 950;
    color: #0b1020;
    margin-bottom: 8px;
}

.info-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(20, 25, 40, .62);
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    border-radius: 18px;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .55);
    padding: 14px;
}

.stat-num {
    font-weight: 950;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    color: #0b1020;
}

.stat-txt {
    color: rgba(20, 25, 40, .58);
    font-size: .9rem;
}

.info-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .85rem;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .62);
    color: rgba(20, 25, 40, .75);
}

.detail-bottom {
    margin-top: 18px;
    border-top: 1px solid rgba(15, 20, 35, .10);
    padding-top: 16px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.tl-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(70, 120, 255, .9);
    margin-top: 6px;
    box-shadow: 0 0 0 6px rgba(70, 120, 255, .12);
}

.tl-title {
    font-weight: 950;
    color: #0b1020;
}

.tl-desc {
    color: rgba(20, 25, 40, .62);
}

.bg-orb {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: .22;
    pointer-events: none;
}

.orb-1 {
    left: -160px;
    top: -160px;
    background: radial-gradient(circle at 30% 30%, rgba(70, 120, 255, .9), transparent 60%);
}

.orb-2 {
    right: -180px;
    bottom: -200px;
    background: radial-gradient(circle at 30% 30%, rgba(160, 90, 255, .9), transparent 60%);
}

/* TEAM ------------------------------------------------------ */
.team-card img {
    height: 380px;
    object-fit: cover;
}

/* MAP ------------------------------------------------------- */
.map-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(15, 20, 35, .10);
    box-shadow: var(--shadow-card);
}

.map-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, .78);
    padding: 14px 18px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 10;
    max-width: 360px;
}

/* LEGAL ----------------------------------------------------- */
.legal-card {
    border-radius: 24px;
    border: 1px solid rgba(15, 20, 35, .10);
    background: rgba(255, 255, 255, .70);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .08);
    padding: 20px;
    height: 100%;
}

.legal-card h5 {
    font-weight: 950;
    letter-spacing: -.02em;
}

.legal-card p,
.legal-card li {
    color: rgba(20, 25, 40, .62);
}

/* SCROLL REVEAL -------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 80ms;
}

.delay-2 {
    transition-delay: 160ms;
}

.delay-3 {
    transition-delay: 240ms;
}

/* RESPONSIVE ------------------------------------------------ */
@media (max-width: 991.98px) {
    .hero-wrapper {
        min-height: 82vh;
    }

    .map-overlay {
        left: 12px;
        right: 12px;
    }
}



/* ICON STRIP + CODE PANEL ---------------------------------- */
.pill-icon-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 24px;
}

.pill-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #f9fafb;
    box-shadow: 0 4px 18px rgba(148, 163, 184, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #111827;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.pill-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(148, 163, 184, 0.4);
    background: #ffffff;
}

.code-panel {
    border-radius: 34px;
    background: #020617;
    color: #e5e7eb;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    min-height: 360px;
}

.code-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    background: radial-gradient(circle at 0 0, #1d283a, #020617);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.code-dots {
    display: inline-flex;
    gap: 6px;
}

.code-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #4b5563;
}

.code-body {
    padding: 16px 22px 22px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
        Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    max-height: 420px;
    overflow: auto;
}

.code-line {
    opacity: 0.88;
    display: flex;
    gap: 14px;
}

.code-line span.code-idx {
    color: #4b5563;
    min-width: 20px;
    text-align: right;
    user-select: none;
}

.code-line-highlight {
    background: linear-gradient(90deg,
            rgba(56, 189, 248, 0.18),
            transparent);
    border-radius: 10px;
    padding-inline: 10px;
    margin-inline: -10px;
}

.code-keyword {
    color: #f97373;
}

.code-func {
    color: #60a5fa;
}

.code-str {
    color: #34d399;
}

/* === IDE CORE STORY SCROLL ================================ */
#ide-core {
    padding-top: 96px;
    padding-bottom: 120px;
}

.ide-story-kicker {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.ide-story-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ide-story-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 420px;
}

.ide-story-list {
    position: relative;
}

.ide-story-step {
    padding-block: 40px;
    border-left: 1px solid rgba(148, 163, 184, 0.35);
    padding-left: 22px;
    position: relative;
    cursor: default;
    transition: color 220ms ease-out, transform 220ms ease-out;
    color: var(--text-muted);
}

.ide-story-step::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 52px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.9);
    background: #ffffff;
    transition:
        background 220ms ease-out,
        border-color 220ms ease-out,
        transform 220ms ease-out,
        box-shadow 220ms ease-out;
}

.ide-story-step:first-child {
    padding-top: 10px;
}

.ide-story-step:last-child {
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ide-story-step.active {
    color: #111827;
    transform: translateY(-2px);
}

.ide-story-step.active .ide-story-title {
    color: #111827;
}

.ide-story-step.active::before {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
    transform: scale(1.05);
}

.ide-story-step+.ide-story-step {
    margin-top: 32px;
}

/* คอลัมน์ขวา sticky จริง ๆ */
.ide-screen-col {
    position: sticky;
    top: 120px;
    /* ชดเชย navbar ให้ค้างกลางจอ */
    align-self: flex-start;
}

.ide-story-screen-frame {
    border-radius: 36px;
    background: #020617;
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.7);
    padding: 10px;
    overflow: hidden;
    min-height: 380px;
    position: relative;
}

.ide-story-screen {
    position: absolute;
    inset: 10px;
    border-radius: 26px;
    color: #e5e7eb;
    background: radial-gradient(circle at top, #020617, #000000);
    opacity: 0;
    transform: translateY(20px) scale(0.99);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.ide-story-screen.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 1;
}

.ide-story-header {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.ide-story-dots {
    display: inline-flex;
    gap: 6px;
}

.ide-story-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #4b5563;
}

.ide-story-body {
    padding: 18px 18px 40px;
    font-size: 0.82rem;
}

.ide-story-body pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
        Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ide-story-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0 0 26px 26px;
    padding: 6px 16px;
    font-size: 0.75rem;
    color: #9ca3af;
    background: linear-gradient(to right, #020617, #030712);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ide-story-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ide-story-pill span.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

/* PERSONA SLIDER ------------------------------------------- */
.persona-section {
    background: #f3f4f6;
}

.persona-shell {
    border-radius: 34px;
    background: #f9fafb;
    padding: 16px;
    box-shadow: 0 26px 70px rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.persona-track-wrapper {
    overflow: hidden;
    border-radius: 28px;
}

.persona-track {
    display: flex;
    transition: transform 400ms ease-out;
}

.persona-card {
    min-width: 100%;
    background: radial-gradient(circle at 20% 10%, #f9fafb, #d1d5db);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
}

.persona-photo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(96, 165, 250, 0.45), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.35), transparent 55%),
        radial-gradient(circle at 40% 80%, rgba(52, 211, 153, 0.4), transparent 55%),
        linear-gradient(135deg, #e5e7eb, #9ca3af);
    filter: saturate(1.15);
}

.persona-overlay {
    position: relative;
    padding: 32px 36px 28px;
    color: #111827;
}

.persona-role {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(15, 23, 42, 0.5);
}

.persona-role span.accent-bar {
    display: inline-block;
    width: 3px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #22c55e, #0ea5e9);
    margin-left: 8px;
    transform: translateY(4px);
}

.persona-meta {
    position: relative;
    background: rgba(249, 250, 251, 0.92);
    padding: 18px 24px;
    border-radius: 24px 24px 0 0;
}

.persona-meta h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.persona-meta p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.persona-meta a {
    font-size: 0.88rem;
    text-decoration: none;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.persona-meta a span.arrow {
    font-size: 1rem;
    transform: translateY(1px);
}

.persona-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.persona-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 180ms ease-out,
        transform 180ms ease-out,
        box-shadow 180ms ease-out,
        border-color 180ms ease-out;
}

.persona-nav-btn:hover {
    background: #eff6ff;
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.55);
}

.persona-nav-btn[disabled] {
    opacity: 0.35;
    cursor: default;
    transform: none;
    box-shadow: none;
    background: #ffffff;
}