:root {
  --bg: #04060f;
  --bg-2: #0a0f22;
  --panel: #0e1430;
  --line: #1f2a52;
  --text: #f3f5ff;
  --muted: #9aa5c8;
  --amber: #ffb52e;
  --amber-2: #ff7a1a;
  --cyan: #2fd8ff;
  --violet: #9a6bff;
  --pink: #ff3d8b;
  --green: #3ee07a;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* Animated pixel-grid backdrop */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, #ff3d8b33, transparent 32rem),
    radial-gradient(circle at 85% 20%, #2fd8ff2e, transparent 30rem),
    radial-gradient(circle at 50% 95%, #ffb52e26, transparent 34rem),
    var(--bg);
}
.backdrop::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(#ffffff14 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(#000, transparent 85%);
}

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: #04060fcc; border-bottom: 1px solid #ffffff10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px 'Space Grotesk', sans-serif; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span b { background: linear-gradient(90deg, var(--amber), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #1a0d00; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px; border: 0;
  font: 700 15px 'Inter', sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #1a0d00; background: linear-gradient(100deg, var(--amber), var(--amber-2)); box-shadow: 0 10px 40px #ff8a1a55, inset 0 1px 0 #fff6; }
.btn-ghost { color: var(--text); background: #ffffff0d; border: 1px solid #ffffff22; }
.play-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 14px; background: #000; border: 1px solid #ffffff33; color: #fff; text-decoration: none; }
.play-badge svg { width: 26px; height: 26px; }
.play-badge small { display: block; font-size: 10px; letter-spacing: .08em; color: #c9cfe6; text-transform: uppercase; }
.play-badge b { font: 700 18px 'Space Grotesk', sans-serif; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid #ffb52e55; background: #ffb52e14; color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); margin: 18px 0 18px; }
.hero h1 .glow {
  background: linear-gradient(90deg, var(--amber), var(--pink), var(--violet), var(--cyan), var(--green), var(--amber));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue-run 8s linear infinite;
  filter: drop-shadow(0 0 24px #ff3d8b55);
}
@keyframes hue-run { to { background-position: 300% 0; } }
.hero .lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 560px; }
.hero .hindi { margin-top: 12px; font-size: 18px; color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.hero-stats div b { display: block; font: 700 28px 'Space Grotesk', sans-serif; color: var(--text); }
.hero-stats div span { color: var(--muted); font-size: 13px; }

/* LED matrix showcase */
.matrix-card {
  position: relative; padding: 18px; border-radius: 28px;
  background: linear-gradient(160deg, #121a3e, #070a18);
  border: 1px solid #ffffff1a;
  box-shadow: 0 30px 80px #000a, 0 0 0 1px #ffffff08 inset, 0 0 120px #9a6bff22;
}
.matrix-card::before { content: ''; position: absolute; inset: -2px; border-radius: 30px; z-index: -1; background: conic-gradient(from var(--spin, 0deg), var(--amber), var(--pink), var(--violet), var(--cyan), var(--green), var(--amber)); filter: blur(18px); opacity: .55; animation: halo 6s linear infinite; }
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes halo { to { --spin: 360deg; } }
.matrix-card canvas { width: 100%; height: auto; border-radius: 16px; background: #02030a; }
.matrix-chain { height: 14px; margin-bottom: 12px; border-radius: 6px; overflow: hidden; background: #02030a; }
.matrix-chain canvas { width: 100%; height: 100%; image-rendering: pixelated; border-radius: 0; }
.matrix-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.matrix-meta b { color: var(--amber); }
.mode-dots { display: flex; gap: 6px; }
.mode-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #ffffff33; cursor: pointer; }
.mode-dots button.active { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* Marquee */
.marquee { border-block: 1px solid #ffffff12; background: #070a18; overflow: hidden; padding: 16px 0; margin-top: 40px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font: 700 18px 'Space Grotesk', sans-serif; color: #c9cfe6; white-space: nowrap; }
.marquee span::before { content: '✦'; margin-right: 48px; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, #10183a, #0a0f22); border: 1px solid var(--line);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--c, var(--amber)); }
.feature::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c, var(--amber)); opacity: .14; filter: blur(30px); }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: #ffffff0d; border: 1px solid #ffffff1a; color: var(--c, var(--amber)); text-shadow: 0 0 14px var(--c, var(--amber)); }
.feature h3 { font-size: 21px; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Playground */
.playground { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.panel { padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, #10183a, #0a0f22); border: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; background: #070a18; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; }
.tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 14px 'Inter', sans-serif; cursor: pointer; }
.tabs button.active { background: linear-gradient(100deg, #ffb52e33, #ff3d8b33); color: var(--text); box-shadow: inset 0 0 0 1px #ffb52e66; }
.control { margin-bottom: 18px; }
.control label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.control label output { color: var(--amber); }
.control input[type=text] { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #070a18; color: var(--text); padding: 0 14px; font: 600 16px 'Inter', sans-serif; }
.control input[type=range] { width: 100%; accent-color: var(--amber); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: 0 0 14px var(--sw); background: var(--sw); }
.swatches button.active { border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #070a18; color: var(--muted); font: 600 13px 'Inter', sans-serif; cursor: pointer; }
.chips button.active { color: #1a0d00; background: var(--amber); border-color: var(--amber); }
.dial-row { display: flex; align-items: center; gap: 18px; }
.dial { width: 92px; height: 92px; flex: none; border-radius: 50%; touch-action: none; cursor: grab; background: radial-gradient(circle, #141c40 55%, transparent 56%), repeating-conic-gradient(from 0deg, #9a6bff 0 2deg, transparent 2deg 10deg); position: relative; }
.dial i { position: absolute; left: 50%; top: 50%; width: 4px; height: 34px; margin-left: -2px; border-radius: 4px; background: var(--amber); box-shadow: 0 0 12px var(--amber); transform-origin: 50% 0; }
.dial-row p { color: var(--muted); font-size: 14px; }
.pg-hint { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #0a0f22; position: relative; }
.step::before { counter-increment: step; content: '0' counter(step); font: 700 54px 'Space Grotesk', sans-serif; background: linear-gradient(180deg, var(--amber), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 22px; margin: 6px 0 10px; }
.step p { color: var(--muted); }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { padding: 22px; border-radius: 18px; background: linear-gradient(180deg, #ffffff0a, #ffffff03); border: 1px solid #ffffff14; }
.use b { display: block; font: 700 18px 'Space Grotesk', sans-serif; margin: 10px 0 6px; }
.use span { font-size: 30px; }
.use p { color: var(--muted); font-size: 14px; }

/* Hardware */
.hardware { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hw { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #0a0f22; }
.hw em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--c); }
.hw h3 { font-size: 22px; margin: 8px 0 12px; }
.hw ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 16px 0 18px; }
.about p { color: var(--muted); margin-bottom: 14px; font-size: 17px; }
.about-card { padding: 34px; border-radius: 28px; background: linear-gradient(150deg, #ff3d8b22, #2fd8ff1a 60%, #ffb52e1a); border: 1px solid #ffffff1f; }
.about-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.about-card li { display: flex; gap: 14px; align-items: flex-start; }
.about-card li span { font-size: 22px; }
.about-card li b { display: block; }
.about-card li small { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #0a0f22; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* CTA */
.cta { text-align: center; padding: 70px 30px; border-radius: 32px; background: radial-gradient(circle at 20% 20%, #ff3d8b55, transparent 50%), radial-gradient(circle at 80% 80%, #2fd8ff44, transparent 50%), linear-gradient(140deg, #1a1240, #0a0f22); border: 1px solid #ffffff22; }
.cta h2 { font-size: clamp(32px, 5vw, 56px); }
.cta p { color: #c9cfe6; margin: 16px auto 30px; max-width: 560px; font-size: 18px; }
.cta .hero-actions { justify-content: center; }

/* Footer */
footer { padding: 50px 0 40px; border-top: 1px solid #ffffff12; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer nav a:hover { color: var(--text); }
footer small { color: var(--muted); }

/* Legal pages */
.legal { padding: 60px 0 40px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 54px); margin: 14px 0 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin: 38px 0 12px; color: var(--amber); }
.legal p, .legal li { color: #c9cfe6; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin-bottom: 8px; }
.legal .summary { padding: 22px 24px; border-radius: 18px; border: 1px solid #3ee07a55; background: #3ee07a12; }
.legal .summary b { color: var(--green); }
.placeholder { background: #ff3d8b33; border: 1px dashed var(--pink); border-radius: 6px; padding: 0 6px; color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero .wrap, .playground, .about { grid-template-columns: 1fr; }
  .features, .hardware, .steps { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 18px; background: #04060ff2; border-bottom: 1px solid #ffffff14; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding-top: 40px; }
  section { padding: 70px 0; }
  .features, .hardware, .steps, .uses { grid-template-columns: 1fr; }
  .hero-actions .btn, .hero-actions .play-badge { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
