/* Waitlist Site - Global Styles & CSS Variables */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

::selection { background: rgba(0, 255, 136, .25); color: var(--text); }

/* Prevent focus outlines and text selection flash during Blazor interactive handoff */
h1, h2, h3, p, div, section, main {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

h1:focus, h2:focus, h3:focus, [tabindex]:focus {
    outline: none;
}

/* Screen reader only — visible to crawlers, hidden visually */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:root {
    --bg: #0a0a0a;
    --surface: #0d0d0d;
    --surface2: #141414;
    --surface3: #1a1a1a;
    --green: #00ff88;
    --red: #ff3b3b;
    --purple: #a855f7;
    --yellow: #facc15;
    --blue: #38bdf8;
    --text: #e4e4e7;
    --muted: #a1a1aa;
    --dim: #71717a;
    --border: #1e1e1e;
    --mono: 'JetBrains Mono', 'Space Mono', monospace;
}

html, body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .4;
}

/* Animations */
@keyframes pdot { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }
@keyframes countUp { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }
@keyframes tt-fwd { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
@keyframes tt-rev { 0% { transform: translateX(-50%) } 100% { transform: translateX(0) } }
@keyframes fadeInPage { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }
/* feed rows are created by waitlist.js (initLiveFeed), so this must live in global CSS —
   scoped-CSS keyframes wouldn't reach JS-created elements */
@keyframes feedIn { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: translateY(0) } }

.page-enter { animation: fadeInPage .4s ease both; }

/* Compliance caption under illustrative product-UI mockups (home hero phone,
   how-it-works run card) — global because multiple pages use it */
.ui-disclaimer {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dim);
    text-align: center;
}

/* Legal pages (Privacy, Terms) */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}
.legal-content h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -0.05em;
    color: var(--text);
    margin-bottom: 8px;
}
.legal-content h1 em { font-style: normal; color: var(--green); }
.legal-content .legal-eff {
    font-size: 12px;
    color: var(--dim);
    margin-bottom: 32px;
}
.legal-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-top: 36px;
    margin-bottom: 12px;
}
.legal-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-top: 22px;
    margin-bottom: 10px;
}
.legal-content .legal-notice {
    margin: 20px 0 32px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 8px;
    background: rgba(0, 255, 136, .04);
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}
.legal-content .legal-notice strong {
    color: var(--text);
    font-weight: 700;
    letter-spacing: .3px;
}
.legal-content p {
    margin-bottom: 14px;
}
.legal-content ul {
    margin: 0 0 14px 20px;
    padding: 0;
}
.legal-content li {
    margin-bottom: 6px;
}
.legal-content a {
    color: var(--green);
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}
