/* =========================================================
   Ark Forge Labs — dark, dev-shop marketing site stylesheet
   Plain CSS, no build step. Organized by section:
   1. Reset & base
   2. Fonts
   3. Design tokens
   4. Background effects (grid / glow orbs / noise)
   5. Layout helpers
   6. Buttons
   7. Typography utilities
   8. Navbar
   9. Footer
   10. Hero
   11. Cards / tech strip / stats
   12. Forms
   13. Toast
   14. Testimonials (unused for now, kept for later)
   15. Pricing
   16. Legal pages
   17. About / Careers sections
   18. 404
   ========================================================= */

/* ---------- 1. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
::selection { background: #3B82F6; color: #05060a; }

/* ---------- 2. Fonts ---------- */
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('/fonts/tt-interphases-pro/TTInterphasesPro-Light.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('/fonts/tt-interphases-pro/TTInterphasesPro-LightItalic.ttf') format('truetype');
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('/fonts/tt-interphases-pro/TTInterphasesPro-Regular.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('/fonts/tt-interphases-pro/TTInterphasesPro-Italic.ttf') format('truetype');
    font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('/fonts/tt-interphases-pro/TTInterphasesPro-Medium.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('/fonts/tt-interphases-pro/TTInterphasesPro-MediumItalic.ttf') format('truetype');
    font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('/fonts/tt-interphases-pro/TTInterphasesPro-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('/fonts/tt-interphases-pro/TTInterphasesPro-BoldItalic.ttf') format('truetype');
    font-weight: 700; font-style: italic; font-display: swap;
}

/* ---------- 3. Design tokens ---------- */
:root {
    --bg: #0A0C12;
    --bg-alt: #0D1017;
    --bg-elevated: #131725;
    --bg-elevated-2: #181D2E;

    --border: #232840;
    --border-strong: #333A58;

    --text: #F5F6FA;
    --text-secondary: #9AA3BF;
    --text-tertiary: #656E88;

    --primary: #3B82F6;
    --primary-2: #0EA5E9;
    --cyan: #22D3EE;
    --gradient: linear-gradient(135deg, #3B82F6 0%, #22D3EE 100%);

    --success: #34D399;
    --error: #F87171;
    --warning: #FBBF24;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 24px;

    --navbar-h: 76px;
    --navbar-h-sm: 64px;
    --tracking: 0.16rem;
    --tracking-wide: 0.3rem;

    /* Shared gap between the nav and the start of page content, everywhere */
    --content-gap: 3.5rem;
    --content-gap-lg: 4.75rem;
    --content-gap-legal: 2rem;
    --content-gap-legal-lg: 2.25rem;

    --font-body: 'TT Interphases Pro', Inter, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --shadow-glow: 0 8px 40px -8px rgba(59, 130, 246, 0.35);
    --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body:not(.no-navbar-pad) { padding-top: var(--navbar-h); }

b, strong, .font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ---------- 4. Background effects ---------- */
.grid-bg {
    position: relative;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: center top;
}
.grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 78%);
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.glow-orb--indigo { background: radial-gradient(circle, rgba(59, 130, 246, 0.55), transparent 70%); }
.glow-orb--violet { background: radial-gradient(circle, rgba(14, 165, 233, 0.45), transparent 70%); }
.glow-orb--cyan { background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%); }

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 5. Layout helpers ---------- */
.container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* Shared top gap for pages without a full-bleed hero (pricing, contact, legal) */
.page-top-gap { padding-top: var(--content-gap); }
@media (min-width: 768px) { .page-top-gap { padding-top: var(--content-gap-lg); } }
.page-top-gap-legal { padding-top: var(--content-gap-legal); }
@media (min-width: 768px) { .page-top-gap-legal { padding-top: var(--content-gap-legal-lg); } }

section { padding: 2.5rem 0; position: relative; }
@media (min-width: 768px) { section { padding: 4rem 0; } }

.text-center { text-align: center; }
.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: block; } }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    width: 100%;
}

