/* ============================================================
   LUMAX TV — Premium landing (light + dark, animated)
   ============================================================ */
:root {
  /* dark theme (default) */
  --bg: #05070e;
  --bg-2: #0a0f1c;
  --surface: #0f1626;
  --surface-2: #131c2e;
  --line: rgba(120, 160, 220, 0.12);
  --line-strong: rgba(120, 170, 230, 0.30);
  --text: #eef3fb;
  --muted: #9fb0c9;
  --muted-2: #6b7c96;
  --ghost-bg: rgba(255, 255, 255, .04);
  --ghost-bg-hover: rgba(255, 255, 255, .09);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 20px 60px rgba(34, 211, 238, 0.22);
  --fx-strength: 1;
  --grid-alpha: 0.045;

  /* brand (shared) */
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-3: #8b5cf6;
  --grad: linear-gradient(120deg, #22d3ee, #3b82f6, #8b5cf6, #22d3ee);
  --grad-solid: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,.16), rgba(139,92,246,.16));

  --radius: 18px;
  --radius-lg: 26px;
  --max: 1180px;
  --nav-h: 72px;
}

[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-2: #eaf1fb;
  --surface: #ffffff;
  --surface-2: #f2f6fd;
  --line: rgba(20, 50, 100, 0.10);
  --line-strong: rgba(30, 90, 180, 0.22);
  --text: #0c1a30;
  --muted: #47586f;
  --muted-2: #7c8aa0;
  --ghost-bg: rgba(10, 30, 70, .03);
  --ghost-bg-hover: rgba(10, 30, 70, .07);
  --shadow: 0 24px 60px rgba(30, 60, 120, 0.14);
  --shadow-glow: 0 20px 55px rgba(59, 130, 246, 0.22);
  --fx-strength: 0.55;
  --grid-alpha: 0.06;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s ease, color .5s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.eyebrow .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.gradient-text {
  background: var(--grad);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 8s ease infinite;
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-solid); z-index: 200; border-radius: 0 3px 3px 0;
  box-shadow: 0 0 14px rgba(34, 211, 238, .6);
  transition: width .1s linear;
}

/* ---------- Animated background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: var(--fx-strength); transition: opacity .5s; }
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.bg-fx .b1 { width: 520px; height: 520px; background: radial-gradient(circle, #3b82f6, transparent 70%); top: -120px; left: 50%; transform: translateX(-50%); animation: drift1 18s ease-in-out infinite; }
.bg-fx .b2 { width: 420px; height: 420px; background: radial-gradient(circle, #8b5cf6, transparent 70%); top: 4%; right: -80px; animation: drift2 22s ease-in-out infinite; }
.bg-fx .b3 { width: 380px; height: 380px; background: radial-gradient(circle, #22d3ee, transparent 70%); top: 34%; left: -100px; animation: drift3 20s ease-in-out infinite; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 220, var(--grid-alpha)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, var(--grid-alpha)) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand img { height: 34px; width: auto; filter: drop-shadow(0 4px 14px rgba(34,211,238,.35)); }
.brand .gradient-text { letter-spacing: .06em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--grad-solid); border-radius: 2px; transition: right .3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* theme toggle */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--ghost-bg);
  display: grid; place-items: center; color: var(--text);
  transition: transform .3s, background .25s, border-color .25s;
  overflow: hidden;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

.mobile-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 13px; font-weight: 700; font-size: .96rem;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-solid); color: #04121a; box-shadow: var(--shadow-glow); }
.btn-primary::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 70px rgba(34, 211, 238, .40); }
.btn-primary:hover::before { left: 130%; }
.btn-ghost { background: var(--ghost-bg); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--ghost-bg-hover); border-color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: .9rem; border-radius: 11px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px)); padding-bottom: clamp(50px, 8vw, 100px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); margin: 22px 0; }
.hero .lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.7rem; font-weight: 800; }
.hero-stats .lbl { color: var(--muted-2); font-size: .82rem; }

