:root {
  /* Takeback palette — matches the iOS app (AppColors.swift) + clickstan.com */
  --bg: #0a0a0a;
  --bg-deep: #000000;
  --card: #141414;
  --border: #2a2a2a;
  --border-strong: #3d3d3d;

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.5);
  --text-4: rgba(255, 255, 255, 0.32);

  --accent: #00ea8f;
  --accent-2: #02c577;
  --accent-glow: rgba(0, 234, 143, 0.35);
  --accent-soft: rgba(0, 234, 143, 0.12);

  --maxw: 760px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  padding: clamp(20px, 4vw, 40px);
  /* respect notches */
  padding-top: max(clamp(20px, 4vw, 40px), env(safe-area-inset-top));
  padding-bottom: max(clamp(20px, 4vw, 40px), env(safe-area-inset-bottom));
}

/* --- Ambient layers --- */

/* Soft neon-green glow bloom behind the hero */
.glow {
  position: fixed;
  top: 38%;
  left: 50%;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 234, 143, 0.08) 38%, transparent 68%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

/* Fine film grain for a cinematic finish */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* subtle vignette so edges fall into black */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* --- Layout regions sit above ambient layers --- */
.nav, .hero, .footer { position: relative; z-index: 3; }

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.wordmark .mark { display: block; border-radius: 8px; }

.nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
}
.nav-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

/* --- Hero --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 0;
}

.eyebrow {
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
}
.headline .accent {
  color: var(--accent);
  text-shadow: 0 0 36px var(--accent-glow);
}

.sub {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 30ch;
}

/* --- Status / coming soon --- */
.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.badge .apple { color: var(--text); flex: none; margin-top: -2px; }

.status-note {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-4);
}

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--text-4);
}
.footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer a:hover { color: var(--accent); }

/* --- Entrance animation --- */
.eyebrow, .headline, .sub, .status { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.eyebrow { animation-delay: 0.05s; }
.headline { animation-delay: 0.16s; }
.sub { animation-delay: 0.30s; }
.status { animation-delay: 0.44s; }

.nav, .footer { opacity: 0; animation: fadeIn 1s ease forwards; animation-delay: 0.6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.45; box-shadow: 0 0 4px var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, .glow, .nav-tag .dot { animation: none !important; }
  .eyebrow, .headline, .sub, .status, .nav, .footer { opacity: 1; }
}

@media (max-width: 520px) {
  .footer { flex-direction: column-reverse; gap: 6px; text-align: center; }
  .sub { max-width: 34ch; }
}