/* ---------- 6. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.6rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(.2,.8,.2,1);
    white-space: nowrap;
    position: relative;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
    background: var(--gradient);
    color: #05060a;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 50px -10px rgba(109, 140, 255, 0.55); }

.btn-bordered {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: blur(8px);
}
.btn-bordered:hover { border-color: var(--primary); color: #fff; box-shadow: 0 0 0 1px var(--primary) inset; }

.btn-bordered-dark { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.btn-bordered-dark:hover { background: rgba(255,255,255,0.14); }

.btn-ghost { color: var(--text-secondary); font-weight: 500; }
.btn-ghost:hover { color: var(--text); }

.btn-spinner {
    display: inline-block;
    width: 1em; height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 7. Typography utilities ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: var(--tracking);
    color: var(--primary);
    font-weight: 500;
}
.eyebrow::before { content: '//'; color: var(--text-tertiary); }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading {
    font-size: 2rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-heading { font-size: 2.6rem; } }
.section-heading--left { text-align: left; }

.page-heading {
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}
@media (min-width: 768px) { .page-heading { font-size: 2.6rem; } }

.section-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 42rem;
}
.section-sub.text-center { margin-left: auto; margin-right: auto; }

.list-disc { list-style-type: disc; padding-left: 2rem; color: var(--text-secondary); }
.list-decimal { list-style-type: decimal; padding-left: 1.5rem; }
.list-disc li, .list-decimal li { margin-bottom: 0.5rem; }

.list-check { padding: 0; }
.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--cyan);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    height: 1px; width: 0;
    background: currentColor;
    transition: width 0.3s ease;
}
.link-underline:hover::after { width: 100%; }

/* ---------- 8. Navbar ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    background: transparent;
    color: #fff;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}
@media (min-width: 768px) { .nav { padding: 0 2rem; } }

.nav.scrolled,
.nav--solid {
    background: rgba(10, 12, 18, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: var(--navbar-h);
}
.nav.scrolled {
    border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
    .nav.scrolled { height: var(--navbar-h-sm); }
}

.nav__inner {
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
}
.nav__brand svg { width: 1.7rem; height: 1.7rem; flex-shrink: 0; }
@media (min-width: 768px) { .nav__brand svg { width: 1.9rem; height: 1.9rem; } }

.nav__brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
@media (min-width: 768px) { .nav__brand-text { font-size: 1.15rem; } }

.nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav__links a:not(.nav__cta) {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s ease;
}
.nav__links a:not(.nav__cta):hover { color: #fff; }
.nav__cta { margin-left: 0.5rem; }

@media (max-width: 767px) {
    .nav__links {
        display: flex;
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(8, 10, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 0.25rem 1.25rem 1.5rem;
        box-shadow: var(--shadow-card);
        z-index: 50;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.75rem);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .nav__links.nav__links--open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .nav__links a:not(.nav__cta) {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        color: var(--text);
    }
    .nav__cta {
        margin: 1.25rem 0 0;
        width: 100%;
    }

    .nav__overlay {
        display: block;
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 49;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .nav__overlay.nav__overlay--open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.25s ease;
    }
}

/* ---------- 9. Footer ---------- */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3.5rem 1.25rem 2rem;
    position: relative;
}
@media (min-width: 768px) { .footer { padding: 4.5rem 2rem 2rem; } }

.footer__inner { width: 100%; max-width: 78rem; margin: 0 auto; }

.footer__top {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer__top { flex-direction: row; justify-content: space-between; } }

.footer__brand svg { width: 2.25rem; height: 2.25rem; margin-bottom: 1rem; }
.footer__blurb { color: var(--text-secondary); font-size: 0.9rem; max-width: 22rem; margin-top: 0.75rem; }
.footer__copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 1.25rem;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
}
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(2, minmax(9rem, auto)); } }

.footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: var(--tracking);
    color: var(--text-tertiary);
}
.footer__col-links { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9rem; color: var(--text-secondary); }
.footer__col-links a:hover { color: var(--text); }

.footer__bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1.75rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

.footer__legal { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 768px) { .footer__legal { flex-direction: row; gap: 1.5rem; } }
.footer__legal a:hover { color: var(--text-secondary); }

.footer__social { display: flex; gap: 1.1rem; }
.footer__social a {
    display: inline-flex; align-items: center;
    font-size: 1.15rem;
    color: var(--text-tertiary);
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer__social a:hover { color: var(--primary); transform: translateY(-2px); }

/* ---------- 10. Hero ---------- */
.hero {
    position: relative;
    margin-top: calc(-1 * var(--navbar-h));
    overflow: hidden;
    background: var(--bg);
}
.hero__images {
    position: absolute;
    inset: 0;
    z-index: -20;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    pointer-events: none;
}
.hero__images img {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .hero__images img:not(.hero__img--mobile) { display: none; }
    .hero__images img.hero__img--mobile { width: 100%; flex: 1 1 100%; }
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -10;
    background: linear-gradient(180deg, rgba(10,12,18,0.55) 0%, rgba(10,12,18,0.85) 65%, var(--bg) 100%);
    pointer-events: none;
}
.hero__content {
    width: 100%;
    max-width: 75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    padding: calc(2 * var(--navbar-h) + var(--content-gap)) 1.25rem 2.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}
@media (min-width: 768px) { .hero__content { padding-left: 2rem; padding-right: 2rem; padding-top: calc(2 * var(--navbar-h) + var(--content-gap-lg)); padding-bottom: 3rem; } }

.hero__title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
@media (min-width: 768px) { .hero__title { font-size: 4rem; } }

.hero__subtitle {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 42rem;
}
@media (min-width: 768px) { .hero__subtitle { font-size: 1.25rem; } }

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* ---------- 11. Cards / tech strip / stats ---------- */
.glass-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 3rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-card__icon {
    width: 2.75rem; height: 2.75rem;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient);
    color: #05060a;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

.tech-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    opacity: 0.75;
}
.tech-strip i { font-size: 1.85rem; color: var(--text-secondary); transition: color 0.2s ease, transform 0.2s ease; }
.tech-strip i:hover { color: var(--text); transform: translateY(-2px); }

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__num {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat__label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.4rem; }

