/* ========== SPAU Electronics — design system ========== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Sora:wght@400;600;700;800&display=swap');

:root {
  --bg: #07090f;
  --bg-2: #0d111b;
  --card: #121827;
  --card-2: #172033;
  --line: rgba(255, 255, 255, .08);
  --text: #eef2fa;
  --muted: #98a3ba;
  --amber: #ffb547;
  --amber-2: #ff8a3d;
  --cyan: #3de0ff;
  --violet: #8b6bff;
  --grad: linear-gradient(120deg, var(--amber), var(--amber-2));
  --grad-cool: linear-gradient(120deg, var(--cyan), var(--violet));
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-h: 'Sora', system-ui, sans-serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-b); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad); }
.h1 { font-family: var(--font-h); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.h2 { font-family: var(--font-h); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.h3 { font-family: var(--font-h); font-size: 1.2rem; font-weight: 600; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.center .lead { margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; position: relative; overflow: hidden; }
.btn-primary { background: var(--grad); color: #1a1000; box-shadow: 0 10px 30px -8px rgba(255, 160, 50, .6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(255, 160, 50, .8); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--amber); transform: translateY(-3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.center .btn-row { justify-content: center; }

/* ---------- Preloader ---------- */
.preload { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
.preload.done { opacity: 0; visibility: hidden; }
.preload .bulb { width: 70px; height: 70px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 60px 20px rgba(255, 181, 71, .5); animation: flicker 1.1s infinite alternate; }
@keyframes flicker { from { opacity: .35; transform: scale(.9); } to { opacity: 1; transform: scale(1.05); } }

/* ---------- Top bar & nav ---------- */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding: 8px 0; }
.topbar a:hover { color: var(--amber); }
.header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px); background: rgba(7, 9, 15, .7); border-bottom: 1px solid var(--line); transition: background .3s; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: var(--font-h); font-weight: 800; font-size: 1.5rem; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 18px 4px rgba(255, 181, 71, .7); animation: pulse 2.4s infinite; }
.logo small { font-weight: 500; font-size: .6rem; letter-spacing: .25em; color: var(--muted); display: block; margin-top: -4px; }
@keyframes pulse { 50% { box-shadow: 0 0 28px 8px rgba(255, 181, 71, .9); } }
.nav-list { display: flex; gap: 6px; align-items: center; }
.nav-list a { padding: 10px 16px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: .25s; }
.nav-list a:hover, .nav-list a.active { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-list a.cta { background: var(--grad); color: #1a1000; font-weight: 700; margin-left: 8px; }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-list { position: fixed; inset: 74px 0 auto 0; background: var(--bg-2); flex-direction: column; padding: 24px; gap: 8px; transform: translateY(-120%); transition: transform .5s var(--ease); border-bottom: 1px solid var(--line); }
  .nav-list.open { transform: none; }
  .nav-list a { width: 100%; text-align: center; font-size: 1.05rem; }
  .topbar .hide-m { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.reveal-left { transform: translateX(-50px); } .reveal-right { transform: translateX(50px); }
.reveal-left.in, .reveal-right.in { transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 110px) 0 clamp(70px, 10vw, 120px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; animation: float 14s ease-in-out infinite; }
.glow.g1 { width: 520px; height: 520px; background: var(--amber); top: -140px; right: -60px; }
.glow.g2 { width: 460px; height: 460px; background: var(--violet); bottom: -160px; left: -100px; animation-delay: -5s; opacity: .3; }
.glow.g3 { width: 340px; height: 340px; background: var(--cyan); top: 40%; left: 40%; opacity: .15; animation-delay: -9s; }
@keyframes float { 50% { transform: translate(40px, -30px) scale(1.12); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero .h1 { margin: 12px 0 22px; }
.badge-soon { display: inline-flex; align-items: center; gap: 10px; background: rgba(61, 224, 255, .1); border: 1px solid rgba(61, 224, 255, .35); color: var(--cyan); padding: 8px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.badge-soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1.6s infinite; }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { font-family: var(--font-h); font-size: 1.9rem; display: block; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
@media (max-width: 920px) { .hero .container { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-inline: auto; } .btn-row, .hero-stats { justify-content: center; } }

/* Animated hero bulb */
.bulb-stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.bulb-svg { width: min(360px, 80%); filter: drop-shadow(0 0 60px rgba(255, 181, 71, .55)); animation: bob 6s ease-in-out infinite; cursor: pointer; }
@keyframes bob { 50% { transform: translateY(-16px); } }
.bulb-glass { fill: url(#glassGrad); }
.bulb-core { animation: coreGlow 3s ease-in-out infinite; transform-origin: center; }
@keyframes coreGlow { 50% { opacity: .7; } }
.ray { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; opacity: .7; animation: ray 2.4s ease-in-out infinite; }
@keyframes ray { 50% { opacity: .15; } }
.orbit { position: absolute; inset: 0; margin: auto; width: 420px; height: 420px; max-width: 100%; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 50%; animation: spin 30s linear infinite; }
.orbit.o2 { width: 320px; height: 320px; animation-duration: 22s; animation-direction: reverse; }
.orbit .chip { position: absolute; top: -18px; left: 50%; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); font-size: 1rem; }
.orbit.o2 .chip { top: auto; bottom: -18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .chip span { animation: spin 30s linear infinite reverse; }
.bulb-hint { position: absolute; bottom: 0; font-size: .8rem; color: var(--muted); }
body.lights-off .bulb-svg { filter: none; }
body.lights-off .bulb-core, body.lights-off .ray { opacity: .05; animation: none; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); padding: 18px 0; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span { font-family: var(--font-h); font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 1.05rem; }
.marquee-track span b { color: var(--amber); margin-right: 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.section-head { margin-bottom: 56px; }
.card { background: linear-gradient(160deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; position: relative; overflow: hidden; }
.card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 181, 71, .12), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { transform: translateY(-8px); border-color: rgba(255, 181, 71, .4); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.card:hover::after { opacity: 1; }
.icon-box { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .25); margin-bottom: 20px; }
.card p { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* Product visual (css-only art) */
.p-visual { height: 200px; border-radius: 16px; margin-bottom: 22px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 120%, rgba(255, 181, 71, .28), transparent 65%), var(--bg); }
.p-visual svg { width: 130px; height: 130px; transition: transform .5s var(--ease); }
.card:hover .p-visual svg { transform: scale(1.12) rotate(-3deg); }
.tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; background: rgba(61, 224, 255, .14); border: 1px solid rgba(61, 224, 255, .4); color: var(--cyan); text-transform: uppercase; }
.tag.new { background: rgba(255, 181, 71, .14); border-color: rgba(255, 181, 71, .45); color: var(--amber); }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.specs li { font-size: .75rem; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Launch / countdown ---------- */
.launch { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.countdown { display: flex; gap: 14px; margin: 30px 0 8px; flex-wrap: wrap; }
.countdown div { min-width: 86px; padding: 16px 10px; border-radius: 18px; text-align: center; background: var(--card); border: 1px solid var(--line); }
.countdown strong { display: block; font-family: var(--font-h); font-size: 2rem; line-height: 1; }
.countdown span { font-size: .7rem; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.rev .split-media { order: -1; } }
.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; color: var(--muted); }
.check-list li::before { content: '✓'; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(61, 224, 255, .15); color: var(--cyan); font-size: .8rem; font-weight: 700; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); position: relative; }
.step::before { content: '0' counter(s); font-family: var(--font-h); font-size: 2.6rem; font-weight: 800; background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.chip-btn { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 600; font-size: .9rem; transition: .3s; }
.chip-btn:hover { color: var(--text); border-color: var(--amber); }
.chip-btn.active { background: var(--grad); color: #1a1000; border-color: transparent; }
.p-item { transition: opacity .4s, transform .4s var(--ease); }
.p-item.hide { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(70px, 10vw, 120px) 0 clamp(40px, 6vw, 70px); position: relative; overflow: hidden; text-align: center; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .lead { margin: 18px auto 0; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats strong { font-family: var(--font-h); font-size: clamp(2rem, 5vw, 3.2rem); display: block; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: auto; padding-left: 34px; border-left: 2px solid var(--line); display: grid; gap: 40px; }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -43px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 181, 71, .18); }
.tl-item small { color: var(--amber); font-weight: 700; letter-spacing: .1em; }
.tl-item p { color: var(--muted); margin-top: 6px; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; } .field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .3s, box-shadow .3s; }
.input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 181, 71, .12); }
textarea.input { min-height: 130px; resize: vertical; }
select.input option { background: var(--bg); }
.success { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: rgba(61, 224, 150, .1); border: 1px solid rgba(61, 224, 150, .4); color: #6df0b0; }
.success.show { display: block; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.info-list { display: grid; gap: 22px; }
.info-list div { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon-box { margin: 0; flex: none; }
.info-list small { color: var(--muted); display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.info-list a:hover { color: var(--amber); }

/* ---------- CTA ---------- */
.cta-band { border-radius: 32px; padding: clamp(40px, 7vw, 80px) 30px; text-align: center; position: relative; overflow: hidden; background: radial-gradient(circle at 20% 0%, rgba(255, 181, 71, .25), transparent 50%), radial-gradient(circle at 90% 100%, rgba(139, 107, 255, .3), transparent 50%), var(--card); border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-h); margin-bottom: 16px; font-size: 1rem; }
.footer li { margin-bottom: 10px; } .footer li a, .footer p { color: var(--muted); font-size: .92rem; } .footer li a:hover { color: var(--amber); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .85rem; }
.sub-form { display: flex; gap: 8px; margin-top: 14px; }
.sub-form input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; outline: none; }
.sub-form input:focus { border-color: var(--amber); }
.sub-form button { padding: 12px 20px; border-radius: 999px; background: var(--grad); color: #1a1000; font-weight: 700; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #1a1000; font-weight: 800; font-size: 1.2rem; opacity: 0; transform: translateY(20px); transition: .4s; box-shadow: 0 10px 30px -8px rgba(255, 160, 50, .7); }
.to-top.show { opacity: 1; transform: none; }

/* =====================================================
   APP DEMO (phone mockup)
   ===================================================== */
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone { width: 320px; height: 660px; border-radius: 48px; padding: 11px; background: linear-gradient(145deg, #2a3350, #0d111b); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), 0 0 0 2px #1d2540, 0 0 80px -10px rgba(139, 107, 255, .35); position: relative; transform-style: preserve-3d; transition: transform .2s; }
.phone.sm { transform: scale(.88); transform-origin: top center; margin-bottom: -80px; }
.phone-screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #0a0e18; position: relative; display: flex; flex-direction: column; }
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 20; }
.statusbar { display: flex; justify-content: space-between; padding: 14px 24px 6px; font-size: .72rem; font-weight: 700; flex: none; }
.app-body { flex: 1; overflow-y: auto; padding: 8px 18px 20px; scrollbar-width: none; position: relative; }
.app-body::-webkit-scrollbar { display: none; }
.app-hello small { color: var(--muted); font-size: .75rem; } .app-hello h4 { font-family: var(--font-h); font-size: 1.35rem; margin-top: 2px; }
.app-hello { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-cool); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.app-summary { display: flex; gap: 10px; margin-bottom: 14px; }
.app-summary div { flex: 1; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.app-summary b { font-family: var(--font-h); font-size: 1.1rem; display: block; } .app-summary span { font-size: .65rem; color: var(--muted); }
.sec-title { font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.scenes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.scenes::-webkit-scrollbar { display: none; }
.scene-btn { flex: none; padding: 9px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: .75rem; font-weight: 600; transition: .3s; white-space: nowrap; }
.scene-btn:hover { border-color: var(--amber); } .scene-btn.active { background: var(--grad); color: #1a1000; border-color: transparent; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dev { padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: background .4s, border-color .4s, transform .3s var(--ease); position: relative; animation: devIn .6s var(--ease) both; min-height: 118px; display: flex; flex-direction: column; }
.dev:hover { transform: translateY(-3px); }
@keyframes devIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.dev.on { background: linear-gradient(160deg, color-mix(in srgb, var(--dc) 38%, #121827), #121827 85%); border-color: color-mix(in srgb, var(--dc) 60%, transparent); box-shadow: 0 10px 30px -14px var(--dc); }
.dev-ico { font-size: 1.5rem; filter: grayscale(1) opacity(.55); transition: .4s; } .dev.on .dev-ico { filter: none; }
.dev b { font-size: .8rem; display: block; margin-top: auto; line-height: 1.2; } .dev small { font-size: .65rem; color: var(--muted); }
.toggle { position: absolute; top: 12px; right: 12px; width: 36px; height: 20px; border-radius: 20px; background: #2a3350; transition: .3s; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .3s var(--ease); }
.dev.on .toggle { background: var(--dc); } .dev.on .toggle::after { transform: translateX(16px); }
.add-dev { border: 1.5px dashed rgba(255, 255, 255, .2); background: transparent; align-items: center; justify-content: center; text-align: center; gap: 6px; color: var(--muted); font-size: .75rem; }
.add-dev:hover { border-color: var(--amber); color: var(--amber); }
.add-dev span { font-size: 1.6rem; line-height: 1; }
.tabbar { flex: none; display: flex; justify-content: space-around; padding: 10px 10px 18px; background: rgba(13, 17, 27, .95); border-top: 1px solid var(--line); }
.tabbar button { display: grid; justify-items: center; gap: 2px; font-size: .62rem; color: var(--muted); padding: 4px 12px; transition: .3s; } .tabbar button span { font-size: 1.15rem; } .tabbar button.active { color: var(--amber); }

/* bottom sheet */
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: .35s; z-index: 30; }
.sheet-back.show { opacity: 1; visibility: visible; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 31; background: #111828; border-radius: 28px 28px 0 0; padding: 12px 20px 26px; transform: translateY(105%); transition: transform .5s var(--ease); max-height: 82%; overflow-y: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
.sheet.show { transform: none; }
.grab { width: 40px; height: 4px; border-radius: 4px; background: #333d5c; margin: 0 auto 16px; }
.sheet h5 { font-family: var(--font-h); font-size: 1.1rem; } .sheet .sub { color: var(--muted); font-size: .75rem; margin-bottom: 14px; }
.ctrl { margin: 16px 0; } .ctrl label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.ctrl label b { color: var(--text); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none; background: linear-gradient(90deg, var(--amber) var(--v, 50%), #243050 var(--v, 50%)); }
input[type=range].temp { background: linear-gradient(90deg, #ff9d3d, #fff4e0, #bfe0ff); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; transition: .25s; } .sw.sel { border-color: #fff; transform: scale(1.15); }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions button { flex: 1; padding: 12px; border-radius: 14px; font-weight: 700; font-size: .8rem; background: var(--card-2); }
.sheet-actions .danger { color: #ff6b7a; } .sheet-actions .pri { background: var(--grad); color: #1a1000; }
.radar { width: 150px; height: 150px; margin: 10px auto 16px; border-radius: 50%; position: relative; display: grid; place-items: center; background: radial-gradient(circle, rgba(61, 224, 255, .18), transparent 70%); border: 1px solid rgba(61, 224, 255, .3); overflow: hidden; }
.radar::before { content: ''; position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(61, 224, 255, .55), transparent 25%); animation: spin 1.8s linear infinite; }
.radar span { position: relative; font-size: 1.8rem; }
.found { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; width: 100%; text-align: left; animation: devIn .5s var(--ease) both; transition: .3s; }
.found:hover { border-color: var(--cyan); } .found .e { font-size: 1.4rem; } .found b { font-size: .82rem; display: block; } .found small { font-size: .68rem; color: var(--muted); }
.found .go { margin-left: auto; color: var(--cyan); font-size: .72rem; font-weight: 700; }
.pairing { text-align: center; padding: 14px 0; } .pairing .bar { height: 6px; border-radius: 6px; background: #243050; overflow: hidden; margin: 16px 0 8px; } .pairing .bar i { display: block; height: 100%; width: 0; background: var(--grad-cool); transition: width .25s linear; }
.room-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .room-chips button { padding: 8px 14px; border-radius: 12px; background: var(--card-2); font-size: .72rem; border: 1px solid transparent; } .room-chips button.sel { border-color: var(--amber); color: var(--amber); }
.toast { position: absolute; left: 18px; right: 18px; top: 52px; z-index: 40; padding: 12px 14px; border-radius: 16px; background: rgba(23, 32, 51, .96); border: 1px solid var(--line); font-size: .75rem; transform: translateY(-140%); transition: transform .5s var(--ease); display: flex; gap: 10px; align-items: center; backdrop-filter: blur(10px); }
.toast.show { transform: none; }
.energy-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin: 8px 0 4px; } .energy-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad-cool); animation: grow 1s var(--ease) both; transform-origin: bottom; } @keyframes grow { from { transform: scaleY(0); } }
.sched { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; font-size: .78rem; } .sched b { display: block; } .sched small { color: var(--muted); font-size: .68rem; } .sched .toggle { position: relative; top: 0; right: 0; margin-left: auto; flex: none; }
.sched .toggle.on { background: var(--amber); } .sched .toggle.on::after { transform: translateX(16px); }

/* floating cards around phone */
.float-card { position: absolute; background: rgba(18, 24, 39, .9); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; font-size: .78rem; display: flex; gap: 10px; align-items: center; animation: bob 7s ease-in-out infinite; box-shadow: 0 20px 40px -20px #000; z-index: 3; }
.float-card.f1 { left: -30px; top: 90px; } .float-card.f2 { right: -40px; top: 300px; animation-delay: -3s; } .float-card.f3 { left: -10px; bottom: 80px; animation-delay: -5s; }
.float-card b { display: block; } .float-card small { color: var(--muted); }
@media (max-width: 760px) { .float-card { display: none; } }

/* Room visual */
.room { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #070a12; border: 1px solid var(--line); isolation: isolate; }
.room-dark { position: absolute; inset: 0; background: #02030a; opacity: .78; transition: opacity .8s; z-index: 5; pointer-events: none; }
.room .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(#141b2e, #0b1020); }
.room .wall { position: absolute; inset: 0 0 32% 0; background: linear-gradient(#1a2238, #10172a); }
.room .sofa { position: absolute; left: 14%; bottom: 20%; width: 42%; height: 18%; border-radius: 18px 18px 8px 8px; background: #2a3556; box-shadow: 0 -22px 0 -6px #34416a; }
.room .window { position: absolute; right: 9%; top: 12%; width: 22%; height: 34%; border-radius: 10px; background: linear-gradient(#18274d, #0b1530); border: 4px solid #232d4a; }
.room .tbl { position: absolute; right: 16%; bottom: 20%; width: 18%; height: 7%; border-radius: 8px; background: #2f3a5c; }
.light-spot { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0; transition: opacity .6s, background .6s, transform .6s; mix-blend-mode: screen; z-index: 4; pointer-events: none; }
.light-spot.on { opacity: var(--op, .8); }
.fixture { position: absolute; z-index: 6; font-size: 1.5rem; transform: translate(-50%, -50%); filter: grayscale(1) brightness(.7); transition: .5s; }
.fixture.on { filter: drop-shadow(0 0 12px var(--c)); }
.room-label { position: absolute; left: 16px; bottom: 14px; z-index: 7; font-size: .8rem; background: rgba(0, 0, 0, .5); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px); }

/* sticky demo layout */
.demo-layout { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
@media (max-width: 920px) { .demo-layout { grid-template-columns: 1fr; } }
.demo-side { display: grid; gap: 24px; }
.hint-box { padding: 18px 22px; border-radius: 18px; background: rgba(61, 224, 255, .07); border: 1px solid rgba(61, 224, 255, .25); font-size: .92rem; color: var(--muted); }
.hint-box b { color: var(--cyan); }
.feature-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

/* Compat diagram */
.hub { position: relative; height: 380px; display: grid; place-items: center; }
.hub-core { width: 110px; height: 110px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-family: var(--font-h); font-weight: 800; color: #1a1000; box-shadow: 0 0 80px rgba(255, 181, 71, .5); z-index: 2; animation: pulse 3s infinite; }
.hub-node { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.7rem; animation: bob 6s ease-in-out infinite; }
.hub-node span { position: absolute; top: 80px; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.hub svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub svg.lines line { stroke: rgba(255, 181, 71, .35); stroke-width: 1.5; stroke-dasharray: 6 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* logo image */
.logo-img { height: 46px; width: auto; display: block; transition: transform .3s var(--ease), filter .3s; }
.logo:hover .logo-img { transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(220, 50, 60, .55)); }
.footer .logo-img { height: 52px; }
@media (max-width: 520px) { .logo-img { height: 40px; } }
