/* TS Studio — site styles. Tokens follow brand/BRAND.md. Logical properties keep RTL (Arabic) correct. */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("../fonts/BeVietnamPro-400.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("../fonts/BeVietnamPro-500.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("../fonts/BeVietnamPro-600.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("../fonts/BeVietnamPro-700.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url("../fonts/BeVietnamPro-800.ttf") format("truetype"); }

:root {
  --navy: #0B1020;
  --navy-2: #141B3B;
  --surface: #121935;
  --surface-2: #17214A;
  --line: rgba(163, 177, 198, .16);
  --text: #F8FAFC;
  --muted: #A3B1C6;
  --cyan: #22D3EE;
  --violet: #A78BFA;
  --teal: #14E0BE;
  --blue: #3D7BFF;
  --coral: #FF7A59;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  /* "Studio" in the logo: vertical deep-space gradient (starlight → space blue on dark) */
  --studio: linear-gradient(180deg, #F1F4FF 10%, #6573C4 95%);
  --radius: 22px;
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, .6);
  --max: 1180px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Scripts Be Vietnam Pro does not cover: let the system pick a good face */
html:lang(ar) body { font-family: system-ui, "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif; }
html:lang(hi) body { font-family: system-ui, "Noto Sans Devanagari", "Kohinoor Devanagari", sans-serif; }
html:lang(th) body { font-family: system-ui, "Noto Sans Thai", Thonburi, sans-serif; }
html:lang(ja) body { font-family: system-ui, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
html:lang(ko) body { font-family: system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
html:lang(zh-CN) body { font-family: system-ui, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html:lang(zh-TW) body { font-family: system-ui, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html:lang(ja), html:lang(ko), html:lang(zh-CN), html:lang(zh-TW) { line-break: strict; }
html:lang(ar) .kicker, html:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; }
.brand { font-family: "Be Vietnam Pro", system-ui, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--navy); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .55);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: rgba(11, 16, 32, .84); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { font-weight: 600; background: var(--studio); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Language menu */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); background: rgba(255,255,255,.06); }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  width: 230px; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  background: rgba(18, 25, 53, .97); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: pop .18s var(--ease);
}
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; color: #CBD5E1; }
.lang-menu li a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-menu li a[aria-current] { color: var(--cyan); font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* Suggestion bar ("this page exists in your language") */
.lang-suggest { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-inline: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 16px; background: rgba(23, 33, 74, .96); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; animation: pop .3s var(--ease); }
.lang-suggest span { flex: 1; min-width: 160px; }
.lang-suggest button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 14px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .2s ease, border-color .2s ease, box-shadow .25s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #0B1020; box-shadow: 0 8px 24px -12px rgba(34, 211, 238, .6); }
.btn-primary:hover { box-shadow: 0 14px 32px -12px rgba(167, 139, 250, .7); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(163,177,198,.4); background: rgba(255,255,255,.06); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.round { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; transition: background .2s, transform .2s var(--ease), opacity .2s; }
.round:hover { background: rgba(255,255,255,.1); transform: scale(1.06); }
.round:disabled { opacity: .35; cursor: default; transform: none; }
.round svg { width: 20px; height: 20px; }
[dir="rtl"] .round svg, [dir="rtl"] .section-head .btn svg:last-child { transform: scaleX(-1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; isolation: isolate; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

/* Ambient orbs: blurred, screen-blended, drifting on slow independent loops so they meet, merge and part.
   They live under the content (z-index 0) and a scrim on the text side keeps the headline at full contrast. */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(11,16,32,.72) 0%, rgba(11,16,32,.35) 38%, rgba(11,16,32,0) 62%),
    linear-gradient(180deg, rgba(11,16,32,0) 70%, var(--navy) 100%);
}
[dir="rtl"] .hero-bg::after {
  background:
    linear-gradient(to left, rgba(11,16,32,.72) 0%, rgba(11,16,32,.35) 38%, rgba(11,16,32,0) 62%),
    linear-gradient(180deg, rgba(11,16,32,0) 70%, var(--navy) 100%);
}
.blob {
  position: absolute; border-radius: 50%; mix-blend-mode: screen; filter: blur(56px); opacity: .42;
  will-change: transform; animation: var(--path) var(--dur) ease-in-out var(--delay) infinite alternate;
}
.b1 { --path: drift1; --dur: 34s; --delay: -6s;  width: 46vmax; height: 46vmax; max-width: 620px; max-height: 620px; top: -18%; inset-inline-end: -8%; background: radial-gradient(circle at 40% 40%, rgba(34,211,238,.6), rgba(34,211,238,0) 68%); }
.b2 { --path: drift2; --dur: 41s; --delay: -14s; width: 40vmax; height: 40vmax; max-width: 560px; max-height: 560px; top: 18%;  inset-inline-end: 14%; background: radial-gradient(circle at 55% 45%, rgba(139,108,240,.62), rgba(167,139,250,0) 66%); }
.b3 { --path: drift3; --dur: 47s; --delay: -22s; width: 30vmax; height: 30vmax; max-width: 440px; max-height: 440px; bottom: -22%; inset-inline-end: 30%; background: radial-gradient(circle, rgba(20,224,190,.5), rgba(20,224,190,0) 66%); }
.b4 { --path: drift4; --dur: 38s; --delay: -3s;  width: 26vmax; height: 26vmax; max-width: 380px; max-height: 380px; top: 4%;   inset-inline-end: 40%; background: radial-gradient(circle, rgba(61,123,255,.6), rgba(61,123,255,0) 66%); }
.b5 { --path: drift5; --dur: 52s; --delay: -30s; width: 20vmax; height: 20vmax; max-width: 300px; max-height: 300px; bottom: 6%; inset-inline-end: 4%;  background: radial-gradient(circle, rgba(255,122,89,.42), rgba(255,122,89,0) 64%); opacity: .5; }
@keyframes drift1 { 0% { transform: translate(0,0) scale(1); } 35% { transform: translate(-14%, 18%) scale(1.12); } 70% { transform: translate(-30%, 6%) scale(.92); } 100% { transform: translate(-8%, 30%) scale(1.05); } }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1); } 30% { transform: translate(22%, -16%) scale(.9); } 65% { transform: translate(8%, 20%) scale(1.15); } 100% { transform: translate(-18%, -6%) scale(1); } }
@keyframes drift3 { 0% { transform: translate(0,0) scale(1); } 40% { transform: translate(-26%, -30%) scale(1.2); } 75% { transform: translate(18%, -44%) scale(.95); } 100% { transform: translate(30%, -10%) scale(1.1); } }
@keyframes drift4 { 0% { transform: translate(0,0) scale(.9); } 50% { transform: translate(40%, 30%) scale(1.15); } 100% { transform: translate(-10%, 50%) scale(1); } }
@keyframes drift5 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60%, -50%) scale(1.3); } 100% { transform: translate(-20%, -90%) scale(.9); } }
.grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.hero.paused .blob, .hero.paused .tv, .hero.paused .phone { animation-play-state: paused; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #CBD5E1;
  border: 1px solid var(--line); border-radius: 999px; padding-block: 6px; padding-inline: 8px 14px; background: rgba(11,16,32,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dots4 { display: inline-grid; grid-template-columns: 8px 8px; gap: 3px; }
.dots4 i { width: 8px; height: 8px; border-radius: 50%; animation: dot 6s ease-in-out infinite; }
.dots4 i:nth-child(1) { background: var(--teal); } .dots4 i:nth-child(2) { background: var(--blue); animation-delay: .6s; }
.dots4 i:nth-child(3) { background: var(--violet); animation-delay: 1.2s; } .dots4 i:nth-child(4) { background: var(--coral); animation-delay: 1.8s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.35); } }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; letter-spacing: -.025em; margin: 20px 0 18px; font-weight: 800; text-wrap: balance; }
html:lang(ja) h1, html:lang(ko) h1, html:lang(zh-CN) h1, html:lang(zh-TW) h1, html:lang(th) h1, html:lang(hi) h1, html:lang(ar) h1 { letter-spacing: 0; line-height: 1.25; }
.hero p.lead { font-size: 18px; color: #C3CEDD; max-width: 560px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-art .tv {
  position: absolute; inset-block: 4% 34%; inset-inline: 0 22%;
  border-radius: 28px; background: linear-gradient(180deg, rgba(23,33,74,.92), rgba(18,25,53,.92));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; align-content: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: float 9s ease-in-out infinite;
}
.hero-art .tv::after { content: ""; position: absolute; inset-inline: 38%; bottom: -22px; height: 10px; border-radius: 99px; background: var(--grad); }
.hero-art .tile { aspect-ratio: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); transition: transform .45s var(--ease), outline-color .45s ease; outline: 3px solid transparent; outline-offset: 3px; }
.hero-art .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .tile.focus { outline-color: var(--cyan); transform: scale(1.08); }
.hero-art .phone {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 34%; aspect-ratio: 9 / 18;
  border-radius: 30px; background: var(--navy); border: 6px solid #222B52; box-shadow: var(--shadow);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 10px;
  animation: float 9s ease-in-out -4.5s infinite;
}
.hero-art .phone .row { display: flex; gap: 8px; align-items: center; }
.hero-art .phone .row img { width: 34px; height: 34px; border-radius: 10px; }
.hero-art .phone .bar { flex: 1; height: 8px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.18), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 3.2s linear infinite; }
.hero-art .phone .bar.s { flex: .6; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Entrance + scroll reveal */
/* Base state is visible; the animation only plays "from" hidden, so content never stays invisible. */
[data-in] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
.hero-art[data-in] { animation-name: rise-art; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-art { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s ease, box-shadow .35s ease; transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].is-in:hover { transition-delay: 0s; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.tight { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 0; font-weight: 800; text-wrap: balance; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.page-head { padding-top: 64px; }

/* ---------- Highlights carousel ---------- */
.highlights { padding: 24px 0 64px; }
.hl-nav { display: flex; gap: 10px; }
.hl-track {
  --side: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  list-style: none; margin: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--side) 26px; scroll-padding-inline: var(--side);
  scrollbar-width: none; cursor: grab; outline: none; overscroll-behavior-x: contain;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.hl-track.dragging a { pointer-events: none; }
.hl-card {
  --tone: var(--cyan);
  flex: none; width: min(82vw, 330px); scroll-snap-align: start; display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 12%, var(--surface)), var(--surface) 55%);
}
.hl-card.is-in { transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s ease, opacity .8s var(--ease); }
.hl-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tone) 45%, transparent); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--tone) 70%, transparent); }
.tone-teal { --tone: var(--teal); } .tone-blue { --tone: var(--blue); } .tone-cyan { --tone: var(--cyan); } .tone-violet { --tone: var(--violet); } .tone-coral { --tone: var(--coral); }
.hl-visual { height: 176px; padding: 18px 20px; display: grid; place-items: center; position: relative;
  background: radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--tone) 26%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.hl-text { padding: 20px 22px 24px; }
