:root {
    --bg: #0a0a0c;
    --panel: #111114;
    --panel-2: #17171b;
    --paper: #f6f6f2;
    --ink: #111114;
    --muted: #a6a6ad;
    --line: #2a2a30;
    --accent: #e74648;
    --accent-soft: rgba(231, 70, 72, .12);
    --max: 1180px;
    --radius: 22px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55
}

a {
    color: inherit;
    text-decoration: none
}

.wrap {
    width: min(calc(100% - 40px), var(--max));
    margin: auto
}

.nav {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .985);
    border-bottom: 1px solid #e9e9ec
}

.nav-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.brand {
    display: inline-flex;
    align-items: center
}

.brand img {
    display: block;
    width: 168px;
    height: auto;
    max-height: 46px;
    object-fit: contain
}

.nav-links {
    display: flex;
    gap: 28px;
    color: #47474f;
    font-size: 14px
}

.nav-links a:hover {
    color: #111
}

.nav-cta, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 750;
    transition: .2s ease
}

.nav-cta {
    padding: 11px 17px;
    background: var(--accent);
    color: #111114;
    font-size: 13px;
    min-height: 44px
}

.nav-cta:hover {
    transform: translateY(-1px)
}

.hero {
    min-height: max(860px, 100svh);
    display: flex;
    align-items: center;
    padding: 150px 0 90px;
    position: relative;
    overflow: hidden
}

.hero:before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 70, 72, .2), rgba(231, 70, 72, 0) 68%);
    right: -180px;
    top: 70px;
    pointer-events: none
}

.hero-grid {
    display: grid;
    grid-template-columns:1.25fr .75fr;
    gap: 64px;
    align-items: end
}

.eyebrow {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d4d4d8
}

.eyebrow:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft)
}

h1 {
    font-size: clamp(62px, 8.3vw, 132px);
    line-height: .89;
    letter-spacing: -.07em;
    margin: 30px 0 32px;
    max-width: 930px
}

.hero .accent {
    color: var(--accent)
}

.hero-line {
    display: block;
    line-height: 1.2;
}

.hero-title {
    font-size: 68px
}

.hero-copy {
    font-size: clamp(18px, 2vw, 24px);
    color: #c7c7ce;
    max-width: 760px;
    margin: 0 0 38px
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn-primary {
    padding: 15px 21px;
    background: var(--accent);
    color: #111114
}

.btn-secondary {
    padding: 14px 20px;
    border: 1px solid #3a3a40;
    color: #f5f5f6
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px)
}

.terminal {
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #111116, #0c0c0f);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
    overflow: hidden
}

.terminal-top {
    height: 48px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 7px;
    color: #777;
    font: 12px ui-monospace, monospace
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3a3a40
}

.dot:first-child {
    background: var(--accent)
}

.terminal pre {
    margin: 0;
    padding: 26px;
    white-space: pre-wrap;
    color: #d7d7dc;
    font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace
}

.terminal .cmd {
    color: var(--accent)
}

.terminal .ok {
    color: #8be28b
}

.terminal .dim {
    color: #7e7e86
}

.ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden
}

.ticker-track {
    display: flex;
    gap: 52px;
    white-space: nowrap;
    padding: 17px 0;
    font: 700 13px ui-monospace, monospace;
    color: #a9a9af;
    text-transform: uppercase;
    letter-spacing: .08em
}

.ticker-track span:after {
    content: "/";
    color: var(--accent);
    margin-left: 52px
}

section {
    padding: 120px 0
}

.light {
    background: var(--paper);
    color: var(--ink)
}

.section-head {
    display: grid;
    grid-template-columns:.4fr 1.2fr;
    gap: 50px;
    margin-bottom: 64px
}

.kicker {
    font: 750 12px ui-monospace, monospace;
    color: var(--accent);
    letter-spacing: .12em;
    text-transform: uppercase;
    padding-top: 11px
}

