/* Aura Star — Coming Soon (premium redesign) */
:root {
  --bg: #05080f;
  --bg2: #0b1327;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.16);
  --gold: #ffb84d;
  --gold-2: #ffd08a;
  --text: #f4f6fb;
  --muted: #aeb6c6;
  --muted-2: #7f8aa0;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Sora", var(--font);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 40px);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(5, 8, 15, 0.6), rgba(5, 8, 15, 0));
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display);
  font-weight: 700; letter-spacing: 0.2px; font-size: 18px; }
.brand img { width: 24px; height: 24px; filter: drop-shadow(0 0 8px rgba(255, 184, 77, 0.6)); }
.navcta {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border-2); color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.navcta:hover { background: var(--panel-2); border-color: var(--gold); transform: translateY(-1px); }

/* ---- Language switch ---------------------------------------------------- */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--panel);
}
.lang-btn {
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: 0.4px; line-height: 1;
  padding: 6px 12px; border-radius: 999px;
  border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: #1a1203;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  box-shadow: 0 2px 10px rgba(255, 184, 77, 0.3);
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* black sky + stars + shooting stars (behind everything).
   width/height 100% are required — a <canvas> is a replaced element, so
   inset:0 alone keeps its default 300x150 size instead of filling the hero. */
#stars { position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; }
/* satellite globe, nudged to the right so it clears the headline on desktop */
#globe { position: absolute; top: 0; bottom: 0; left: 24%; right: -7%; z-index: 1;
  cursor: grab; }
#globe:active { cursor: grabbing; }
#globe canvas { outline: none; }
/* White-blue atmosphere glow hugging the globe's limb. The globe's on-screen
   radius is fixed by its zoom (~200px), centred at ~65.5% / 50% of the hero,
   so a fixed-size ring lines up with the Earth's edge. Sits just above the
   globe so the halo is always visible around the rim. */
/* faint ambient glow behind the globe for depth; the precise atmosphere rim is
   drawn on a canvas in globe.js so it always hugs the Earth's real edge. */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(82vmin, 780px); height: min(82vmin, 780px);
  left: 65.5%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(90, 150, 255, 0.10) 0%, rgba(90, 150, 255, 0) 60%);
}
/* readability scrim: dark on the left, clear on the right */
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(130% 90% at 10% 50%, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.5) 32%, rgba(5, 8, 15, 0) 60%),
    linear-gradient(to top, rgba(5, 8, 15, 0.85) 0%, rgba(5, 8, 15, 0) 28%);
}
.hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 120px 24px 90px;
  /* let drags pass through the empty copy area to the globe behind it */
  pointer-events: none;
}
.hero-inner > * { max-width: 620px; }
/* re-enable interaction only for the things people actually click */
.hero-inner .signup, .hero-inner .badge { pointer-events: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--gold-2);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 184, 77, 0.35);
  background: rgba(255, 184, 77, 0.08);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

h1.display {
  font-family: var(--display);
  font-weight: 800; font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02; letter-spacing: -1.5px;
  margin: 22px 0 12px;
}
h1.display em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: 0;
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, #ffe9c6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(255, 184, 77, 0.25);
  padding-right: 0.06em;
}
/* Uses Inter (full Vietnamese support) in italic — Instrument Serif lacks the
   Vietnamese diacritics, so the serif is kept only for the English headline. */
.tagline-vi { font-family: var(--font); font-style: italic; font-weight: 500;
  font-size: clamp(17px, 2.2vw, 22px); letter-spacing: 0.2px;
  color: var(--gold-2); opacity: 0.92; margin: 0 0 20px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin: 0 0 30px; }

.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.signup input {
  flex: 1 1 220px; min-width: 0;
  padding: 14px 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--border-2); color: var(--text);
  font-family: var(--font); font-size: 15px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.signup input::placeholder { color: var(--muted-2); }
.signup input:focus { border-color: var(--gold); background: var(--panel-2); }
.btn {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 14px; border: 0; cursor: pointer;
  color: #1a1203; white-space: nowrap;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 26px rgba(255, 184, 77, 0.3);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 184, 77, 0.42); }
.btn:disabled { filter: saturate(0.6) brightness(0.9); cursor: default; transform: none; }
.note { color: var(--muted-2); font-size: 13px; margin: 14px 0 0; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--border-2); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: var(--gold);
  animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section.alt { background:
  radial-gradient(120% 80% at 50% 0%, rgba(11, 19, 39, 0.9), rgba(5, 8, 15, 0)); }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.section h2 { font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.8px; line-height: 1.08; margin: 0 0 14px; }
.section .sub { color: var(--muted); max-width: 640px; margin: 0 0 48px; font-size: 17px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 26px; transition: transform 0.22s, border-color 0.22s, background 0.22s;
  position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -20%, rgba(255, 184, 77, 0.10), transparent 60%);
  opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 184, 77, 0.4); background: var(--panel-2); }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
  background: rgba(255, 184, 77, 0.12); border: 1px solid rgba(255, 184, 77, 0.28);
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6; }

