/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    background: #0a0a0a;
    color: #bbb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    color: #fff;
    line-height: 1.2;
    font-weight: 600;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
::selection { background: rgba(99, 102, 241, 0.3); color: #fff; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #6366f1;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: #1a1a1a;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.nav-logo span { color: #6366f1; }
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1 !important;
    transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.8; }

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 9px; }
.nav-hamburger span:nth-child(3) { top: 18px; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1024px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: block; }
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}
.mobile-menu-inner a {
    font-size: 20px;
    font-weight: 500;
    color: #bbb;
    transition: color 0.2s;
}
.mobile-menu-inner a:hover,
.mobile-menu-inner a.active { color: #fff; }
.mobile-cta {
    margin-top: 16px;
    color: #6366f1 !important;
    font-weight: 600;
}

/* ===== PROGRESS INDICATOR (Desktop dots) ===== */
.progress-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    padding: 0;
    position: relative;
}
.progress-dot:hover { background: #555; }
.progress-dot.active {
    background: var(--dot-color, #6366f1);
    transform: scale(1.5);
    box-shadow: 0 0 8px var(--dot-color, #6366f1);
}
.progress-dot-label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.progress-dot:hover .progress-dot-label,
.progress-dot.active .progress-dot-label {
    opacity: 1;
}

@media (max-width: 1024px) {
    .progress-dots { display: none; }
}

/* ===== PROGRESS BAR (Mobile) ===== */
.progress-bar-mobile {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
    z-index: 999;
    display: none;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #6366f1;
    transition: width 0.15s ease-out;
}
@media (max-width: 1024px) {
    .progress-bar-mobile { display: block; }
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===== SECTION LABEL ===== */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 20px;
}

/* ===== HERO ===== */
.hero {
    padding: 160px 0 80px;
}
.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.02em;
    max-width: 800px;
    margin-bottom: 28px;
}
.hero-body {
    font-size: 17px;
    line-height: 1.75;
    color: #b0b0b0;
    max-width: 720px;
    margin-bottom: 56px;
}

/* ===== JOURNEY MAP ===== */
.journey-map {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
}
.jm-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 24px;
}
.jm-entry-nodes {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 24px;
}
.jm-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.jm-node:hover { opacity: 0.8; }
.jm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--agent-color, #666);
    box-shadow: 0 0 8px var(--agent-color, transparent);
}
.jm-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
}
.jm-converge {
    display: flex;
    justify-content: center;
    gap: 48px;
    height: 24px;
    position: relative;
}
.jm-converge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}
.jm-line {
    width: 1px;
    height: 100%;
    background: #333;
}
.jm-pipeline-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    margin: 24px 0;
}
.jm-pipeline-nodes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.jm-connector {
    width: 20px;
    height: 1px;
    background: #333;
    flex-shrink: 0;
}
.jm-layers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #1e1e1e;
    padding-top: 20px;
}
.jm-layer {
    font-size: 12px;
    color: #666;
}

@media (max-width: 640px) {
    .journey-map { padding: 28px 20px; }
    .jm-entry-nodes { gap: 28px; }
    .jm-pipeline-nodes { flex-direction: column; gap: 12px; }
    .jm-connector { width: 1px; height: 12px; }
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 100px 0;
}
.section-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 16px;
    line-height: 1.7;
    color: #999;
    max-width: 680px;
    margin-bottom: 48px;
}

/* ===== ENTRY POINT CARDS ===== */
.entry-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
@media (max-width: 768px) {
    .entry-cards { grid-template-columns: 1fr; }
}
.entry-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-top: 2px solid var(--agent-color, #333);
    border-radius: 12px;
    padding: 28px 24px;
    transition: border-color 0.2s, background 0.2s;
}
.entry-card:hover {
    border-color: #2a2a2a;
    background: #141414;
}
.entry-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.agent-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--agent-color, #666);
    box-shadow: 0 0 6px var(--agent-color, transparent);
    flex-shrink: 0;
}
.agent-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--agent-color, #999);
}
.entry-card-when {
    font-size: 15px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 16px;
}
.entry-card-output {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    font-style: italic;
}

/* Transition line */
.transition-line {
    text-align: center;
    color: #555;
    font-size: 15px;
    font-style: italic;
}
.transition-arrow {
    font-size: 20px;
    margin-top: 12px;
    color: #333;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===== AGENT BLOCKS ===== */
.agent-block {
    padding: 60px 0;
    border-bottom: 1px solid #141414;
}
.agent-block:last-child { border-bottom: none; }

.agent-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}
.agent-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--agent-color, #fff);
}

