/* Universal Control — marketing site (modern build) */
:root {
  --accent: #7C5CFC;
  --accent-2: #9D7BFF;
  --accent-deep: #5b3fe0;
  --accent-soft: #b9a6ff;
  --cyan: #45D6E0;
  --bg: #07050E;
  --bg-2: #0E0A1B;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(124, 92, 252, 0.45);
  --text: #F6F4FE;
  --text-dim: rgba(246, 244, 254, 0.64);
  --text-faint: rgba(246, 244, 254, 0.40);
  --radius: 20px;
  --max: 1140px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.011em;
}
a { color: var(--accent-soft); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Animated background mesh ---------- */
.bg-mesh { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob.b1 { width: 620px; height: 620px; background: #6f4bff; top: -220px; left: -120px; animation: drift 22s var(--ease) infinite alternate; }
.blob.b2 { width: 520px; height: 520px; background: #2f8fff; top: 10%; right: -180px; animation: drift 26s var(--ease) infinite alternate-reverse; }
.blob.b3 { width: 460px; height: 460px; background: #18c6d4; bottom: -200px; left: 30%; opacity: .25; animation: drift 30s var(--ease) infinite alternate; }
@keyframes drift { to { transform: translate3d(80px, 60px, 0) scale(1.12); } }
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .blob { animation: none; } }

/* ---------- Nav ---------- */
header.nav { position: sticky; top: 0; z-index: 100; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.nav.scrolled { background: rgba(7,5,14,.7); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.06rem; color: var(--text); letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px rgba(124,92,252,.4); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 9px 18px; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 0; }
  .nav-links.open { display: flex; } .nav-links a { padding: 13px 24px; } .nav-links .btn { margin: 8px 24px; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: .98rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); color: #fff;
  box-shadow: 0 10px 30px rgba(124,92,252,.4); transition: transform .18s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 18px 44px rgba(124,92,252,.55); }
.btn-ghost { background: var(--surface-2); box-shadow: none; border: 1px solid var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface); box-shadow: none; border-color: var(--border-bright); }
.appstore { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #000; padding: 11px 22px 11px 18px; border-radius: 14px; transition: transform .18s var(--ease); }
.appstore:hover { transform: translateY(-3px); color: #000; }
.appstore svg { width: 26px; height: 26px; }
.appstore .l1 { font-size: .68rem; line-height: 1; opacity: .7; } .appstore .l2 { font-size: 1.16rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--text-dim); margin-bottom: 22px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fd17a; box-shadow: 0 0 10px #2fd17a; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 .grad { background: linear-gradient(110deg, var(--accent-soft) 10%, var(--cyan) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { max-width: 540px; margin: 22px 0 0; font-size: 1.2rem; color: var(--text-dim); }
@media (max-width: 920px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 920px) { .hero .cta-row { justify-content: center; } }
.hero .trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-faint); font-size: .86rem; }
@media (max-width: 920px) { .hero .trust { justify-content: center; } }
.hero .trust b { color: var(--text); }

/* ---------- Phone mockup ---------- */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::after { content: ""; position: absolute; width: 320px; height: 320px; background: radial-gradient(circle, rgba(124,92,252,.5), transparent 65%); filter: blur(40px); z-index: -1; }
.phone { width: 290px; aspect-ratio: 9/19.3; background: linear-gradient(160deg, #1a1430, #0c0918); border-radius: 44px; padding: 13px;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.screen { position: relative; height: 100%; border-radius: 32px; background: radial-gradient(120% 80% at 50% 0%, #1c1533, #0a0714); overflow: hidden; padding: 30px 20px 22px; display: flex; flex-direction: column; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 86px; height: 26px; background: #000; border-radius: 14px; }
.scr-head { text-align: center; margin-bottom: 18px; }
.scr-head .conn { display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; color: #2fd17a; font-weight: 700; }
.scr-head .conn .dot { width: 5px; height: 5px; border-radius: 50%; background: #2fd17a; box-shadow: 0 0 7px #2fd17a; }
.scr-head .tv { font-size: 1.02rem; font-weight: 800; margin-top: 3px; }
.power { width: 50px; height: 50px; border-radius: 50%; margin: 4px auto 18px; display: grid; place-items: center; font-size: 1.2rem;
  background: linear-gradient(135deg, #ff5b6e, #d6263a); color: #fff; box-shadow: 0 8px 22px rgba(214,38,58,.5); }
.dpad { width: 168px; height: 168px; margin: 0 auto 16px; border-radius: 50%; position: relative;
  background: conic-gradient(from 45deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); }
.dpad .ok { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; box-shadow: 0 6px 18px rgba(124,92,252,.5); }
.dpad i { position: absolute; color: var(--text-dim); font-style: normal; font-size: .9rem; }
.dpad i.u { top: 12px; left: 50%; transform: translateX(-50%); } .dpad i.d { bottom: 12px; left: 50%; transform: translateX(-50%); }
.dpad i.l { left: 14px; top: 50%; transform: translateY(-50%); } .dpad i.r { right: 14px; top: 50%; transform: translateY(-50%); }
.scr-row { display: flex; gap: 8px; margin-top: auto; }
.scr-key { flex: 1; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); display: grid; place-items: center; color: var(--text-dim); font-size: .82rem; font-weight: 600; }

/* ---------- Logos / stats strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat .n { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; background: linear-gradient(120deg, #fff, var(--accent-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { color: var(--text-faint); font-size: .86rem; margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto 54px; text-align: center; }
.eyebrow { display: inline-block; color: var(--accent-soft); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; padding: 5px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 850; margin-top: 16px; letter-spacing: -.03em; line-height: 1.1; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.08rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), background .25s, border-color .25s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx,50%) 0%, rgba(124,92,252,.10), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: var(--border-bright); }
.card:hover::before { opacity: 1; }
.card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(124,92,252,.25), rgba(69,214,224,.12)); border: 1px solid var(--border); margin-bottom: 18px; }
.card h3 { font-size: 1.14rem; font-weight: 750; margin-bottom: 7px; letter-spacing: -.01em; }
.card p { color: var(--text-dim); font-size: .96rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 2.6rem; font-weight: 900; background: linear-gradient(120deg, var(--accent-soft), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .9; }
.step h3 { font-size: 1.16rem; font-weight: 750; margin: 8px 0 7px; }
.step p { color: var(--text-dim); font-size: .96rem; }

/* ---------- Brand chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
.chip { padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; color: var(--text-dim); transition: .2s; }
.chip:hover { border-color: var(--border-bright); color: var(--text); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.quote .stars { color: #ffc83d; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { color: var(--text); font-size: 1.0rem; }
.quote .by { margin-top: 14px; color: var(--text-faint); font-size: .88rem; font-weight: 600; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
@media (max-width: 780px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; text-align: center; position: relative; }
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(124,92,252,.16), var(--surface)); box-shadow: 0 20px 50px rgba(124,92,252,.18); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); color: #fff; font-size: .7rem; font-weight: 800; padding: 6px 15px; border-radius: 999px; letter-spacing: .06em; box-shadow: 0 6px 16px rgba(124,92,252,.5); }
.plan h3 { font-size: 1.12rem; font-weight: 750; }
.plan .price { font-size: 2.3rem; font-weight: 900; margin: 12px 0 2px; letter-spacing: -.02em; }
.plan .price span { font-size: .95rem; font-weight: 600; color: var(--text-faint); }
.plan .note { color: var(--text-dim); font-size: .9rem; }

/* ---------- Article (legal/support) ---------- */
.page-hero { padding: 80px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.03em; }
.page-hero p { color: var(--text-dim); margin-top: 12px; }
article.doc { max-width: 760px; margin: 0 auto; padding: 24px 0 70px; }
article.doc h2 { font-size: 1.45rem; font-weight: 800; margin: 40px 0 13px; letter-spacing: -.01em; }
article.doc h3 { font-size: 1.12rem; font-weight: 700; margin: 26px 0 8px; }
article.doc p, article.doc li { color: var(--text-dim); margin-bottom: 12px; }
article.doc ul { padding-left: 22px; margin-bottom: 14px; } article.doc li { margin-bottom: 7px; }
article.doc strong { color: var(--text); }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.updated { color: var(--text-faint); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details.qa { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; transition: border-color .2s; }
details.qa[open] { border-color: var(--border-bright); }
details.qa summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--accent-soft); font-size: 1.5rem; font-weight: 300; transition: transform .2s; }
details.qa[open] summary::after { content: "–"; }
details.qa p { color: var(--text-dim); padding-bottom: 18px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; padding: 64px 28px;
  background: linear-gradient(135deg, rgba(124,92,252,.22), rgba(69,214,224,.08)); }
.cta-band::before { content: ""; position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(124,92,252,.4), transparent 65%); top: -250px; left: 50%; transform: translateX(-50%); filter: blur(40px); }
.cta-band h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 850; letter-spacing: -.03em; position: relative; }
.cta-band p { color: var(--text-dim); margin: 14px 0 28px; position: relative; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 50px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.foot-brand { max-width: 300px; } .foot-brand .brand { margin-bottom: 14px; } .foot-brand p { color: var(--text-faint); font-size: .9rem; }
.foot-links { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-dim); font-size: .92rem; margin-bottom: 10px; }
.copyright { margin-top: 38px; color: var(--text-faint); font-size: .84rem; text-align: center; line-height: 1.7; }
