/* AutoPlay: Car TV & Video — autoplaycartv.com
   Dark, cinematic, automotive. One accent (electric teal), soft ambient glows, glass surfaces. */
:root {
  --bg: #050608;
  --bg-2: #0a0d12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f5f7fa;
  --muted: #9aa4b2;
  --accent: #40f0c2;
  --accent-ink: #03221a;
  --glow: rgba(64, 240, 194, 0.22);
  --blue: rgba(70, 120, 255, 0.22);
  --radius: 22px;
  --wrap: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 8, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 24px rgba(0,0,0,0.5); }
.menu { display: flex; gap: 26px; margin-inline-start: 28px; font-size: 15px; }
.menu a { color: var(--muted); }
.menu a:hover { color: var(--text); text-decoration: none; }
.spacer { flex: 1; }
.store-mini {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--text); color: #0b0f14; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.store-mini:hover { text-decoration: none; background: #fff; }
.store-mini svg { width: 15px; height: 15px; }

/* Language menu (globe) */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); border-color: var(--line-2); }
.lang summary svg { width: 16px; height: 16px; }
.lang[open] summary { color: var(--text); border-color: var(--line-2); }
.langs {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px;
  display: grid; gap: 2px; padding: 8px; border-radius: 16px;
  background: #0f131a; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.langs a, .langs span { display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.langs a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.langs span { color: var(--accent); background: rgba(64,240,194,0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; min-height: min(92vh, 900px); display: flex; align-items: flex-end;
  padding: 120px 0 72px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,6,8,0.55) 0%, rgba(5,6,8,0.15) 30%, rgba(5,6,8,0.55) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5,6,8,0.85) 0%, rgba(5,6,8,0.45) 45%, rgba(5,6,8,0.05) 100%);
}
.hero .wrap { width: 100%; }
.hero-copy { max-width: 700px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
h1 { font-size: clamp(38px, 6.2vw, 76px); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #d5dbe3; margin: 22px 0 30px; max-width: 620px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  background: var(--text); color: #0b0f14; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  transition: transform .15s ease, background .15s ease;
}
.button svg { width: 18px; height: 18px; }
.button:hover { text-decoration: none; background: #fff; transform: translateY(-1px); }
.button.ghost { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.button.ghost:hover { background: rgba(255,255,255,0.14); }
.note { display: block; width: 100%; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 44px; }
h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 14px; text-wrap: balance; }
.intro { color: var(--muted); font-size: 18px; text-wrap: pretty; }
h3 { font-size: 21px; margin-bottom: 8px; }

/* Showcase rows (big image + text) */
.row {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: 24px 0;
}
.row + .row { margin-top: 36px; }
.row.flip .media { order: 2; }
.row .media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03) inset;
  aspect-ratio: 16 / 10;
}
.row .media img { width: 100%; height: 100%; object-fit: cover; }
.row .media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 30%, transparent 75%, rgba(5,6,8,0.5));
}
.row .copy h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.row .copy p { color: var(--muted); font-size: 17.5px; text-wrap: pretty; }
.row .copy .k { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; display: block; }

/* Compact glass cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.card {
  position: relative; padding: 26px 24px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(64,240,194,0.10); color: var(--accent); border: 1px solid rgba(64,240,194,0.25);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Ambient glows behind sections */
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  left: -20vw; top: 10%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, var(--blue), transparent 70%);
  filter: blur(40px);
}
.glow.teal::before { left: auto; right: -25vw; background: radial-gradient(closest-side, var(--glow), transparent 70%); }

/* ---------- Screens (real app UI) ---------- */
.screens { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.shots {
  display: grid; grid-template-columns: 1.6fr 1.6fr 1fr 1fr; grid-auto-rows: auto; gap: 18px; align-items: start;
}
.shots figure { margin: 0; }
.shots .frame {
  border-radius: 20px; overflow: hidden; background: #000;
  border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.shots .frame img { width: 100%; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.shots .wide { grid-column: span 2; }
.shots .phone .frame { border-radius: 28px; }

/* ---------- iPhone ticks ---------- */
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
ul.ticks li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: #d5dbe3; font-size: 16px;
}
ul.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303221a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Facts (spec sheet) ---------- */
table.facts { width: 100%; border-collapse: collapse; font-size: 16px; }
table.facts tr { border-bottom: 1px solid var(--line); }
table.facts th, table.facts td { text-align: start; vertical-align: top; padding: 16px 12px; }
table.facts th { width: 28%; color: var(--text); font-weight: 600; }
table.facts td { color: var(--muted); }
table.facts tr:first-child th, table.facts tr:first-child td { padding-top: 4px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f7fa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 22px; max-width: 760px; font-size: 16.5px; }

/* ---------- Final CTA ---------- */
.final {
  text-align: center; padding: 110px 0;
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(64,240,194,0.16), transparent 70%),
    linear-gradient(180deg, var(--bg), #070a0f);
  border-top: 1px solid var(--line);
}
.final h2 { margin-bottom: 10px; }
.final .intro { margin: 0 auto 30px; max-width: 620px; }
.final .cta { justify-content: center; }
.final img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }

footer { padding: 36px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer p { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .legal { display: block; color: #6b7684; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .row, .row.flip { grid-template-columns: 1fr; }
  .row.flip .media { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots .wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { height: 60px; gap: 10px; }
  .store-mini span { display: none; }
  .store-mini { padding: 9px 11px; }
  .hero { min-height: 0; padding: 90px 0 56px; }
  .hero-bg img { object-position: 62% 50%; }
  section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; margin-top: 36px; }
  ul.ticks { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shots .wide { grid-column: span 2; }
  table.facts th { width: 36%; }
  summary { font-size: 16.5px; }
  .final { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .button { transition: none; } }

/* ---------- RTL ---------- */
[dir="rtl"] body, body[dir="rtl"] { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif; }
[dir="rtl"] .eyebrow, [dir="rtl"] .row .copy .k { letter-spacing: 0; text-transform: none; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