.agent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .agent-grid { grid-template-columns: 1fr; }
}

.agent-cell {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 24px;
}
.agent-cell-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 12px;
}
.agent-cell p {
    font-size: 15px;
    color: #b0b0b0;
    line-height: 1.7;
}

/* You Get - brighter */
.agent-cell-output p {
    color: #ddd;
    font-weight: 500;
}
.speed-note {
    margin-top: 12px;
    font-size: 13px;
    font-style: italic;
    color: #555;
}

/* Connects To - muted accent */
.agent-cell-connects p {
    font-style: italic;
    color: #888;
}

/* ===== PIPELINE DIVIDER ===== */
.pipeline-divider {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 60px 0;
}
.pipeline-divider-line {
    flex: 1;
    height: 1px;
    background: #1e1e1e;
}
.pipeline-divider-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-style: italic;
    color: #666;
    white-space: nowrap;
    text-align: center;
}
@media (max-width: 640px) {
    .pipeline-divider-text { font-size: 15px; white-space: normal; text-align: center; }
    .pipeline-divider { flex-direction: column; gap: 12px; }
    .pipeline-divider-line { width: 60px; }
}

/* ===== PIPELINE THREAD ===== */
.pipeline-thread {
    position: relative;
    padding-left: 28px;
}
.pipeline-thread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #3FB950 0%, #F97316 33%, #818CF8 66%, #22D3EE 100%);
    opacity: 0.3;
}
.pipeline-agent {
    position: relative;
}
.pipeline-agent::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 72px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--agent-color, #666);
    box-shadow: 0 0 6px var(--agent-color, transparent);
    z-index: 1;
}

@media (max-width: 768px) {
    .pipeline-thread { padding-left: 20px; }
    .pipeline-thread::before { left: 4px; }
    .pipeline-agent::before { left: -20px; top: 72px; width: 7px; height: 7px; }
}

/* ===== CAPABILITIES GRID ===== */
.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .capabilities-grid { grid-template-columns: 1fr; }
}
.capability-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 28px 24px;
}
.capability-icon {
    font-size: 20px;
    color: #6366f1;
    margin-bottom: 12px;
}
.capability-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}
.capability-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.65;
}

/* ===== LAYERS GRID ===== */
.layers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .layers-grid { grid-template-columns: 1fr; }
}
.layer-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 32px 28px;
}
.layer-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.layer-when {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 16px;
}
.layer-card > p {
    font-size: 15px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 20px;
}
.layer-example {
    background: #0e0e0e;
    border: 1px solid #191919;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.layer-example-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 8px;
}
.layer-example p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}
.layer-bottom {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

/* ===== CONNECTIONS ===== */
.connections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}
.connection-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-left: 3px solid;
    border-radius: 10px;
    padding: 24px;
}
.connection-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.connection-card p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}
.connection-journey {
    background: linear-gradient(135deg, rgba(129,140,248,0.08), rgba(99,102,241,0.04));
    border: 1px solid rgba(129,140,248,0.2);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}
.connection-journey-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: #818CF8;
    margin-bottom: 12px;
}
.connection-journey p {
    font-size: 15px;
    color: #999;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .connections-grid { grid-template-columns: 1fr; }
}

/* ===== TIPS ===== */
.tips-general {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 56px;
}
.tip-item {
    display: flex;
    gap: 20px;
}
.tip-num {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    flex-shrink: 0;
    width: 44px;
    line-height: 1;
    padding-top: 4px;
}
.tip-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ddd;
    margin-bottom: 6px;
}
.tip-item p {
    font-size: 15px;
    color: #999;
    line-height: 1.7;
}

.tips-agent-headline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}
.tips-agent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .tips-agent-grid { grid-template-columns: 1fr; }
}
.tip-agent {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    border-left: 2px solid var(--agent-color, #333);
}
.tip-agent-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--agent-color, #999);
    display: block;
    margin-bottom: 8px;
}
.tip-agent p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta-section {
    padding: 120px 0;
}
.cta-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 36px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #6366f1;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-primary:hover { background: #5558e6; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: #bbb;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #333;
    border-radius: 8px;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: #555; color: #fff; }

/* ===== FOOTER ===== */
.footer {
    padding: 48px 0;
    border-top: 1px solid #141414;
    text-align: center;
}
.footer p {
    font-size: 13px;
    color: #444;
}
