:root {
    --brand-dark: #071827;
    --brand-mid: #0f2740;
    --accent: #00b0ff;
    --accent-soft: rgba(0, 176, 255, 0.18);
    --bg-body: #f5f7fb;
    --card-bg: #ffffff;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
}
.brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.hero-image {
display: flex;
justify-content: center;
margin-bottom: .7rem; 
}

.hero-image img {
    width: min(180px, 92vw);  
    height: auto;
    display: block;
    border-radius: 1.1rem;     
}

.brand-title {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-dark);
}
.brand-title span {
    color: var(--accent);
}
.brand-sub {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.nav-links a {
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 0.2rem;
}
.nav-links a:hover {
    color: var(--brand-mid);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.16s ease-out;
}
.nav-links a:hover::after {
    transform: scaleX(1);
}

.hero-centered {
    position: relative;
    overflow: hidden;
    padding: 4rem 1.8rem 3.5rem;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(to right, rgba(226,232,240,0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226,232,240,0.4) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-centered-inner {
    max-width: 1800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-centered-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.hero-centered-title {
    font-size: 2.6rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 0.8rem;
}

.hero-centered-title span {
    color: var(--accent);
}

.hero-centered-sub {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 38rem;
    margin: 0 auto 1.6rem;
    line-height: 1.55;
}

.hero-centered-actions {
    margin-top: 1.1rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.btn-primary,
.btn-ghost {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 24px rgba(56,189,248,0.35);
}

.btn-ghost {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--brand-mid);
}

.btn-ghost:hover {
    border-color: var(--accent);
    background: #f9fafb;
}

.macbook-wrapper {
    margin-top: 2.1rem;
    display: flex;
    justify-content: center;
}
.macbook {
    width: 520px;
    max-width: 100%;
    border-radius: 0.9rem;
    background: #0b1120;
    padding: 8px 10px 12px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.35);
    position: relative;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.9s ease-out forwards;
    animation-delay: 0.1s;
}
.macbook-screen {
    border-radius: 0.7rem;
    background: radial-gradient(circle at top left,#1f2937,#020617 60%);
    border: 1px solid rgba(148,163,184,0.7);
    padding: 0.7rem 0.8rem;
    color: #e5e7eb;
    font-size: 0.78rem;
}
.macbook-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 6px;
    border-radius: 0 0 999px 999px;
    background: #020617;
}
.macbook-bottom {
    margin-top: 6px;
    height: 6px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(to right,#111827,#020617,#111827);
}

.screen-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:0.5rem;
}
.screen-dots {
    display:flex;
    gap:0.22rem;
}
.screen-dot {
    width:7px;
    height:7px;
    border-radius:999px;
    background:#4b5563;
}
.screen-title {
    font-size:0.72rem;
    text-transform:uppercase;
    letter-spacing:0.2em;
    color:#9ca3af;
}

.screen-chart {
    margin-top:0.25rem;
    display:grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap:0.25rem;
    align-items:flex-end;
    height:60px;
}
.screen-bar {
    border-radius:999px;
    background:linear-gradient(180deg,#38bdf8,#0ea5e9);
}
.screen-bar:nth-child(1){height:35%;}
.screen-bar:nth-child(2){height:55%;}
.screen-bar:nth-child(3){height:80%;}
.screen-bar:nth-child(4){height:50%;}
.screen-bar:nth-child(5){height:65%;}
.screen-bar:nth-child(6){height:72%;}

.screen-metrics {
    margin-top:0.7rem;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0.4rem;
}
.screen-label {
    font-size:0.7rem;
    color:#9ca3af;
}
.screen-value {
    font-size:0.88rem;
    font-weight:600;
    color:#f9fafb;
}
.screen-footer {
    margin-top:0.6rem;
    font-size:0.7rem;
    color:#9ca3af;
}
.screen-footer code {
    font-size:0.7rem;
    background:rgba(15,23,42,0.8);
    padding:0.1rem 0.35rem;
    border-radius:0.35rem;
}

.floating-shape {
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--accent-soft);
    border-radius: 18px;
    filter: blur(5px);
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}
.fs1 { top: 12%; left: 12%; }
.fs2 { top: 65%; right: 18%; width: 70px; height: 70px; }
.fs3 { top: 30%; right: 52%; width: 60px; height: 60px; }

main {
    max-width: 1800px;
    margin: -0.3rem auto 2rem;
    padding: 0 1.5rem;
}

.layer-section-title {
    margin-top: 2.4rem;
    text-align: center;
    font-size: 0.96rem;
    color: var(--text-muted);
}

.layers-stack {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.layer-card {
    background: var(--card-bg);
    border-radius: 1.1rem;
    border: 1px solid var(--border);
    padding: 1.3rem 1.4rem 1.4rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.55s ease-out,
        transform 0.55s ease-out,
        box-shadow 0.2s ease-out,
        border-color 0.2s ease-out;
    box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}

.layer-card::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:3px;
    background: linear-gradient(to right, #e5e7eb, #f3f4f6);
}

.layer-card.layer-1 {
    border-color: rgba(0,176,255,0.35);
    box-shadow: 0 12px 30px rgba(56,189,248,0.20);
}
.layer-card.layer-1::before {
    background: linear-gradient(to right, rgba(0,176,255,0.9), rgba(37,99,235,0.7));
}

.layer-card.layer-2 {
    border-color: rgba(15,39,64,0.35);
    box-shadow: 0 12px 30px rgba(15,39,64,0.25);
}
.layer-card.layer-2::before {
    background: linear-gradient(to right, #0f2740, rgba(7,24,39,0.9));
}

.layer-card.layer-3 {
    border-color: rgba(44,77,115,0.35);
    box-shadow: 0 12px 30px rgba(44,77,115,0.22);
}
.layer-card.layer-3::before {
    background: linear-gradient(to right, #2c4d73, rgba(0,176,255,0.6));
}

.layer-card:hover {
    box-shadow: 0 16px 40px rgba(15,23,42,0.20);
    border-color: rgba(148,163,184,0.95);
}

.layer-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.card-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-mid);
    margin-bottom: 0.4rem;
}

.layer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5f5;
}

.card-body {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr);
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.card-list li {
    margin-bottom: 0.35rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}
.card-bullet {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    margin-top: 0.4rem;
    background: #cbd5f5;
}

.layer-right {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.layer-highlight-box {
    border-radius: 0.9rem;
    border: 1px dashed var(--border);
    background: #f9fafb;
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.layer-highlight-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--brand-mid);
}

.layer-visual {
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0.55rem 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.layer-visual-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.layer-visual-console-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
}
.lv-block {
    height: 18px;
    border-radius: 0.4rem;
    background: linear-gradient(to right,#e5e7eb,#f9fafb);
}

.layer-visual-llm {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem;
    align-items: center;
}
.lv-circle {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
}
.lv-lines {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}
.lv-line {
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    width: 100%;
}

.layer-visual-agents {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.lv-step {
    border-radius: 0.4rem;
    border: 1px solid #e5e7eb;
    padding: 0.22rem 0.4rem;
    font-size: 0.72rem;
    background: #f9fafb;
}

.card-footer-pill {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #f9fafb;
}

.card-footer-pill code {
    font-size: 0.8rem;
}

.strip {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}
.strip-item {
    border-radius: 0.8rem;
    border: 1px dashed var(--border);
    background: #f9fafb;
    padding: 0.7rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.7s ease-out forwards;
}
.strip-item:nth-child(1){ animation-delay: 0.3s; }
.strip-item:nth-child(2){ animation-delay: 0.4s; }
.strip-item:nth-child(3){ animation-delay: 0.5s; }

.strip-item strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--brand-mid);
}

footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    background: #ffffff;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 1024px) {
    .card-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .hero-centered-title {
        font-size: 2.2rem;
    }
    main {
        max-width: 100%;
        padding: 0 1.2rem;
    }
}

@media (max-width: 800px) {
    .layers-stack {
        gap: 1.6rem;
    }
    .strip {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile navigation ──────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: background 0.15s;
}
.nav-hamburger:hover span { background: var(--brand-dark); }

@media (max-width: 640px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(15,23,42,0.08);
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links a:last-child { border-bottom: none; }

    .top-nav {
        position: relative;
    }

    .hero-centered-title {
        font-size: 1.8rem;
    }

    .hero-centered {
        padding: 2.5rem 1.2rem 2rem;
    }

    .hero-centered-sub {
        font-size: 0.9rem;
    }

    .layer-card {
        padding: 1rem 1rem 1.1rem;
    }
}
