/* Adorop site design system: dark only, soft glow, cursor spotlight, cards that light up.
   Every page is complete with this file alone; site.js only adds motion and the phone menu. */
:root {
  color-scheme: dark;
  --bg: #07070c;
  --bg2: #0d0d16;
  --fg: #f4f3fb;
  --muted: #a3a1b8;
  --dim: #8a88a0;
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.14);
  --cyan: #6ee7ff;
  --violet: #a78bfa;
  --pink: #f0abfc;
  --card: rgba(18,18,30,.62);
  --radius: 16px;
  --header: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--fg); /* page background sits on html so the aurora shows through */
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--fg); text-decoration-color: rgba(167,139,250,.6); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Atmosphere ---------- */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .9; }
.aurora .a1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -24vmax; background: radial-gradient(circle, #4c1d95 0%, transparent 65%); }
.aurora .a2 { width: 50vmax; height: 50vmax; right: -20vmax; top: 10vh; background: radial-gradient(circle, #0e7490 0%, transparent 65%); opacity: .5; }
.aurora .a3 { width: 46vmax; height: 46vmax; left: 25vw; bottom: -30vmax; background: radial-gradient(circle, #86198f 0%, transparent 65%); opacity: .4; }
.motion .aurora .a1 { animation: drift1 26s ease-in-out infinite alternate; }
.motion .aurora .a2 { animation: drift2 32s ease-in-out infinite alternate; }
.motion .aurora .a3 { animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 16vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-16vw, -12vh) scale(1.1); } }
.grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Cursor spotlight: fine pointers with motion allowed only */
.spotlight { display: none; }
@media (hover: hover) and (pointer: fine) {
  .motion .spotlight {
    display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), rgba(167,139,250,.13), rgba(110,231,255,.05) 40%, transparent 70%);
    transition: opacity .4s; opacity: var(--spot, 0);
  }
}

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: linear-gradient(to bottom, rgba(7,7,12,.82), rgba(7,7,12,.5)); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: var(--header); gap: 4px 16px; }
.brand { display: block; line-height: 0; padding: 6px 0; border-radius: 6px; }
.wordmark { width: 94px; height: 28px; overflow: visible; }
.wordmark .g { fill: none; stroke: url(#wm); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.motion .wordmark:not(.drawn) .g { stroke-dasharray: 1; stroke-dashoffset: 1; }
.site-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); }
.site-nav a[aria-current] { box-shadow: 0 2px 0 -0px var(--violet); }
.menu-btn { display: none; }

/* ---------- Type and blocks ---------- */
main { display: block; }
h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0 0 22px; max-width: 16ch; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 24px; }
h3 { font-size: 19px; letter-spacing: -.015em; margin: 0 0 8px; }
.grad { background: linear-gradient(100deg, #fff 0%, #d9ccff 35%, var(--violet) 65%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 14px 6px 10px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.03); letter-spacing: .01em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(110,231,255,.15), 0 0 14px var(--cyan); }
.kicker { font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .16em; color: var(--violet); margin: 0 0 12px; }
.muted { color: var(--muted); }

.page-head { padding-top: clamp(56px, 11vh, 120px); padding-bottom: clamp(32px, 6vh, 56px); }
.section { padding-top: clamp(48px, 9vh, 96px); padding-bottom: clamp(48px, 9vh, 96px); }
.section + .section { border-top: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .3s, background .3s; }
.btn.primary { color: #0a0a12; background: linear-gradient(180deg, #fff, #dcd6ff); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 10px 40px -8px rgba(167,139,250,.7); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 14px 50px -6px rgba(167,139,250,.95); }
.btn.ghost { color: var(--fg); border: 1px solid var(--line2); background: rgba(255,255,255,.03); }
.btn.ghost:hover { background: rgba(255,255,255,.07); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards that light up under the cursor */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.glow-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; isolation: isolate; }
.glow-card::before, .glow-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; }
.glow-card::before { background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(167,139,250,.16), transparent 60%); z-index: -1; }
.glow-card::after {
  padding: 1px;
  background: radial-gradient(200px circle at var(--x, 50%) var(--y, 50%), rgba(214,200,255,.9), rgba(110,231,255,.35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) and (pointer: fine) {
  .motion .glow-zone:hover .glow-card::after { opacity: .55; }
  .motion .glow-card:hover::before, .motion .glow-card:hover::after { opacity: 1; }
}
.glow-card p { margin: 0; color: var(--muted); }
.glow-card .tag { margin: 0 0 8px; font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.glow-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.glow-card li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 12px 2px 0; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.glow-card .big { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.glow-card .figure { margin-top: 16px; color: var(--fg); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.steps .num { display: block; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--violet); margin-bottom: 18px; letter-spacing: .1em; }

/* FAQ */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--violet); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; }

/* Long-form text (About, Privacy, Terms) */
.prose { max-width: 700px; }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin: 44px 0 10px; }
.prose p, .prose li { color: #d6d4e4; }
.prose ul { padding-left: 20px; }
.prose li { margin: 0 0 10px; }
.prose li::marker { color: var(--violet); }
.prose strong { color: var(--fg); }
.prose-card { padding: clamp(24px, 4vw, 44px); }

/* Closing call to action */
.cta-band { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 28px; }
.cta-band .ctas { justify-content: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: clamp(48px, 8vh, 96px); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* Motion: initial states that site.js animates in; a timer in <head> removes .motion if it never runs.
   The headline and the line under it are never hidden: they are what a visitor reads first. */
.motion .intro:not(h1):not(h1 + p), .motion .reveal { opacity: 0; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .site-nav { gap: 2px 16px; }
  .site-nav a { font-size: 14px; }
  /* With JavaScript the links fold into a menu; without it they simply wrap. */
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(255,255,255,.04); color: var(--fg); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; }
  .menu-btn .bars { width: 16px; height: 10px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
  .js .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 6px 0 14px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { font-size: 17px; color: var(--fg); padding: 12px 0; border-top: 1px solid var(--line); }
}