/* Screenshots */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.phone { margin: 0; text-align: center; }
.phone img {
  width: 100%; border-radius: 26px;
  border: 1px solid var(--border-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.25s;
}
.phone:hover img { transform: translateY(-6px); }
.phone figcaption { margin-top: 16px; color: var(--muted); font-size: 14px;
  font-family: var(--display); font-weight: 500; }

/* CTA */
.cta {
  text-align: center; max-width: 720px; margin: 0 auto;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 184, 77, 0.10), transparent 60%),
    var(--panel);
  border: 1px solid var(--border-2); border-radius: 28px;
  padding: clamp(40px, 7vw, 70px) 30px;
}
.cta img { width: 56px; margin: 0 auto 18px; filter: drop-shadow(0 0 18px rgba(255, 184, 77, 0.6)); }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -1px; margin: 0 0 12px; }
.cta p { color: var(--muted); max-width: 440px; margin: 0 auto 26px; }
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-badge { font-family: var(--display); font-size: 14px; color: var(--muted);
  padding: 11px 20px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--panel); }
.store-badge strong { color: var(--text); font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot .brand { font-size: 16px; }
.foot .links { display: flex; gap: 22px; }
.foot .links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.foot .links a:hover { color: var(--gold); }
.copyright { color: var(--muted-2); font-size: 13px; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
  #globe { left: 0; right: 0; }
  .hero::before { left: 50%; top: 50%; }
  .hero-scrim { background:
    linear-gradient(to top, rgba(5,8,15,0.95) 0%, rgba(5,8,15,0.55) 42%, rgba(5,8,15,0.2) 100%); }
  .hero-inner { padding: 130px 24px 80px; }
  .hero-inner > * { max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr 1fr; gap: 14px; }
  .foot { justify-content: center; text-align: center; }
  .navcta { display: none; }
  .nav-actions { gap: 0; }
  .lang-btn { padding: 6px 11px; }
}
@media (max-width: 360px) {
  .brand span { font-size: 16px; }
  .lang-btn { padding: 5px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge .dot, .scroll-cue span { animation: none; }
  .card, .phone img, .btn, .navcta { transition: none; }
}

/* ---- Legal pages -------------------------------------------------------- */
.legal { max-width: 820px; padding-top: 120px; padding-bottom: 80px; }
.legal h1 { font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 6vw, 54px); letter-spacing: -1px; margin: 6px 0 8px; }
.legal .updated { color: var(--muted-2); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.3px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 22px; margin: 10px 0 16px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--gold-2); border-bottom: 1px solid rgba(255, 208, 138, 0.35); }
.legal a:hover { color: var(--gold); }
.legal-nav { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--display); font-size: 15px; }
.legal-nav a { border-bottom: 0; }

/* ---- Account-deletion request form ------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.delreq { margin: 20px 0 8px; max-width: 520px;
  display: flex; flex-direction: column; gap: 12px; }
.delreq input, .delreq textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; outline: none; resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease; }
.delreq input::placeholder, .delreq textarea::placeholder { color: var(--muted-2); }
.delreq input:focus, .delreq textarea:focus {
  border-color: rgba(255, 184, 77, 0.55); background: rgba(255, 255, 255, 0.06); }
.delreq button {
  align-self: flex-start; font-family: var(--display); font-weight: 600;
  font-size: 15px; color: #1a1206; cursor: pointer; border: 0;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  transition: opacity 0.2s ease, transform 0.15s ease; }
.delreq button:hover { transform: translateY(-1px); }
.delreq button:disabled { opacity: 0.55; cursor: default; transform: none; }
.delreq-msg { min-height: 1.2em; margin: 2px 0 0; font-size: 15px; line-height: 1.6; }
.delreq-msg.ok { color: var(--gold-2); }
.delreq-msg.err { color: #ff9b8a; }

/* ---- Scroll-reveal (3D on scroll) -------------------------------------- */
.cards, .screens { perspective: 1200px; }
.js .reveal {
  opacity: 0; transform: translateY(42px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* cards tilt up from a 3D plane */
.js .cards .reveal { transform: translateY(48px) rotateX(14deg); transform-origin: 50% 0; }
.cards .reveal.in { transform: none; }
/* phones rise with a parallax offset driven by scroll.js (--py) */
.js .screens .reveal { transform: translateY(52px) rotateX(10deg) scale(0.97); }
.screens .reveal.in { transform: translateY(var(--py, 0px)); }
/* stagger within a row */
.cards .reveal:nth-child(2), .screens .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3), .screens .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards .reveal:nth-child(4), .screens .reveal:nth-child(4) { transition-delay: 0.24s; }
.cards .reveal:nth-child(5) { transition-delay: 0.32s; }
.cards .reveal:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .cards .reveal, .screens .reveal { opacity: 1; transform: none; transition: none; }
}
