@font-face {
    font-family: 'Noto Sans Mono';
    font-style: normal;
    font-weight: 400 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('/fonts/NotoSansMono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --do: #f59e0b;
    --doing: #3b82f6;
    --done: #22c55e;
    --blue: var(--doing);
    --green: var(--done);
    --radius: 20px;
    --max-width: 1100px;
    --reading-width: 720px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1e293b, #020617);
    color: var(--text);
    line-height: 1.6;
}

.mono,
.logo-mark,
.brand {
    font-family: "Noto Sans Mono", monospace;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

.site-header {
    text-align: center;
    padding: 32px 20px 16px;
}

.noise {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.logo-mark {
    font-size: 40px;
    color: var(--blue);
    font-weight: 800;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.28));
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
}

.logo-mark-small {
    font-size: 24px;
    margin-bottom: 0;
    margin-right: 0.35rem;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.22));
}

.logo-bracket {
    display: inline-block;
}

.logo-bracket:first-child {
    margin-right: -0.04em;
}

.logo-bracket:last-child {
    margin-left: -0.04em;
}

.logo-eye {
    display: inline-block;
    transform: translateY(-0.08em);
    animation: eye-pulse 3s ease-in-out infinite;
}

@keyframes eye-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.brand {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 18px;
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
    outline: none;
}

.site-nav a.nav-active {
    color: var(--text);
    border-bottom: 2px solid var(--blue);
}

.page-content {
    padding: 8px 0;
}

.hero {
    text-align: center;
    padding: 36px 20px;
}

h1 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.subheadline {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 28px;
}

.cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 0;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 34px;
    border: none;
    cursor: pointer;
}

.cta-secondary {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
    background: rgba(59, 130, 246, 0.1);
    opacity: 1;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-ctas .cta {
    margin-bottom: 0;
}

.cta:hover,
.cta:focus-visible {
    opacity: 0.92;
}

.cta::after {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.4em;
    vertical-align: middle;
}

.terminal {
    background: #020617;
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.line {
    margin: 6px 0;
}

.noise-text {
    color: #64748b;
}

.do-text {
    color: var(--do);
}

.focus-text,
.doing-text {
    color: var(--doing);
}

.done-text {
    color: var(--done);
}

/* ---- status icons: ○ = do, ⦿ = doing, ● = done ---- */

.icon-do::before {
    content: "○ ";
    color: var(--do);
}

.icon-doing::before {
    content: "⦿ ";
    color: var(--doing);
}

.icon-done::before {
    content: "● ";
    color: var(--done);
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 34px 20px;
    margin: 24px 0;
    text-align: center;
}

h2 {
    margin-bottom: 18px;
    font-size: 1.5rem;
    color: #dbeafe;
}

h3 {
    margin-bottom: 10px;
}

.flow-grid,
.steps,
.pricing {
    display: grid;
    gap: 20px;
}

.flow-item,
.step,
.price-card {
    padding: 20px;
    border-radius: 16px;
    background: #020617;
}

.flow-item strong {
    display: block;
    margin-bottom: 8px;
}

.step-number {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--blue);
}

.price {
    font-size: 1.5rem;
    margin: 10px 0;
}

.content {
    max-width: var(--reading-width);
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 34px 24px;
}

.content p {
    margin-bottom: 14px;
    color: var(--muted);
}

.content a {
    color: var(--blue);
}

.content a:hover,
.content a:focus-visible {
    color: #bfdbfe;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.legal-content h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.site-footer {
    text-align: center;
    margin-top: 36px;
    padding-bottom: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer > div {
    margin: 6px 0;
}

.footer-brand-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.footer-brand {
    margin-bottom: 0;
    margin-right: 0.2rem;
}

.site-footer a {
    color: var(--muted);
    margin: 0 8px;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--text);
}

/* ---- home page vertical stack (tetris-style) ---- */

.home-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 24px auto;
    max-width: 320px;
    font-size: 1.1rem;
}

.home-stack-step {
    width: 100%;
    padding: 14px 0;
    background: #020617;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
    border: 1px solid #1e293b;
    border-bottom: none;
}

.home-stack-step:last-child {
    border-bottom: 1px solid #1e293b;
}

.home-stack-do {
    color: var(--do);
    border-color: rgba(245, 158, 11, 0.3);
}

.home-stack-now {
    color: #fff;
    background: var(--doing);
    border-color: var(--doing);
}

.home-stack-now .icon-doing::before {
    color: #fff;
}

.home-stack-now + .home-stack-arrow {
    color: var(--doing);
}

.home-stack-past {
    color: var(--done);
    border-color: rgba(34, 197, 94, 0.3);
    opacity: 0.6;
}

.home-stack-arrow {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
    padding: 4px 0;
}

.home-stack-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}

/* ---- mobile nav toggle ---- */

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--muted);
    color: var(--muted);
    font-size: 1.4rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 auto 12px;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    color: var(--text);
    border-color: var(--text);
    outline: none;
}

/* ---- section intro text ---- */