.hl-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); margin-bottom: 12px; }
.hl-ic svg { width: 20px; height: 20px; }
.hl-text h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.hl-text p { margin: 0; color: var(--muted); font-size: 14.5px; }
.hl-big { text-align: center; }
.hl-big b { display: block; font-size: 64px; line-height: 1.05; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--tone) 80%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-big span { color: var(--muted); font-size: 13px; }
.hl-icons { display: grid; grid-template-columns: repeat(4, 44px); gap: 12px; }
.hl-icons img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.7); transition: transform .4s var(--ease); }
.hl-card:hover .hl-icons img { transform: translateY(-3px); }
.hl-card:hover .hl-icons img:nth-child(2n) { transform: translateY(3px); }
.hl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; width: 100%; counter-reset: s; }
.hl-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 12px; background: rgba(11,16,32,.5); border: 1px solid var(--line); }
.hl-steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tone); color: var(--navy); font-size: 12px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(11,16,32,.5); border: 1px solid var(--line); }
.hl-links { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.store-rows { display: grid; gap: 6px; width: 100%; }
.store-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(11,16,32,.5); border: 1px solid var(--line); text-decoration: none; font-size: 13.5px; transition: border-color .2s, background .2s; }
a.store-row:hover { border-color: rgba(163,177,198,.4); background: rgba(11,16,32,.7); }
.store-row img { width: 28px; height: 28px; border-radius: 8px; }
.store-row span { flex: 1; font-weight: 600; }
.store-row em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.store-row svg { width: 15px; height: 15px; flex: none; }
.store-row.soon { color: var(--muted); font-size: 12.5px; }
.store-row.soon span { font-weight: 500; }
.hl-dots { display: flex; gap: 6px; justify-content: center; }
.hl-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(163,177,198,.3); transition: width .35s var(--ease), background .35s; }
.hl-dots i.on { width: 22px; background: var(--cyan); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: color .2s, background .25s, border-color .25s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: var(--navy); background: var(--text); border-color: var(--text); }