.section-head h2 {
    font-size: clamp(42px, 5vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 0;
    max-width: 880px
}

.section-head p {
    color: #5a5a63;
    font-size: 18px;
    max-width: 720px;
    margin: 22px 0 0
}

.cards-3 {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px
}

.card {
    border: 1px solid #dddde0;
    border-radius: var(--radius);
    padding: 30px;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff
}

.card.dark {
    background: var(--panel);
    border-color: var(--line)
}

.card-no {
    font: 700 12px ui-monospace, monospace;
    color: var(--accent)
}

.card h3 {
    font-size: 29px;
    line-height: 1.06;
    letter-spacing: -.04em;
    margin: 30px 0 14px
}

.card p {
    color: #6b6b73;
    margin: 0
}

.dark p {
    color: #aaaab1
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px
}

.chip {
    border: 1px solid #d7d7db;
    border-radius: 999px;
    padding: 7px 10px;
    font: 650 11px ui-monospace, monospace;
    color: #585860
}

.dark .chip {
    border-color: #35353b;
    color: #bdbdc3
}

.manifesto {
    display: grid;
    grid-template-columns:1.15fr .85fr;
    gap: 80px;
    align-items: center
}

.manifesto h2 {
    font-size: clamp(54px, 6vw, 95px);
    line-height: .94;
    letter-spacing: -.065em;
    margin: 0
}

.manifesto p {
    font-size: 20px;
    color: #b6b6bd
}

.manifesto strong {
    color: white
}

.rule {
    margin-top: 34px;
    border-top: 1px solid var(--line)
}

.rule div {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    color: #d8d8dc
}

.rule code {
    color: var(--accent);
    font-size: 12px
}

.cases {
    display: grid;
    gap: 14px
}

.case {
    display: grid;
    grid-template-columns:140px 1fr 1fr;
    gap: 30px;
    border-top: 1px solid #d5d5d9;
    padding: 30px 0
}

.case:last-child {
    border-bottom: 1px solid #d5d5d9
}

.case .label {
    font: 750 12px ui-monospace, monospace;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .08em
}

.case h3 {
    font-size: 31px;
    letter-spacing: -.035em;
    margin: 0
}

.case p {
    margin: 2px 0 0;
    color: #63636a
}

.case .case-tech {
    font: 650 12px ui-monospace, monospace;
    color: #62626a
}

.ai-grid {
    display: grid;
    grid-template-columns:.8fr 1.2fr;
    gap: 50px;
    align-items: start
}

.ai-copy h2 {
    font-size: clamp(48px, 5vw, 80px);
    letter-spacing: -.06em;
    line-height: .95;
    margin: 0 0 25px
}

.ai-copy p {
    color: #b0b0b8;
    font-size: 18px
}

.ai-list {
    display: grid;
    grid-template-columns:1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line)
}

.ai-item {
    min-height: 170px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.ai-item code {
    color: var(--accent);
    font: 700 11px ui-monospace, monospace
}

.ai-item h3 {
    font-size: 21px;
    margin: 25px 0 8px
}

.ai-item p {
    color: #9999a1;
    font-size: 14px;
    margin: 0
}

.meetup {
    background: var(--accent);
    color: #111114
}

.meetup-grid {
    display: grid;
    grid-template-columns:1.25fr .75fr;
    gap: 50px;
    align-items: end
}

.meetup h2 {
    font-size: clamp(54px, 7vw, 100px);
    letter-spacing: -.065em;
    line-height: .91;
    margin: 15px 0 0
}

.meetup p {
    font-size: 19px;
    max-width: 560px
}

.meetup .badge {
    display: inline-block;
    border: 1px solid rgba(17, 17, 20, .42);
    border-radius: 999px;
    padding: 8px 11px;
    font: 700 11px ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: .09em
}

.meetup a {
    display: inline-flex;
    margin-top: 18px;
    background: #fff;
    color: #151515;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 800
}

.contact {
    padding: 140px 0 160px
}

.contact-box {
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: clamp(34px, 6vw, 80px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #101014, #0b0b0d)
}

.contact-box:after {
    content: "→";
    position: absolute;
    right: 4%;
    bottom: -12%;
    font-size: 260px;
    line-height: 1;
    color: rgba(231, 70, 72, .10);
    font-weight: 900
}

.contact h2 {
    font-size: clamp(52px, 7vw, 104px);
    letter-spacing: -.065em;
    line-height: .92;
    margin: 15px 0 28px;
    max-width: 900px
}

.contact p {
    color: #b1b1b8;
    font-size: 19px;
    max-width: 650px
}

.contact .mail {
    display: inline-flex;
    margin-top: 20px;
    color: white;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    font-weight: 800;
    font-size: 20px;
    position: relative;
    z-index: 1
}

footer {
    border-top: 1px solid #e9e9ec;
    padding: 33px 0 45px;
    background: #fff;
    color: #686870;
    font-size: 13px
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.footer-brand img {
    width: 34px;
    height: 44px;
    object-fit: contain;
    display: block
}

.footer-inner strong {
    color: #444545
}

.footer-links {
    display: flex;
    gap: 20px
}

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

@media (max-width: 900px) {
    .nav-links {
        display: none
    }

    .hero {
        min-height: auto
    }

    .hero-line {
        display: inline
    }

    .hero-title {
        font-size: clamp(56px, 8vw, 68px)
    }

    .hero-grid, .section-head, .manifesto, .ai-grid, .meetup-grid {
        grid-template-columns:1fr
    }

    .hero-grid {
        gap: 45px
    }

    .cards-3 {
        grid-template-columns:1fr
    }

    .case {
        grid-template-columns:1fr;
        gap: 10px
    }

    .ai-list {
        grid-template-columns:1fr
    }

    .section-head {
        gap: 18px
    }

    section {
        padding: 90px 0
    }

    .terminal {
        max-width: 650px
    }

    .meetup-grid {
        align-items: start
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(calc(100% - 28px), var(--max))
    }

    .nav-cta {
        display: none
    }

    .hero {
        padding-top: 125px
    }

    .hero-title {
        font-size: clamp(42px, 11.5vw, 48px)
    }

    .hero-line {
        display: block
    }

    .actions {
        flex-direction: column;
        align-items: stretch
    }

    .btn-primary, .btn-secondary {
        width: 100%
    }

    .ai-item {
        min-height: 145px
    }

    .contact-box {
        border-radius: 22px
    }
}


/* Accessibility + usability */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    background: #fff;
    color: #111114;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 800;
    transition: transform .16s ease
}

.skip-link:focus {
    transform: translateY(0)
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px
}

button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation
}

[id] {
    scroll-margin-top: 96px
}

.nav-links a {
    padding: 12px 0
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #dedee2;
    border-radius: 999px;
    background: #fff;
    color: #111114;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 44px
}

.nav-toggle-lines {
    width: 18px;
    height: 14px;
    position: relative;
    display: block
}

.nav-toggle-lines::before, .nav-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, top .18s ease
}

