/* VibeBackers — v4.1 */

:root {
    --bg:           #0D0D0D;
    --surface:      #141414;
    --surface-high: #1A1A1A;
    --accent:       #00FF88;
    --accent-dim:   rgba(0, 255, 136, 0.35);
    --accent-glow:  rgba(0, 255, 136, 0.10);
    --text:         #F0F0F0;
    --text-muted:   #888888;
    --border:       #2A2A2A;
    --border-accent: rgba(0, 255, 136, 0.25);
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle dot-grid background */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, #252525 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
p  { color: var(--text-muted); line-height: 1.8; }

.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link { display: inline-flex; align-items: center; }
.logo-img { height: 42px; width: auto; display: block; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ========== SECTION 1: HERO ========== */
.s-hero {
    min-height: 100vh;
    padding: 130px 0 90px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 1.75rem;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.hero-content h1 {
    max-width: 560px;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1rem;
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* CTA Form — shared between Hero + Bottom CTA */
.cta-form .input-row {
    display: flex;
    max-width: 480px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cta-form .input-row:focus-within {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.cta-form input[type="email"] {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: none;
    padding: 0.9rem 1.2rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.cta-form input[type="email"]::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
}

.cta-form button[type="submit"] {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.9rem 1.4rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s var(--ease);
}

.cta-form button[type="submit"]:hover  { background: #19ffaa; }
.cta-form button[type="submit"]:active { transform: scale(0.99); }
.cta-form button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

.trust-text {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.65;
}

.form-status {
    margin-top: 0.9rem;
    font-size: 0.72rem;
    color: var(--accent);
    min-height: 1.2rem;
    letter-spacing: 0.06em;
}

/* Hero media + custom video controls */
.hero-media { position: relative; }

.video-wrapper { position: relative; display: block; }

.hero-media video {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    box-shadow: 0 0 50px var(--accent-glow), 0 20px 60px rgba(0,0,0,0.5);
}

.video-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.vc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s var(--ease);
    backdrop-filter: blur(6px);
}

.vc-btn:hover { background: rgba(0, 255, 136, 0.12); }

/* ========== TECH STACK BANNER ========== */
.s-techstack {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    position: relative;
    overflow: hidden;
}

.s-techstack::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
    pointer-events: none;
}

.tech-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 10px 0;
}

.tech-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    opacity: 0.45;
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.tech-divider {
    height: 1px;
    background: var(--border);
    margin: 2px 0;
}

.tech-logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
}

.tech-logo {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tech-logo:hover { opacity: 0.9; }
.tech-logo--white { filter: brightness(0) invert(1); }

/* ========== SECTION 2: PROBLEM ========== */
.s-problem {
    padding: 100px 0;
    background: var(--surface);
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.problem-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.problem-inner h2 { margin-bottom: 1.5rem; }
.problem-inner p  { font-size: 1.05rem; line-height: 1.85; }

/* ========== SECTION 3: ARSENAL (Z-PATTERN) ========== */
.s-arsenal { padding: 100px 0; }

.arsenal-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 90px;
}

.arsenal-block:last-child { margin-bottom: 0; }

.arsenal-block.reverse .arsenal-img  { order: 2; }
.arsenal-block.reverse .arsenal-text { order: 1; }

.label-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.arsenal-text h3 { margin-bottom: 1rem; }
.arsenal-text p  { font-size: 0.98rem; line-height: 1.85; }

.arsenal-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-high);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.arsenal-img img:hover {
    border-color: var(--border-accent);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 24px var(--accent-glow);
}

/* ========== SECTION 3.5: PROMO VIDEO ========== */
.s-demo {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.s-demo video {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 0 auto;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ========== SECTION 4: FOUNDER LETTER ========== */
.s-founder { padding: 100px 0; }

.founder-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4rem;
}

.founder-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 2rem;
    border: 2px solid var(--border-accent);
    background: var(--surface-high);
}

.founder-card h2 {
    font-size: 1.65rem;
    margin-bottom: 2rem;
}

.letter-body p {
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
    line-height: 1.85;
}

.letter-body p:last-child { margin-bottom: 0; }

.sign-off {
    margin-top: 2rem;
    color: var(--text) !important;
}

.sign-off em {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

/* ========== SECTION 5: BOTTOM CTA ========== */
.s-cta {
    padding: 100px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
}

.s-cta h2 { margin-bottom: 1rem; }

.s-cta .sub {
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.s-cta .cta-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s-cta .cta-form .input-row { max-width: 480px; width: 100%; }

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

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.45;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a,
.footer-links button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links a:hover,
.footer-links button:hover { opacity: 1; }

/* ========== MODALS (kept for manifesto) ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 5, 6, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    max-width: 760px;
    width: 100%;
    max-height: 80vh;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3.5rem;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    background: none;
    border: none;
}

.close-modal:hover { color: var(--text); }

.modal-content h2 { margin-bottom: 0.5rem; font-size: 1.5rem; }

.modal-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.45;
    margin-bottom: 2.5rem;
}

.legal-content h6 {
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    font-weight: 600;
}

.legal-content p {
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ========== MANIFESTO PAGE ========== */
.manifesto-page { padding-top: 72px; }

.hero-manifesto {
    padding: 80px 0 100px;
}

.narrow {
    max-width: 760px;
    margin: 0 auto;
}

.manifesto-page h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.manifesto-page .tagline {
    text-align: center;
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.75;
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
}

.lg-pad { padding: 4rem; }

.glass-card h3 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

.glass-card h3:first-child { margin-top: 0; }

.glass-card p {
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 3rem; }

/* Manifesto scroll target offset */
.manifesto-anchor {
    display: block;
    height: 72px;
    margin-top: -72px;
    visibility: hidden;
}

/* Manifesto footer */
.manifesto-footer {
    padding: 60px 0 28px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.footer-brand p,
.footer-contact p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 0.75rem;
}

.footer-logo-img { height: 22px; width: auto; display: block; }

.footer-contact h6 {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.legal-links span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.45;
}

.legal-links a,
.modal-trigger {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.legal-links a:hover,
.modal-trigger:hover { opacity: 1; }

/* Manifesto nav button */
.btn-tiny {
    padding: 5px 14px;
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-tiny:hover { background: rgba(0, 255, 136, 0.12); }

/* Shared button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s var(--ease);
}

.btn-primary:hover { background: #19ffaa; }

/* Legal pages */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.legal-page .legal-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.45;
    margin-bottom: 3rem;
}

.legal-page .legal-body {
    max-width: 720px;
}

.legal-page .legal-body h6 {
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
}

.legal-page .legal-body p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* ========== KEYFRAMES ========== */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(0, 255, 136, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(0, 255, 136, 0);   }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-media { order: -1; }
    .hero-content h1, .hero-sub { max-width: 100%; }
    .cta-form .input-row { max-width: 100%; }

    .arsenal-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 60px;
    }

    .arsenal-block.reverse .arsenal-img,
    .arsenal-block.reverse .arsenal-text { order: unset; }

    .nav-links { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .tech-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .tech-label { min-width: unset; text-align: left; }
    .tech-logos { gap: 1.5rem; }
}

@media (max-width: 580px) {
    .s-hero { padding: 100px 0 60px; }

    .cta-form .input-row { flex-direction: column; }
    .cta-form input[type="email"],
    .cta-form button[type="submit"] { width: 100%; }

    .founder-card { padding: 2.5rem 1.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .legal-links { flex-wrap: wrap; justify-content: center; }

    .glass-card, .lg-pad { padding: 2rem 1.5rem; }

    .tech-logos { gap: 1.2rem; }
    .tech-logo  { height: 18px; }
}