/* Device mock */
.device {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.device::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(5,7,14,.35)); }
[data-theme="light"] .device::after { background: none; }
.device img { width: 100%; height: 100%; object-fit: cover; }
.device-wrap { position: relative; transform-style: preserve-3d; will-change: transform; }
.device-wrap .glow { position: absolute; inset: -30px -30px auto auto; width: 240px; height: 240px; background: radial-gradient(circle, rgba(34,211,238,.4), transparent 70%); filter: blur(34px); z-index: -1; animation: pulseGlow 5s ease-in-out infinite; }
.float-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 14px; font-size: .85rem; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0,0,0,.28);
  animation: floaty 5s ease-in-out infinite;
}
.float-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 12px #22c55e; animation: pulse 1.8s ease infinite; }
.float-badge.b1 { top: 18px; left: -22px; }
.float-badge.b2 { bottom: 26px; right: -18px; animation-delay: 1.4s; }

/* ---------- Marquee trust strip ---------- */
.trust { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; gap: 60px; width: max-content; animation: marquee 26s linear infinite; }
.trust:hover .marquee { animation-play-state: paused; }
.marquee span { color: var(--muted-2); font-weight: 800; letter-spacing: .06em; font-size: 1rem; opacity: .7; white-space: nowrap; display: inline-flex; align-items: center; gap: 60px; }
.marquee span::after { content: "•"; color: var(--accent); opacity: .5; }

/* ---------- Platforms ---------- */
.platforms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.platform:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.platform .p-ico { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); color: var(--accent); transition: transform .3s; }
.platform:hover .p-ico { transform: scale(1.1) rotate(-6deg); }
.platform .p-ico svg { width: 26px; height: 26px; }
.platform h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.platform p { color: var(--muted-2); font-size: .82rem; }

/* ---------- Features (bento + spotlight) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-solid); opacity: 0; transition: opacity .3s; }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card .f-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad-soft); color: var(--accent); transition: transform .3s; }
.card:hover .f-ico { transform: scale(1.08) rotate(-5deg); }
.card .f-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .95rem; }
.card.wide { grid-column: span 2; }

/* ---------- Showcase ---------- */
.showcase-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.shot:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.shot .cap { padding: 14px 18px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.shot .cap b { color: var(--text); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, border-color .25s; }
.step:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.step .n { font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 14px; }
.step h4 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .25s; }
.qa.open { border-color: var(--line-strong); }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: 0; color: var(--text); font-size: 1.02rem; font-weight: 600; cursor: pointer; text-align: left; }
.qa .ic { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.qa .ic::before, .qa .ic::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.qa .ic::before { top: 10px; left: 3px; right: 3px; height: 2px; }
.qa .ic::after { left: 10px; top: 3px; bottom: 3px; width: 2px; transition: transform .3s; }
.qa.open .ic::after { transform: scaleY(0); }
.qa .a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.qa .a p { padding: 0 24px 22px; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 72px); text-align: center; background: var(--grad-soft); border: 1px solid var(--line-strong); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 34px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid .brand { margin-bottom: 16px; }
.footer-about p { color: var(--muted); font-size: .92rem; max-width: 300px; }
.footer-col h5 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; padding: 6px 0; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .85rem; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.footer-bottom .socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* ---------- Legal pages ---------- */
.legal { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted-2); font-size: .88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal a { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .55; } }
@keyframes pulseGlow { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.12); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drift1 { 0%,100% { transform: translate(-50%, 0) scale(1); } 50% { transform: translate(-46%, 40px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 50px) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -30px) scale(1.06); } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .device-wrap { max-width: 520px; margin: 10px auto 0; transform: none !important; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase-row, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open { background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(18px); }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; background: color-mix(in srgb, var(--bg) 98%, transparent); border-bottom: 1px solid var(--line); padding: 20px 24px 28px; display: none; flex-direction: column; gap: 6px; z-index: 99; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 13px 4px; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 500; }
  .mobile-menu .btn { margin-top: 12px; }
  .bento, .platforms-grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
