:root {
  --bg: #0b0b12;
  --bg-soft: #12121d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ececf3;
  --muted: #9a9ab0;
  --grad-a: #7c3aed;
  --grad-b: #2dd4bf;
  --grad-c: #f472b6;
  --accent: #a78bfa;
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: 'Space Grotesk', sans-serif; }

a { color: inherit; text-decoration: none; }

.grad-text {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 60%, var(--grad-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 460px; height: 460px; background: var(--grad-a); top: -120px; left: -80px; }
.orb-2 { width: 400px; height: 400px; background: var(--grad-b); top: 30%; right: -120px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: var(--grad-c); bottom: -140px; left: 30%; animation-delay: -12s; opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}
.brand-name { font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.nav-cta:hover { background: var(--surface-hover); }

/* ---------- Layout ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 480px; margin: 22px 0 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-c));
  box-shadow: 0 10px 30px -10px var(--grad-a);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--grad-a); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); }

.hero-badges { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges li { color: var(--muted); font-size: 0.9rem; }

/* ---------- Phone mockup ---------- */
.hero-visual { display: grid; place-items: center; }
.phone {
  position: relative;
  width: 260px;
  height: 530px;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, #1b1b28, #0e0e17);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(124, 58, 237, 0.5), inset 0 0 0 2px rgba(255,255,255,0.03);
  animation: float 8s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #05050a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: radial-gradient(120% 80% at 50% 0%, #1a1030, #0a0a12);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.timer-app { text-align: center; width: 100%; padding: 40px 20px; }
.timer-round { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.2em; margin-bottom: 22px; }
.timer-ring { position: relative; width: 170px; height: 170px; margin: 0 auto; }
.timer-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 8; }
.ring-progress {
  fill: none;
  stroke: url(#g) var(--grad-b);
  stroke: var(--grad-b);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 90;
  filter: drop-shadow(0 0 6px var(--grad-b));
  animation: countdown 4s linear infinite;
}
@keyframes countdown {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 300; }
}
.timer-value {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 2px;
}
.timer-count { font-family: 'Space Grotesk'; font-size: 3rem; font-weight: 700; line-height: 1; }
.timer-label { color: var(--grad-b); font-size: 0.8rem; letter-spacing: 0.25em; }
.timer-bars { display: flex; justify-content: center; gap: 6px; margin: 28px 0 18px; }
.timer-bars span {
  width: 8px; height: 20px; border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.timer-bars span:nth-child(-n+3) { background: var(--grad-b); }
.timer-name { color: var(--muted); font-size: 0.85rem; }

/* ---------- App cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.app-card {
  display: flex;
  gap: 20px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(167,139,250,0.4); background: var(--surface-hover); }
.app-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 1.9rem;
}
.icon-tabata { background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(45,212,191,0.25)); }
.icon-koreo { background: linear-gradient(135deg, rgba(45,212,191,0.24), rgba(244,114,182,0.20)); }
.icon-trains { background: linear-gradient(135deg, rgba(244,114,182,0.22), rgba(124,58,237,0.22)); }
.app-body { flex: 1; }
.app-body h3 { font-size: 1.4rem; }
.app-tag { color: var(--accent); font-size: 0.85rem; margin-bottom: 12px; }
.app-desc { color: var(--muted); font-size: 0.98rem; }
.app-features { list-style: none; margin: 16px 0; display: grid; gap: 7px; }
.app-features li { color: var(--muted); font-size: 0.92rem; padding-left: 22px; position: relative; }
.app-features li::before { content: "✓"; position: absolute; left: 0; color: var(--grad-b); font-weight: 700; }
.app-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.store-btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  background: linear-gradient(120deg, rgba(124,58,237,0.9), rgba(244,114,182,0.9));
  color: #fff;
  transition: transform 0.2s, filter 0.2s;
}
.store-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.store-btn.ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.store-btn.ghost:hover { background: var(--surface-hover); }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(45,212,191,0.14);
  color: var(--grad-b);
  margin-bottom: 10px;
}

/* ---------- Values ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.value {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}
.value:hover { transform: translateY(-4px); border-color: rgba(167,139,250,0.35); }
.value-ico { font-size: 1.8rem; margin-bottom: 14px; }
.value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; place-items: center; }
.contact-card {
  text-align: center;
  max-width: 620px;
  width: 100%;
  padding: 56px 40px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(124,58,237,0.14), rgba(45,212,191,0.08));
  border: 1px solid var(--border);
}
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.contact-card p { color: var(--muted); margin: 14px 0 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.85rem; width: 100%; text-align: center; padding-top: 8px; }

/* ---------- Legal / privacy page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 12px 0 12px 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); margin-bottom: 30px; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Visible by default; only hidden once JS confirms it can reveal them again. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .lede, .hero-actions, .hero-badges { margin-left: auto; margin-right: auto; justify-content: center; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .phone { width: 220px; height: 450px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