.section-intro {
    color: var(--muted);
    margin-bottom: 20px;
    max-width: var(--reading-width);
    margin-left: auto;
    margin-right: auto;
}

/* ---- muted text in terminals ---- */

.muted-text {
    color: #64748b;
}

/* ---- horizon flow (how-it-works) ---- */

.horizon-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.horizon-item {
    background: #020617;
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 140px;
    text-align: center;
}

.horizon-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
}

.horizon-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.horizon-now {
    border: 1px solid var(--blue);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.horizon-arrow {
    color: var(--muted);
    font-size: 1.4rem;
}

.horizon-aside {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.horizon-aside .horizon-item {
    opacity: 0.7;
}

/* ---- manifesto (about page) ---- */

.manifesto p {
    max-width: var(--reading-width);
    margin: 0 auto 16px;
    color: var(--muted);
    text-align: left;
    line-height: 1.75;
}

.beliefs p {
    max-width: var(--reading-width);
    margin: 0 auto 12px;
    text-align: left;
}

.beliefs strong {
    color: var(--text);
}

/* ---- pricing page ---- */

.price-detail {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.early-access-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.early-access-form .cta {
    margin-bottom: 0;
}

.email-input {
    padding: 14px 20px;
    border-radius: 0;
    border: 1px solid #334155;
    background: #020617;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    min-width: 260px;
}

.email-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.flash-message {
    margin-bottom: 8px;
}

.flash-success {
    color: var(--green);
    font-weight: 700;
}

.flash-error {
    color: #ef4444;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---- FAQ ---- */

.faq {
    max-width: var(--reading-width);
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #1e293b;
    padding: 16px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+ ";
    color: var(--blue);
    font-weight: 700;
}

.faq-item[open] summary::before {
    content: "- ";
}

.faq-item p {
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.6;
}

/* ---- funnel animation (how-it-works) ---- */

.funnel-anim-wrap {
    text-align: center;
    margin: 24px auto;
}

.funnel-anim {
    max-width: 100%;
    height: auto;
}

/* ---- funnel diagram (how-it-works) ---- */

.funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 420px;
    margin: 24px auto;
}

.funnel-row {
    width: 100%;
    display: flex;
    gap: 0;
}

.funnel-split {
    display: flex;
    gap: 2px;
}

.funnel-split .funnel-block {
    flex: 1;
}

.funnel-block {
    width: 100%;
    padding: 18px 24px;
    background: #020617;
    border: 1px solid #1e293b;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
}

.funnel-track {
    text-align: center;
    margin-bottom: 8px;
}

.funnel-track-name {
    color: var(--muted);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.funnel-noise {
    display: flex;
    justify-content: center;
    gap: 14px;
    color: var(--do);
    font-size: 1.6rem;
    opacity: 0.5;
    margin-bottom: 4px;
}

.funnel-glyph {
    font-size: 1.6rem;
    line-height: 1;
    padding: 6px 0;
    text-align: center;
}

.funnel-step-anim {
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.funnel-step-dot {
    display: inline-block;
    font-size: 1.4rem;
    animation: step-fall 6s ease-in-out infinite;
}

.funnel-step-dot::before {
    content: "○";
    color: var(--do);
}

@keyframes step-fall {
    0%, 5% {
        transform: translateY(-8px);
        opacity: 0;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
    }
    30% {
        transform: translateY(0);
        opacity: 1;
    }
    35% {
        transform: translateY(8px);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.funnel-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}

.funnel-now-wrap {
    margin: 0 auto;
    padding: 12px;
    border-radius: 50%;
    border: 3px solid var(--doing);
    animation: now-pulse 3s ease-in-out infinite;
    display: inline-block;
}

.funnel-now-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--doing);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.5rem;
}

.funnel-now-circle .icon-doing::before {
    color: #fff;
}

.funnel-now-circle .funnel-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

@keyframes now-pulse {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.5);
    }
    50% {
        border-color: rgba(59, 130, 246, 1);
    }
}

.funnel-past {
    padding: 40px 24px;
    font-size: 1.2rem;
}

/* ---- admin ---- */

.admin-info {
    text-align: left;
    max-width: var(--reading-width);
    margin: 0 auto;
}

.admin-info div {
    padding: 6px 0;
    border-bottom: 1px solid #1e293b;
    color: var(--muted);
}

.admin-info strong {
    color: var(--text);
    display: inline-block;
    min-width: 100px;
}

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-actions .cta {
    margin-bottom: 0;
}

.admin-form {
    display: inline;
}

.admin-log-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-log-controls .cta {
    margin-bottom: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.admin-log {
    max-height: 600px;
    overflow-y: auto;
    font-size: 0.8rem;
}

@media (max-width: 767px) {
    .logo-mark {
        font-size: 34px;
        gap: 0;
    }

    .logo-mark-small {
        font-size: 20px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        flex-direction: column;
    }

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

    .horizon-flow {
        flex-direction: column;
    }

    .horizon-arrow {
        transform: rotate(90deg);
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.2rem;
    }

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

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

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

    .content {
        padding: 44px 40px;
    }
}