.nav-toggle-lines::before {
    top: 2px
}

.nav-toggle-lines::after {
    top: 10px
}

.nav.nav-open .nav-toggle-lines::before {
    top: 6px;
    transform: rotate(45deg)
}

.nav.nav-open .nav-toggle-lines::after {
    top: 6px;
    transform: rotate(-45deg)
}

main > section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px
}

.mail {
    overflow-wrap: anywhere
}

@media (max-width: 900px) {
    .nav-inner {
        gap: 12px
    }

    .nav-toggle {
        display: inline-flex
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e9e9ec;
        padding: 12px 20px 18px;
        flex-direction: column;
        gap: 0;
        max-height: calc(100vh - 79px);
        overflow-y: auto;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .08)
    }

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

    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 48px;
        border-bottom: 1px solid #efeff1;
        padding: 0 4px;
        color: #303036
    }

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

@media (max-width: 560px) {
    .brand img {
        width: 145px
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important
    }
}

/* Shared secondary-page components */
.subpage-hero {
    padding: 180px 0 110px;
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden
}

.subpage-hero::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 70, 72, .18), transparent 68%);
    right: -180px;
    top: 20px;
    pointer-events: none
}

.subpage-hero h1 {
    font-size: clamp(58px, 8vw, 116px);
    max-width: 1050px;
    position: relative;
    z-index: 1
}

.subpage-hero .wrap {
    position: relative;
    z-index: 1
}

.subpage-hero.compact {
    min-height: 470px;
    padding-bottom: 80px
}

.subpage-hero.error-page {
    min-height: 760px
}

.community-hero {
    min-height: 760px
}

.profile-grid {
    display: grid;
    grid-template-columns:.75fr 1.25fr;
    gap: 70px;
    align-items: center
}

.profile-portrait {
    border-radius: var(--radius);
    overflow: hidden;
    background: #e9e9e5
}

.profile-portrait img {
    display: block;
    width: 100%;
    height: auto
}

.prose {
    max-width: 800px
}

.prose h2 {
    font-size: clamp(38px, 5vw, 68px);
    letter-spacing: -.05em;
    line-height: 1;
    margin: 18px 0 28px
}

.prose h3 {
    font-size: 25px;
    margin-top: 42px
}

.prose p, .prose li {
    color: #55555e;
    font-size: 17px
}

.prose a:not(.btn-primary):not(.btn-dark) {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 20px;
    background: #17171b;
    color: #fff;
    font-weight: 750
}

.legal {
    min-height: 460px
}

.legal-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 45px
}

.privacy-content {
    overflow-wrap: anywhere
}

.privacy-content > div, .privacy-content > section {
    max-width: 100%
}

.privacy-content img {
    max-width: 100%;
    height: auto
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns:1fr;
        gap: 42px
    }

    .profile-portrait {
        max-width: 520px
    }

    .subpage-hero {
        min-height: auto;
        padding: 145px 0 85px
    }

    .subpage-hero.compact {
        min-height: auto
    }

    .subpage-hero.error-page, .community-hero {
        min-height: 650px
    }
}

.admin-page {
    padding: 130px 0 70px;
    background: #fff;
    color: #111;
    min-height: 100vh
}

.admin-page h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.04em
}

.admin-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    display: block;
    overflow-x: auto
}

.admin-page th, .admin-page td {
    border: 1px solid #d8d8dc;
    padding: 10px 12px;
    text-align: left
}

.admin-page tr:nth-child(even) {
    background: #f4f4f1
}
