/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === TOKENS === */
:root {
    --bg: #08080c;
    --bg-alt: #0e0e14;
    --bg-card: #111118;
    --bg-card-hover: #16161f;
    --border: #1e1e2a;
    --border-bright: #2a2a3e;
    --text: #d4d4dc;
    --text-dim: #6b6b7b;
    --text-muted: #44445a;
    --accent: #f5ab35;
    --accent-dim: rgba(245, 171, 53, 0.12);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.12);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.12);
    --amber: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.12);
    --blue: #60a5fa;
    --blue-dim: rgba(96, 165, 250, 0.12);
    --purple: #a78bfa;
    --purple-dim: rgba(167, 139, 250, 0.12);
    --mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
    --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === BASE === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-zeno {
    color: var(--accent);
    font-weight: 700;
}

.nav-badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 5px 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg) !important;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-ascii {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1300px;
    width: 100%;
}

.ascii-col {
    font-family: var(--mono);
    font-size: 0.65rem;
    line-height: 1.5;
    color: var(--text-muted);
    white-space: pre;
    flex-shrink: 0;
    width: 180px;
    overflow: hidden;
    opacity: 0.5;
    user-select: none;
}

.hero-center {
    flex: 1;
    text-align: center;
    padding: 40px 0;
}

.hero-sup {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-headline {
    font-family: var(--sans);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 32px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-static {
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.hero-flipper {
    display: block;
    height: 4.5rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 800px;
}

.flip-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.flip-item {
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 400;
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    padding: 0 20px;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-sep {
    color: var(--text-muted);
    font-size: 1.4rem;
}

/* === SECTIONS === */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-alt);
}

.section-header {
    margin-bottom: 56px;
}

.section-tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.section-header h2 {
    font-family: var(--sans);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    color: #fff;
}

/* === PHILOSOPHY === */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.phil-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.phil-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.phil-ascii {
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--accent);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
    white-space: pre;
    overflow-x: auto;
}

.phil-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.phil-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* === TIERS === */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.tier-extras {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s;
}

.tier-card:hover {
    border-color: var(--border-bright);
}

.tier-highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent-dim), transparent);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.tier-id {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 8px;
    border-radius: 3px;
}

.tier-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    flex: 1;
}

.tier-count {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.tier-agents {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tier-agents span {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    padding: 4px 8px;
    background: var(--bg);
    border-radius: 3px;
    border: 1px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

.tier-agents span:hover {
    border-color: var(--border);
    color: var(--text);
}

.agent-hot {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    background: var(--accent-dim) !important;
}

/* === SIGNALS === */
.signal-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: start;
}

.signal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.signal-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.signal-card:first-child .signal-label {
    color: var(--green);
}

.signal-card:last-child .signal-label {
    color: var(--blue);
}

.signal-ascii {
    font-family: var(--mono);
    font-size: 0.65rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
    min-height: 80px;
    white-space: pre;
}

.signal-desc p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 8px;
}

.signal-note {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent) !important;
    font-style: italic;
}

.signal-logic {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
}

.logic-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
}

.logic-op {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.logic-result {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.result-green { color: var(--green); }
.result-amber { color: var(--amber); }
.result-red { color: var(--red); }
.result-blue { color: var(--blue); }

/* === TERMINAL FEED === */
.feed-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 20px;
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.8;
    overflow-x: auto;
}

.feed-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    opacity: 0;
    transform: translateY(8px);
    animation: feedIn 0.4s ease forwards;
}

.feed-line:nth-child(1) { animation-delay: 0.3s; }
.feed-line:nth-child(2) { animation-delay: 0.8s; }
.feed-line:nth-child(3) { animation-delay: 1.3s; }
.feed-line:nth-child(4) { animation-delay: 1.8s; }
.feed-line:nth-child(5) { animation-delay: 2.3s; }
.feed-line:nth-child(6) { animation-delay: 2.8s; }
.feed-line:nth-child(7) { animation-delay: 3.3s; }
.feed-line:nth-child(8) { animation-delay: 3.8s; }
.feed-line:nth-child(9) { animation-delay: 4.3s; }
.feed-line:nth-child(10) { animation-delay: 4.8s; }
.feed-line:nth-child(11) { animation-delay: 5.3s; }

@keyframes feedIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-time {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 60px;
}

.feed-agent {
    flex-shrink: 0;
    width: 100px;
    font-weight: 600;
    text-align: right;
}

.agent-t1 { color: var(--purple); }
.agent-t2 { color: var(--red); }
.agent-t3 { color: var(--blue); }
.agent-t4 { color: var(--amber); }
.agent-t6 { color: var(--green); }

.feed-company {
    color: #fff;
    font-weight: 500;
    flex-shrink: 0;
    width: 120px;
}

.feed-signal {
    flex-shrink: 0;
    width: 68px;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 3px;
    text-align: center;
}

.signal-critical {
    color: var(--red);
    background: var(--red-dim);
}

.signal-high {
    color: var(--amber);
    background: var(--amber-dim);
}

.signal-medium {
    color: var(--blue);
    background: var(--blue-dim);
}

.signal-low {
    color: var(--text-dim);
    background: rgba(107, 107, 123, 0.12);
}

.signal-verdict {
    color: var(--red);
    background: var(--red-dim);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.feed-msg {
    color: var(--text-dim);
    flex: 1;
}

.feed-separator {
    padding: 2px 0 !important;
}

.feed-sep-line {
    color: var(--border);
    width: 100%;
    display: block;
}

.feed-cursor {
    padding: 4px 0 !important;
}

.cursor-blink {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* === COMPETITIVE EDGE === */
.edge-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.edge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.edge-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.edge-ascii {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.edge-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.edge-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* === CTA / EARLY ACCESS === */
.section-cta {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cta-headline {
    font-family: var(--sans);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 24px;
}

.cta-audiences {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audience-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(245, 171, 53, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.cta-form-wrap {
    position: relative;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-optional {
    text-transform: none;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%236b6b7b' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 4px;
}

.cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.form-success {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 48px 28px;
    text-align: center;
}

.success-icon {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.form-success h3 {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-ascii {
    font-family: var(--mono);
    font-size: 0.6rem;
    line-height: 1.4;
    color: var(--text-muted);
    white-space: pre;
    opacity: 0.4;
    text-align: right;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .philosophy-grid,
    .tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .edge-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .signal-logic {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ascii-col {
        display: none;
    }

    .hero-headline {
        font-size: 1.6rem;
    }

    .philosophy-grid,
    .tiers-grid,
    .tier-extras {
        grid-template-columns: 1fr;
    }

    .edge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-sep {
        display: none;
    }

    .feed-time,
    .feed-company {
        display: none;
    }

    .feed-agent {
        width: 70px;
        text-align: left;
    }

    .footer-ascii {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .edge-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-bright);
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
