/* ════════════════════════════════════════════════════════════════
   PairCast landing page — design tokens, reset, sections.
   No framework. Pure CSS with modern features (grid, custom props,
   @media color-scheme). Targets Safari 15+ / evergreen Chrome / FF.
   ════════════════════════════════════════════════════════════════ */

:root {
    --bg:          #0a0a0f;
    --bg-elev:     #131319;
    --bg-elev-2:   #1a1a23;
    --border:      #27272e;
    --border-2:    #34343f;
    --text:        #eaeaf0;
    --text-dim:    #a8a8b4;
    --text-mute:   #6e6e7e;
    --accent:      #8b5cf6;
    --accent-2:    #6366f1;
    --accent-grad: linear-gradient(135deg, #6366f1, #a855f7);
    --max-w:       1160px;
    --radius:      16px;
    --radius-lg:   22px;
    --shadow:      0 20px 60px -20px rgba(99, 102, 241, 0.25);
    --font:        -apple-system, BlinkMacSystemFont, "SF Pro Text",
                   "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display:-apple-system, BlinkMacSystemFont, "SF Pro Display",
                   "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body             { margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color:      var(--text);
    font:       16px/1.55 var(--font);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    /* Subtle radial glow anchored at the top — barely there but
       it keeps the page from feeling flat on large monitors. */
    background-image:
        radial-gradient(ellipse 1200px 600px at 50% -200px,
                        rgba(99, 102, 241, 0.12), transparent 60%),
        radial-gradient(ellipse 800px 400px at 90% 20%,
                        rgba(168, 85, 247, 0.08), transparent 60%);
    background-repeat: no-repeat;
    min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }

a {
    color: var(--text);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: #fff; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.08; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 2rem; }
h3 { font-size: 1.125rem; line-height: 1.4;   margin: 0 0 .5rem; }

p { margin: 0 0 1rem; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

.section-title { text-align: center; }

/* ─── Layout helper ─────────────────────────────────────────── */
main > section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 96px 24px;
}
@media (max-width: 640px) {
    main > section { padding: 64px 20px; }
}

/* ════════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════════ */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 18px 24px;
    /* Frosted glass — on top of the page's dark bg this reads as a
       subtle divider. */
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: .95rem;
    color: var(--text-dim);
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }

.nav-cta {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 6px 24px -6px rgba(139, 92, 246, 0.55);
}
.nav-cta:hover { transform: translateY(-1px); color: #fff; }

@media (max-width: 720px) {
    .nav-links a:not(.nav-cta) { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 12px 36px -10px rgba(139, 92, 246, 0.5);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 44px -10px rgba(139, 92, 246, 0.6);
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--border-2); }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-art { order: -1; }
}

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    color: #cbb7ff;
    font-size: .78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
    border: 1px solid rgba(139, 92, 246, 0.28);
}

.lede {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 0 28px;
}
@media (max-width: 960px) { .lede { margin-left: auto; margin-right: auto; } }

.cta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
@media (max-width: 960px) { .cta-row { justify-content: center; } }
@media (max-width: 400px) { .cta-row { flex-direction: column; } .btn { width: 100%; } }

.hero-meta {
    color: var(--text-mute);
    font-size: .9rem;
}

.hero-art .devices {
    max-width: 620px;
    margin: 0 auto;
}

/* The arc and the riding dot get a subtle pulse. The SMIL inside the
   SVG handles the dot motion; the arc itself shimmers here. */
.signal-arc {
    stroke-dashoffset: 0;
    animation: dash 3s linear infinite;
}
@keyframes dash {
    to { stroke-dashoffset: -42; }
}
@media (prefers-reduced-motion: reduce) {
    .signal-arc { animation: none; }
    .signal-dot { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   WHY — feature cards
   ════════════════════════════════════════════════════════════════ */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-2);
    background: var(--bg-elev-2);
}
.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border: 1px solid rgba(139, 92, 246, 0.22);
}

/* ════════════════════════════════════════════════════════════════
   HOW — numbered steps
   ════════════════════════════════════════════════════════════════ */

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}
.steps li {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}
.step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-grad);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.5);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════
   PRIVACY
   ════════════════════════════════════════════════════════════════ */

.privacy {
    max-width: var(--max-w);
    margin: 0 auto;
}
.privacy-inner {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    max-width: 780px;
    margin: 0 auto;
}
@media (max-width: 640px) { .privacy-inner { padding: 40px 24px; } }

.privacy-inner p { font-size: 1.02rem; line-height: 1.65; }
.privacy-inner b { color: var(--text); }

.privacy-footnote {
    margin-top: 24px;
    font-size: .95rem;
}
.privacy-footnote a {
    color: #c4b5fd;
    font-weight: 600;
}
.privacy-footnote a:hover { color: #ddd1ff; }

/* ════════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════════ */

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 720px) { .faq-grid { grid-template-columns: 1fr; } }

details {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: border-color .15s ease;
}
details[open] { border-color: var(--border-2); }
details summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-right: 28px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    color: var(--text-mute);
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .2s ease;
}
details[open] summary::after { content: "−"; }
details p {
    margin: 12px 0 0;
    font-size: .96rem;
}
details a { color: #c4b5fd; text-decoration: underline; text-underline-offset: 2px; }

/* ════════════════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════════════════ */

.join {
    text-align: center;
    max-width: 640px !important;
}
.join h2 { margin-bottom: 12px; }
.join p  { color: var(--text-dim); max-width: 520px; margin-left: auto; margin-right: auto; }
.join .btn { margin-top: 28px; }
.join-note {
    color: var(--text-mute);
    font-size: .85rem;
    margin-top: 14px;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    margin-top: 40px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-weight: 600;
}
.footer-links {
    display: flex;
    gap: 24px;
    font-size: .92rem;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-copy {
    color: var(--text-mute);
    font-size: .88rem;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   UTILS
   ════════════════════════════════════════════════════════════════ */

::selection {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}