.cta-panel {
    position: relative;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
@media (min-width: 768px) { .cta-panel { padding: 4rem 3rem; } }
.cta-panel p { font-size: 1.1rem; margin: 1.5rem 0 2rem; max-width: 42rem; color: var(--text-secondary); position: relative; z-index: 1; }
.cta-panel > *:not(.glow-orb) { position: relative; z-index: 1; }

.showcase-project {
    display: block;
    max-width: 30rem;
    margin: 2.5rem auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.showcase-project:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.showcase-project img { width: 100%; height: auto; display: block; }
.showcase-project__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}
.showcase-project__name { font-size: 1.1rem; font-weight: 600; }
.showcase-project__desc { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.15rem; }
.showcase-project__caption i { color: var(--text-tertiary); font-size: 0.9rem; flex-shrink: 0; }

.terminal-window {
    background: #05060a;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-align: left;
    max-width: 26rem;
    width: 100%;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-card);
}
.terminal-window__bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    background: var(--bg-elevated-2);
    border-bottom: 1px solid var(--border);
}
.terminal-window__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.terminal-window__dot--red { background: var(--error); }
.terminal-window__dot--yellow { background: var(--warning); }
.terminal-window__dot--green { background: var(--success); }
.terminal-window__body { padding: 1.1rem 1.2rem; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85; }
.terminal-window__body div { color: var(--text-secondary); }
.terminal-window__prompt { color: var(--cyan); }
.terminal-window__ok { color: var(--success); }
.terminal-window__ok::before { content: '✓ '; }

/* ---------- 12. Forms ---------- */
.field { position: relative; }
.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 56px;
    padding: 1.6rem 0.9rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    font-size: 0.95rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(109,140,255,0.05);
    box-shadow: 0 0 0 3px rgba(109,140,255,0.15);
}
.field.field--invalid input,
.field.field--invalid textarea,
.field.field--invalid select { border-color: var(--error); }
.field label {
    position: absolute;
    left: 0.9rem;
    top: 0.55rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    pointer-events: none;
}
.field.field--invalid label { color: var(--error); }

.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-elevated); color: var(--text); }
.field__chevron {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-4px);
    pointer-events: none;
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }

.form-disclaimer {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
    padding: 0 1rem;
}

.resume-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
    background: rgba(255,255,255,0.015);
}
.resume-drop.resume-drop--invalid { border-color: var(--error); background: rgba(248,113,113,0.06); }
.resume-drop.resume-drop--over { border-color: var(--primary); background: rgba(109,140,255,0.08); }
.resume-drop input[type="file"] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.resume-drop__plus { font-size: 2.25rem; color: var(--primary); line-height: 1; }
.resume-drop.resume-drop--invalid .resume-drop__plus { color: var(--error); }

.resume-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
}
.resume-file__name { font-weight: 500; font-size: 0.875rem; }
.resume-file__size { font-size: 0.75rem; color: var(--text-tertiary); display: block; }
.resume-file__remove { color: var(--error); font-size: 0.75rem; font-weight: 600; }
.resume-file__remove:hover { text-decoration: underline; }

/* ---------- 13. Toast ---------- */
.toast-container {
    position: fixed;
    left: 0; right: 0; top: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    margin-top: 5rem;
    margin-left: 1rem; margin-right: 1rem;
    pointer-events: auto;
    background: var(--bg-elevated-2);
    color: var(--text);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border-strong);
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.toast--visible { opacity: 1; transform: scale(1); }
.toast__icon { margin-right: 0.75rem; flex-shrink: 0; font-size: 1.3rem; }
.toast--success .toast__icon { color: var(--success); }
.toast--error .toast__icon { color: var(--error); }
.toast--info .toast__icon { color: var(--primary); }