/* ---------- App cards ---------- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(180deg, rgba(23, 33, 74, .7), rgba(18, 25, 53, .7));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  overflow: hidden; isolation: isolate;
}
.app-card.is-in { transition: border-color .3s ease, transform .35s var(--ease), opacity .8s var(--ease); }
.app-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent, var(--grad)); opacity: .9; }
.app-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent-solid, var(--cyan)) 16%, transparent), transparent 60%);
}
.app-card:hover { border-color: rgba(163,177,198,.34); transform: translateY(-3px); }
.app-card:hover::after { opacity: 1; }
.app-card[hidden] { display: none; }
.app-card.pop { animation: card-in .5s var(--ease); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.app-top { display: flex; gap: 18px; align-items: center; }
.app-icon { width: 76px; height: 76px; border-radius: 20px; flex: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); transition: transform .4s var(--ease); }
.app-card:hover .app-icon { transform: rotate(-4deg) scale(1.05); }
.app-top h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; font-weight: 700; }
.app-top .tagline { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); }
.badge.live { color: #0B1020; background: var(--teal); border-color: transparent; }
.badge.soon { color: #0B1020; background: var(--coral); border-color: transparent; }
.app-card p.desc { margin: 0; color: #CBD5E1; font-size: 15px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.features li { display: flex; gap: 10px; font-size: 14px; color: #CBD5E1; }
.features li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent-solid, var(--cyan)); }
.companions { display: flex; gap: 8px; flex-wrap: wrap; }
.companion { font-size: 13px; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.companion b { font-weight: 600; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* ---------- Spotlight ---------- */
.spotlight {
  border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(1200px 400px at 100% 0%, rgba(167,139,250,.16), transparent 60%),
              radial-gradient(900px 400px at 0% 100%, rgba(34,211,238,.12), transparent 60%), var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px; align-items: center;
}
.spotlight h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0; text-wrap: balance; }
.spotlight p { color: var(--muted); }
.spotlight .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.eco { display: grid; gap: 14px; }
.eco-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(11,16,32,.55); border: 1px solid var(--line); text-decoration: none; }
.eco-item.is-in { transition: border-color .25s, transform .35s var(--ease), opacity .8s var(--ease); }
.eco-item:hover { border-color: rgba(163,177,198,.4); transform: translateX(4px); }
[dir="rtl"] .eco-item:hover { transform: translateX(-4px); }
.eco-item .glyph { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.eco-item .glyph svg { width: 26px; height: 26px; }
.eco-item b { display: block; font-size: 16px; }
.eco-item span { color: var(--muted); font-size: 14px; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.post-card.is-in { transition: transform .35s var(--ease), border-color .25s ease, opacity .8s var(--ease); }
.post-card:hover { transform: translateY(-4px); border-color: rgba(163,177,198,.34); }
.post-cover { aspect-ratio: 1200 / 630; position: relative; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.045); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.post-body h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.post-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 10px 0 16px; text-wrap: balance; }
.about p { color: #CBD5E1; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.principle { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.principle i { display: block; width: 12px; height: 12px; border-radius: 50%; margin-bottom: 12px; }
.p-free { background: var(--teal); } .p-light { background: var(--blue); } .p-respect { background: var(--violet); } .p-listen { background: var(--coral); }
.principle b { display: block; margin-bottom: 4px; }
.principle span { color: var(--muted); font-size: 14px; }

/* ---------- Community ---------- */
.community { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 64px 24px; background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(167,139,250,.16)), var(--surface); border: 1px solid var(--line); isolation: isolate; }
.community::before { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-start: -160px; top: -260px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.25), transparent 65%); animation: drift2 30s ease-in-out infinite alternate; }
.community::after { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-end: -140px; bottom: -220px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,.25), transparent 65%); animation: drift1 36s ease-in-out infinite alternate; }
.community h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.02em; margin: 0 0 12px; }
.community p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.community .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-tag { max-width: 360px; }
.site-footer h4 { color: var(--text); font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 56px 20px 40px; }
.article .crumbs { font-size: 14px; color: var(--muted); }
.article .crumbs a { text-decoration: none; }
.article .crumbs a:hover { color: var(--text); }
.article h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.12; letter-spacing: -.025em; margin: 16px 0; text-wrap: balance; }
.article .meta { color: var(--muted); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article .cover { margin: 32px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article .cover img { width: 100%; height: auto; }
.article .prose { font-size: 17px; color: #D5DEEA; }
.article .prose h2 { color: var(--text); font-size: 26px; letter-spacing: -.01em; margin: 44px 0 12px; line-height: 1.25; }
.article .prose h3 { color: var(--text); font-size: 20px; margin: 28px 0 8px; }
.article .prose a { color: var(--cyan); }
.article .prose a.btn { text-decoration: none; color: var(--text); }
.article .prose a.btn-primary { color: #0B1020; }
.article .prose ul { padding-inline-start: 22px; }
.article .prose li { margin: 6px 0; }
.article .prose li::marker { color: var(--cyan); }
.article .prose blockquote { margin: 28px 0; padding: 16px 20px; border-inline-start: 3px solid var(--violet); background: var(--surface); border-start-end-radius: 14px; border-end-end-radius: 14px; color: var(--text); font-size: 15.5px; }
.prose figure { margin: 28px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.prose figure.wide { margin-inline: clamp(-80px, -6vw, 0px); }
.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
.prose .shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.prose .shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 16px 40px -24px rgba(0,0,0,.8); transition: transform .4s var(--ease); }
.prose .shots img:hover { transform: translateY(-4px) scale(1.02); }
.callout { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); margin: 28px 0; flex-wrap: wrap; }
.callout img { width: 56px; height: 56px; border-radius: 14px; }
.callout .grow { flex: 1; min-width: 200px; }
.callout b { display: block; color: var(--text); }
.callout span { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 960px) {
  .hero .wrap, .spotlight, .about { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 380px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .spotlight { padding: 32px 24px; }
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; padding: 12px 16px; background: rgba(11,16,32,.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; animation: pop .2s var(--ease); }
  .menu-btn { display: block; }
  .lang-menu { margin-inline-start: auto; }
  .hero-bg::after, [dir="rtl"] .hero-bg::after { background: linear-gradient(180deg, rgba(11,16,32,.5) 0%, rgba(11,16,32,.3) 55%, var(--navy) 100%); }
}
@media (max-width: 720px) {
  .site-header .join { display: none; }
  .lang-menu summary span { display: none; }
  .apps, .posts, .principles { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .hero { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .app-card { padding: 22px 18px; }
  .hl-track { --side: 16px; gap: 14px; }
  .hl-nav { display: none; }
  .prose .shots { grid-template-columns: 1fr 1fr; }
  .prose figure.wide { margin-inline: 0; }
  .blob { filter: blur(40px); opacity: .38; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-in], .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Cosmic grid (after tslaunchertv.web.app: 44 px cells, faint lines, radial fade) ---------- */
:root { --cell: 44px; }
.grid-bg, .stars, .cells { position: absolute; inset: 0; pointer-events: none; }
.grid-bg {
  background-image:
    linear-gradient(rgba(148, 160, 196, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 160, 196, .075) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
/* Tiny stars sitting on grid intersections: two sparse lattices at different periods, slowly breathing */
.stars {
  background-image:
    radial-gradient(circle at 0 0, rgba(241, 244, 255, .7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 0 0, rgba(103, 232, 249, .55) 0 1px, transparent 1.6px);
  background-size: calc(var(--cell) * 3) calc(var(--cell) * 3), calc(var(--cell) * 5) calc(var(--cell) * 5);
  background-position: 0 0, calc(var(--cell) * 2) var(--cell);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  animation: stars-breathe 7s ease-in-out infinite alternate;
}
@keyframes stars-breathe { from { opacity: .45; } to { opacity: 1; } }
/* A few cells light up and fade, like distant signals. Positions are set by site.js on the 44 px lattice. */
.cells i {
  position: absolute; width: var(--cell); height: var(--cell); opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--cyan)) 22%, transparent), transparent 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--cyan)) 30%, transparent);
  animation: cell-glow var(--t, 7s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes cell-glow { 0%, 100% { opacity: 0; } 45%, 60% { opacity: 1; } }
.paused .stars, .paused .cells i { animation-play-state: paused; }

/* Where the grid lives */
.hero .grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 40%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 70% 80% at 60% 40%, #000 30%, transparent 78%); }
.spotlight { position: relative; isolation: isolate; }
.spotlight > .grid-bg, .community > .grid-bg, .community > .stars { z-index: -1; opacity: .7; }
.page-head, .article-top { position: relative; isolation: isolate; }
.page-head > .grid-bg, .article-top > .grid-bg { z-index: -1; height: 520px; bottom: auto; }
.page-head > .stars, .article-top > .stars { z-index: -1; height: 520px; bottom: auto; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .cells i { opacity: .6 !important; } }

/* ---------- Highlights: continuous marquees (after tsiptv-8bdd6.web.app) ---------- */
.marquee {
  display: flex; overflow: hidden; padding: 10px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { flex: none; display: flex; gap: 18px; margin: 0; padding: 0; padding-inline-end: 18px; list-style: none; animation: marquee var(--speed, 60s) linear infinite; }
.app-marquee { --speed: 46s; margin-bottom: 6px; }
.app-marquee .marquee-track { animation-direction: reverse; gap: 14px; padding-inline-end: 14px; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track, .paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-rtl { to { transform: translateX(100%); } }
.hl-marquee .hl-card { width: 320px; }

.app-chip {
  display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap;
  padding: 10px 14px 10px 10px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23,33,74,.75), rgba(18,25,53,.75));
  transition: border-color .25s ease, transform .3s var(--ease), box-shadow .3s ease;
}
[dir="rtl"] .app-chip { padding: 10px 10px 10px 14px; }
.app-chip img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.chip-text { display: grid; line-height: 1.25; }
.chip-text b { font-size: 15px; }
.chip-text small { color: var(--muted); font-size: 12px; }
.app-chip .badge { margin-inline-start: 4px; }
.chip-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.04); transition: color .2s, background .2s, transform .3s var(--ease); }
.chip-go svg { width: 15px; height: 15px; }
.app-chip:hover, .app-chip:focus-visible { border-color: color-mix(in srgb, var(--accent-solid, var(--cyan)) 55%, transparent); transform: translateY(-3px); box-shadow: 0 16px 34px -20px color-mix(in srgb, var(--accent-solid, var(--cyan)) 80%, transparent); }
.app-chip:hover .chip-go { color: var(--navy); background: var(--accent-solid, var(--cyan)); transform: rotate(-12deg); }
/* paused state hint on touch screens */
.marquee.is-paused .app-chip { border-color: rgba(163,177,198,.3); }
@media (max-width: 720px) { .hl-marquee .hl-card { width: 280px; } .marquee { -webkit-mask-image: none; mask-image: none; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
.hl-marquee .hl-card { transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s ease; }

/* ---------- Hero with the app ticker: everything fits in the first screen ---------- */
.hero { padding: clamp(36px, 6vh, 72px) 0 clamp(20px, 3.5vh, 36px); }
.hero h1 { font-size: clamp(34px, min(5vw, 7.4vh), 60px); margin: 16px 0 14px; }
.hero p.lead { margin-bottom: 22px; }
.hero-art { max-width: min(430px, 52vh); }
.hero-apps { position: relative; z-index: 1; margin-top: clamp(22px, 4vh, 44px); margin-bottom: 0; padding-bottom: 8px; }
.highlights { padding-top: 56px; }
@media (max-width: 960px) {
  /* Phone/tablet: copy → app ticker → illustration */
  .hero { display: flex; flex-direction: column; padding-top: 32px; }
  .hero .wrap { display: contents; }
  .hero-copy { order: 1; position: relative; z-index: 1; padding: 0 20px; }
  .hero-apps { order: 2; margin-top: 26px; }
  .hero-art { order: 3; position: relative; z-index: 1; margin: 36px auto 0; width: calc(100% - 40px); max-width: 360px; }
  .hero .eyebrow { font-size: 11.5px; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 46px); }
  .hero p.lead { font-size: 16px; }
  .hero .cta .btn { padding: 11px 16px; }
}
@media (max-width: 720px) { .hero-copy { padding: 0 16px; } .hero-art { width: calc(100% - 32px); } .hero-apps .app-chip small { display: none; } }

/* ---------- Legal pages (privacy, trader) ---------- */
.copyright .legal-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.copyright .legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.copyright .legal-links a:hover { color: var(--text); }
.article.legal h1 { margin-bottom: 8px; }
mark.todo { background: rgba(255, 196, 0, .16); color: #FFD25E; border: 1px dashed rgba(255, 210, 94, .55); border-radius: 6px; padding: 0 6px; font-weight: 600; }
.legal-list { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 0; margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.legal-list dt, .legal-list dd { margin: 0; padding: 12px 16px; border-block-end: 1px solid var(--line); }
.legal-list dt { color: var(--muted); background: var(--surface); }
.legal-list dd { color: var(--text); overflow-wrap: anywhere; }
.legal-list dt:last-of-type, .legal-list dd:last-of-type { border-block-end: 0; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { text-align: start; padding: 12px 16px; border-block-end: 1px solid var(--line); vertical-align: middle; }
.legal-table th { color: var(--muted); font-weight: 600; background: var(--surface); }
.legal-table tr:last-child td { border-block-end: 0; }
.legal-table td:first-child { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; white-space: nowrap; }
.legal-table td img { border-radius: 8px; }
.legal-table .muted { color: var(--muted); }
.legal-updated { color: var(--muted); font-size: 14px; margin-top: 36px; }
@media (max-width: 560px) {
  .legal-list { grid-template-columns: 1fr; }
  .legal-list dt { border-block-end: 0; padding-block-end: 4px; }
  .legal-list dd { padding-block-start: 0; }
}

/* ---------- Featured (key) apps ---------- */
.badge.featured { color: #0B1020; background: var(--grad); border-color: transparent; }
.app-card.featured { border-color: color-mix(in srgb, var(--accent-solid, var(--cyan)) 35%, var(--line)); }
.app-top h3 a { color: inherit; text-decoration: none; }
.app-top h3 a:hover { color: var(--accent-solid, var(--cyan)); }

/* ---------- App page (/<app>) ---------- */
.app-page .crumbs { font-size: 14px; color: var(--muted); }
.app-page .crumbs a { text-decoration: none; }
.app-page .crumbs a:hover { color: var(--text); }
.app-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 56px 32px; }
.app-hero-copy { display: grid; gap: 18px; justify-items: start; }
.app-hero-title { display: flex; gap: 20px; align-items: center; }
.app-hero-title .app-icon { width: 104px; height: 104px; border-radius: 26px; }
.app-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 800; }
.app-hero .tagline { margin: 6px 0 0; color: var(--muted); font-size: 18px; }
.app-hero .badges { margin: 0; }
.app-hero p.lead { margin: 0; font-size: 17px; color: #C3CEDD; max-width: 600px; }
.app-hero .app-actions { margin: 4px 0 0; }
.apple-soon { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--muted); font-size: 14px; }
.apple-soon svg { width: 16px; height: 16px; flex: none; }
.app-hero-art { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow), 0 30px 80px -40px color-mix(in srgb, var(--accent-solid, var(--cyan)) 70%, transparent); }
.app-hero-art::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent, var(--grad)); z-index: 1; }
.app-hero-art img { display: block; width: 100%; height: auto; }

.app-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.app-detail-main { display: grid; gap: 18px; justify-items: start; }
.app-detail-main h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.2; margin: 0; font-weight: 800; }
.app-detail-main .features { gap: 12px; }
.app-detail-main .features li { font-size: 16px; }
.app-facts { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: linear-gradient(180deg, rgba(23, 33, 74, .7), rgba(18, 25, 53, .7)); }
.app-facts h3 { margin: 0 0 8px; font-size: 18px; }
.app-facts dl { margin: 0; }
.app-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-block-end: 1px solid var(--line); font-size: 15px; }
.app-facts dl > div:last-child { border-block-end: 0; }
.app-facts dt { color: var(--muted); }
.app-facts dd { margin: 0; text-align: end; }
.app-facts a { color: var(--cyan); }
.app-facts .muted { color: var(--muted); }

.more-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.more-apps .app-chip { white-space: normal; }
.more-apps .chip-text { flex: 1; min-width: 0; }
.more-apps .chip-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 960px) {
  .app-hero, .app-detail { grid-template-columns: 1fr; }
  .app-hero { padding-block: 40px 16px; gap: 32px; }
}
@media (max-width: 560px) {
  .app-hero-title { gap: 14px; }
  .app-hero-title .app-icon { width: 76px; height: 76px; border-radius: 20px; }
}

/* ---------- Closed testing ---------- */
.badge.testing { color: #0B1020; background: var(--violet); border-color: transparent; }
.test-box { border: 1px solid var(--line); border-radius: 28px; padding: 36px; background: radial-gradient(900px 300px at 100% 0%, rgba(167,139,250,.14), transparent 60%), var(--surface); }
.test-box h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.2; margin: 8px 0 0; font-weight: 800; }
.test-box > h2 { margin: 0 0 18px; }
.test-box .section-head { margin-bottom: 24px; }
.test-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.test-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.test-steps h3 { margin: 2px 0 6px; font-size: 17px; }
.test-steps p { margin: 0; color: #C3CEDD; font-size: 14.5px; }
.step-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #0B1020; background: var(--grad); }
.step-btn { margin-top: 14px; }
.page-head .test-steps { margin-top: 8px; }
.test-apps { display: grid; gap: 14px; }
.test-app { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 74, .7), rgba(18, 25, 53, .7)); scroll-margin-top: 90px; }
.test-app:target { border-color: var(--accent-solid, var(--cyan)); box-shadow: 0 0 0 1px var(--accent-solid, var(--cyan)); }
.test-app .app-icon { width: 64px; height: 64px; border-radius: 16px; }
.test-app h3 { margin: 0; font-size: 19px; }
.test-app h3 a { color: inherit; text-decoration: none; }
.test-app p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.test-app .badges { margin-top: 6px; }
.test-app .app-actions { margin: 0; justify-content: flex-end; }
#testing { scroll-margin-top: 80px; }
.store-row.soon[href] { text-decoration: none; }
.not-found .cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .test-steps { grid-template-columns: 1fr; }
  .test-app { grid-template-columns: auto 1fr; }
  .test-app .app-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 720px) { .test-box { padding: 24px 18px; } }
