/* ==========================================================================
   OneTV — marketing site design system
   Dark neumorphic aesthetic mirrored from the app (slate panels, blue accent).
   ========================================================================== */

:root {
  --bg: #0a0b0d;
  --bg-2: #0f1216;
  --panel: #16191f;
  --panel-2: #21242a;          /* neuBase from the app */
  --panel-3: #2a2e36;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #e8eaed;
  --muted: #9aa1ac;
  --faint: #6b7280;

  --accent: #4c9efa;           /* app accent rgb(0.30,0.62,0.98) */
  --accent-strong: #2f7fe0;
  --accent-soft: rgba(76, 158, 250, 0.14);
  --green: #34c759;
  --red: #ff453a;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  --shadow-dark: rgba(0, 0, 0, 0.55);
  --shadow-light: rgba(255, 255, 255, 0.05);

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient glow background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(76, 158, 250, 0.16), transparent 60%),
    radial-gradient(48rem 34rem at 8% 6%, rgba(76, 158, 250, 0.08), transparent 55%),
    linear-gradient(180deg, #0b0e13 0%, var(--bg) 40%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7db8ff; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 650;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(76, 158, 250, 0.65);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-ghost {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-3); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 11, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 550; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switcher { display: inline-flex; align-items: center; }
.lang-select {
  font: inherit; font-size: 0.9rem; font-weight: 550;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 30px 8px 14px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa1ac' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  transition: border-color 0.2s ease;
}
.lang-select:hover { border-color: var(--line-strong); }
.lang-select:focus { outline: none; border-color: var(--accent); }
.lang-select option { background: #14171d; color: var(--text); }
[dir="rtl"] .lang-select { padding: 8px 14px 8px 30px; background-position: left 11px center; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 20px; }
.hero-note { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 0.9rem; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.badge svg { color: var(--accent); }

/* ---------- Phone mockup (CSS recreation of the remote) ---------- */
.phone-wrap { display: flex; justify-content: center; perspective: 1600px; }
.phone {
  width: 300px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #23262d, #0c0d10);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px rgba(255, 255, 255, 0.03);
  transform: rotateY(-11deg) rotateX(4deg);
  transition: transform 0.5s ease;
}
.phone:hover { transform: rotateY(-4deg) rotateX(2deg); }
.screen {
  background: #000;
  border-radius: 36px;
  padding: 16px 14px 18px;
  overflow: hidden;
  position: relative;
}
.statusbar { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: #fff; padding: 2px 8px 12px; font-weight: 600; }
.statusbar .r { display: flex; gap: 5px; align-items: center; opacity: 0.9; }

.rmt-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.rmt-pill {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--panel-2); border-radius: 14px; padding: 11px 14px;
  color: #d8d8d8; font-size: 0.85rem; font-weight: 600;
}
.rmt-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.rmt-power {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #4a1414, #170606);
  color: #ff6b60; border: 1px solid rgba(255, 80, 70, 0.25);
}
.rmt-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.rmt-app {
  background: var(--panel-2); border-radius: 12px; padding: 12px 4px;
  text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--accent);
}
.rmt-util { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 12px; }
.rmt-util div {
  background: var(--panel-2); border-radius: 11px; padding: 10px 2px 8px;
  text-align: center; font-size: 0.6rem; color: var(--muted);
}
.rmt-util div span { display: block; font-size: 1rem; color: var(--accent); margin-bottom: 3px; }
.rmt-media { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.rmt-media b {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); color: var(--accent); font-size: 0.85rem;
}
.rmt-media .ch { width: auto; padding: 0 12px; border-radius: 14px; font-size: 0.7rem; color: var(--muted); gap: 6px; }
.rmt-toggle {
  display: flex; background: var(--panel-2); border-radius: 999px; padding: 4px; margin: 0 auto 16px; width: 190px;
}
.rmt-toggle span { flex: 1; text-align: center; font-size: 0.78rem; padding: 7px 0; border-radius: 999px; color: var(--muted); }
.rmt-toggle span.on { background: #3a3f47; color: #fff; }

.rmt-nav { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.dpad {
  flex: 1; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #2b2f37 0 45%, #1c1f25 46%);
  box-shadow: inset 8px 8px 16px #0b0c0f, inset -8px -8px 16px #2b2f38;
  position: relative; display: grid; place-items: center;
}
.dpad .ok {
  width: 42%; height: 42%; border-radius: 50%;
  background: linear-gradient(145deg, #2f343d, #21242a);
  box-shadow: 6px 6px 12px #0b0c0f, -6px -6px 12px #2c313a;
  display: grid; place-items: center; color: var(--accent); font-weight: 700; font-size: 0.95rem;
}
.dpad i { position: absolute; color: var(--accent); font-style: normal; font-size: 0.9rem; opacity: 0.9; }
.dpad .u { top: 12%; } .dpad .d { bottom: 12%; } .dpad .l { left: 14%; } .dpad .rr { right: 14%; }
.vol {
  width: 46px; align-self: stretch; border-radius: 26px; padding: 10px 0 0;
  background: var(--panel-2); box-shadow: inset 4px 4px 10px #0b0c0f, inset -3px -3px 8px #2c313a;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  position: relative; min-height: 150px;
}
.vol .num { color: #fff; font-size: 0.78rem; font-weight: 600; }
.vol .fill {
  width: 100%; height: 44%; margin-top: auto; border-radius: 26px;
  background: linear-gradient(180deg, #2f7fe0, #1c4f8f);
  display: grid; place-items: end center; padding-bottom: 12px; color: #cfe3ff; font-size: 0.85rem;
}
.rmt-bottom { display: flex; justify-content: space-around; }
.rmt-bottom b {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); color: var(--accent);
  box-shadow: 5px 5px 10px #0b0c0f, -5px -5px 10px #2c313a; font-size: 1rem;
}

/* keyboard-typing floating hint */
.type-hint {
  position: absolute; left: -18px; bottom: 96px;
  background: rgba(20, 23, 28, 0.92); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 9px 13px; font-size: 0.74rem; color: var(--text);
  box-shadow: 0 14px 30px -12px #000; display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(6px);
}
.type-hint svg { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: clamp(52px, 8vw, 92px) 0; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, #121418 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- Store badges ---------- */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #111318; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 14px; padding: 10px 18px; min-width: 178px;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}
.store-badge:hover { color: var(--text); border-color: var(--accent); background: #14171d; transform: translateY(-2px); }
.store-badge:active { transform: scale(0.98); }
.store-badge svg { flex-shrink: 0; }
.store-badge .lbl { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .lbl small { font-size: 0.68rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.store-badge .lbl b { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Brand wall ---------- */
.brands { background: var(--bg-2); border-block: 1px solid var(--line); }
.brand-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 34px;
}
.brand-chip {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 10px; font-weight: 700; font-size: 1rem; color: #d6dae0;
  letter-spacing: -0.01em; transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.brand-chip:hover { color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 0.86rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--panel-3); color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Real brand logos (monochrome SVG rendered white to fit the dark theme) */
.brand-logo {
  width: 24px; height: 24px; flex-shrink: 0; object-fit: contain;
  filter: brightness(0) invert(0.86);
  opacity: 0.92; transition: filter 0.2s, opacity 0.2s;
}
.brand-chip:hover .brand-logo { filter: brightness(0) invert(1); opacity: 1; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
  border: 1px solid rgba(76,158,250,0.3);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Spotlight ---------- */
.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spotlight ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.spotlight li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.spotlight li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.spotlight li b { color: var(--text); font-weight: 650; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px; background: var(--panel);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-inner {
  background:
    radial-gradient(40rem 20rem at 50% 0%, rgba(76,158,250,0.22), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px) 24px;
}
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 54px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--text); }
.footer-about { color: var(--muted); font-size: 0.94rem; max-width: 34ch; margin: 14px 0 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.86rem;
}

/* ---------- Legal / content pages ---------- */
.doc { padding: 56px 0 80px; }
.doc-wrap { max-width: 780px; margin: 0 auto; }
.doc h1 { margin-bottom: 6px; }
.doc .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 34px; }
.doc h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.doc h3 { margin: 22px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 16px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs { font-size: 0.85rem; color: var(--faint); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-card .row svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.form-note { font-size: 0.85rem; color: var(--faint); margin-top: 8px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid .phone-wrap { order: -1; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .spotlight-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-ghost { display: none; }
}

/* RTL: keep the device mockups visually LTR; let text flow RTL elsewhere */
[dir="rtl"] .phone,
[dir="rtl"] .statusbar { direction: ltr; }
[dir="rtl"] .store-badge .lbl,
[dir="rtl"] .card,
[dir="rtl"] .step,
[dir="rtl"] .doc-wrap { text-align: right; }
[dir="rtl"] .hero .lede { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