/* ---------- 14. Testimonials (kept, unused for now) ---------- */
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    position: relative;
    min-height: 280px;
    margin-top: 2.5rem;
}
.testimonial-card__avatar { position: absolute; top: -2.25rem; z-index: 10; width: 4.5rem; height: 4.5rem; }
.testimonial-card__body { width: 100%; padding: 4rem 1.25rem; }
@media (min-width: 768px) { .testimonial-card__body { padding: 4rem 5rem; } }
.testimonial-card__quote { text-align: center; font-size: 1.1rem; font-weight: 500; white-space: pre-line; }
.testimonial-avatars { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2.5rem; }
.testimonial-avatars .avatar { width: 2rem; height: 2rem; cursor: pointer; transition: transform 0.2s ease; }
.avatar { border-radius: 999px; overflow: hidden; background: var(--bg-elevated-2); display: flex; align-items: center; justify-content: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.rounded-full { border-radius: 999px; }
.rounded-lg { border-radius: var(--radius-sm); }

/* ---------- 15. Pricing ---------- */
.pricing-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .pricing-row { grid-template-columns: 1fr 1fr; } }
.pricing-row--three { grid-template-columns: 1fr; }
@media (min-width: 768px) { .pricing-row--three { grid-template-columns: repeat(3, 1fr); } }
.pricing-row + .pricing-row { margin-top: 1.5rem; }

.pricing-plan {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}
.pricing-plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pricing-plan--featured { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.pricing-plan__badge {
    position: absolute; top: 1.25rem; right: 1.25rem;
    font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: var(--tracking);
    background: var(--gradient); color: #05060a; padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 700;
}
.pricing-plan__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.pricing-plan__icon {
    color: #05060a;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    width: 2.75rem; height: 2.75rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.pricing-plan__name { font-size: 1.15rem; font-weight: 600; }
.pricing-plan__desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.pricing-plan__price { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
.pricing-plan__features { margin: 0 0 2rem; flex: 1; }
.pricing-plan .btn { width: 100%; }

/* ---------- 16. Legal pages ---------- */
.legal-toc {
    margin-bottom: 3rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
}
.legal-toc h2 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: var(--tracking); color: var(--text-tertiary); margin-bottom: 1rem; }
.legal-toc ol { padding-left: 1.5rem; columns: 1; }
@media (min-width: 640px) { .legal-toc ol { columns: 2; } }
.legal-toc li { margin-bottom: 0.4rem; color: var(--text-secondary); font-size: 0.9rem; }
.legal-toc a { cursor: pointer; }
.legal-toc a:hover { color: var(--text); }

.legal-meta {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-intro { margin-bottom: 1rem; color: var(--text-secondary); }

.legal-section { margin-top: 2.75rem; }
.legal-section:first-of-type { margin-top: 0; }
.legal-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.legal-section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; margin-top: 1.25rem; }
.legal-section h4 { font-weight: 600; margin-bottom: 0.35rem; }
.legal-section p { margin-bottom: 1rem; color: var(--text-secondary); }
.legal-section ul { margin-bottom: 1rem; }

/* ---------- 17. About / Careers sections ---------- */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 768px) { .mission-grid { grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; } }

.duotone {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.duotone img { filter: grayscale(0.55) contrast(1.05) brightness(0.92); transition: filter 0.4s ease; }
.duotone:hover img { filter: grayscale(0.15) contrast(1.08) brightness(1); }

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.values-grid__item {
    position: relative;
    min-height: 12rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.values-grid__item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.values-grid__caption {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5,6,10,0.85) 100%);
    display: flex; align-items: flex-end; justify-content: flex-start;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.25rem;
}

.principles-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 4rem;
}
@media (min-width: 768px) { .principles-row { grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 6rem; } }

.hiring-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    margin-top: 5rem;
}
@media (min-width: 768px) { .hiring-cta { padding: 4rem; } }

.remote-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-top: 1.5rem;
}
@media (min-width: 640px) { .remote-grid { grid-template-columns: repeat(8, 1fr); } }
.remote-grid > div { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 2/3; }
.remote-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.05); transition: filter 0.3s ease; }
.remote-grid > div:hover img { filter: grayscale(0) contrast(1.1); }

.core-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}
@media (min-width: 768px) { .core-values-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.core-values-grid > div { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.core-values-grid h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.core-values-grid p { color: var(--text-secondary); font-size: 0.95rem; }

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.benefits-grid > div { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.benefits-grid i { font-size: 1.6rem; color: var(--primary); }
.benefits-grid p { font-size: 1.1rem; font-weight: 600; margin-top: 1rem; }

.open-roles {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) { .open-roles { padding: 4rem 3rem; } }

.apply-card {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
}

/* ---------- 18. 404 page ---------- */
.notfound-hero { background: var(--bg); }
.notfound-hero .hero__content { min-height: 550px; }
.notfound-code {
    font-family: var(--font-mono);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (min-width: 768px) { .notfound-code { font-size: 9rem; } }
