/* ==========================================================================
   Nivra — premium dark landing page
   Inspired by Linear, Raycast, Superhuman, Moonshot.
   Single-file stylesheet. No build step. No frameworks.
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Core palette — charcoal with subtle green undertone */
  --bg: #030604;
  --bg-surface: #0A120D;
  --bg-elevated: #111D16;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(0, 230, 118, 0.25);

  /* Brand — vibrant green with mint highlight */
  --accent: #00E676;
  --accent-bright: #69F0AE;
  --accent-glow: rgba(0, 230, 118, 0.35);

  /* Text hierarchy — cool grays, not warm */
  --text: #FFFFFF;
  --text-2: #B4BCC3;
  --text-3: #6B7280;
  --text-dim: #4B5563;

  /* Spacing system (8px base) */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img, svg { display: block; max-width: 100%; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ==========================================================================
   BACKGROUND LAYERS
   Layered for depth — base + drifting aurora blobs + grid + film grain
   ========================================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-base {
  z-index: -4;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, #0A1A12 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, #08130D 0%, transparent 60%),
    linear-gradient(180deg, #030604 0%, #020402 100%);
}

.bg-aurora {
  z-index: -3;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  will-change: transform;
  animation: drift 22s ease-in-out infinite;
}

.blob-1 {
  top: -30%;
  left: 15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.25) 0%, transparent 60%);
}

.blob-2 {
  top: 20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 255, 178, 0.16) 0%, transparent 60%);
  animation-delay: -7s;
}

.blob-3 {
  bottom: -20%;
  left: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(105, 240, 174, 0.18) 0%, transparent 60%);
  animation-delay: -14s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.08); }
  66%      { transform: translate(-40px, 50px) scale(0.95); }
}

.bg-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black, transparent 90%);
}

.bg-noise {
  z-index: -1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   NAVIGATION
   Sticky glass blur bar
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(3, 6, 4, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.6px;
  color: var(--text);
}

.logo-mark {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00E676 0%, #00FFB2 100%);
  box-shadow:
    0 0 22px rgba(0, 230, 118, 0.55),
    inset 0 -4px 8px rgba(0, 0, 0, 0.25);
}

.logo-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 7px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover { color: var(--text); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-sm { padding: 10px 18px; font-size: 13px; }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #F0F0F0;
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-store:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(0, 230, 118, 0.12);
}

.btn-store svg { flex-shrink: 0; }

.btn-store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.btn-store-label small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.btn-store-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  position: relative;
}

.hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.25); }
}

.hero-title {
  font-size: clamp(52px, 10vw, 112px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 0.95;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-gradient {
  background: linear-gradient(135deg, #00E676 0%, #00FFB2 45%, #69F0AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 40px rgba(0, 230, 118, 0.3));
}

.hero-sub {
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.55;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}

.avatars { display: flex; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
}

.avatar:first-child { margin-left: 0; }
.avatar-1 { background: linear-gradient(135deg, #FFD3A5, #FD6585); }
.avatar-2 { background: linear-gradient(135deg, #A1C4FD, #C2E9FB); }
.avatar-3 { background: linear-gradient(135deg, #84FAB0, #8FD3F4); }
.avatar-4 { background: linear-gradient(135deg, #FFA17F, #00223E); }

/* ==========================================================================
   PHONE SHOWCASE
   ========================================================================== */

.showcase {
  position: relative;
  margin: 80px auto 0;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
  min-height: 720px;
}

.showcase-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  max-width: 110%;
  background:
    radial-gradient(circle, rgba(0, 230, 118, 0.28) 0%, transparent 45%),
    radial-gradient(circle, rgba(0, 255, 178, 0.12) 30%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.float {
  position: absolute;
  font-size: 88px;
  filter:
    drop-shadow(0 30px 60px rgba(0, 230, 118, 0.45))
    drop-shadow(0 0 50px rgba(0, 255, 178, 0.3));
  animation: floatObj 7s ease-in-out infinite;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.float-1 {
  left: 6%;
  top: 12%;
  transform: rotate(-12deg);
  animation-delay: 0s;
}

.float-2 {
  right: 6%;
  top: 46%;
  font-size: 96px;
  transform: rotate(14deg);
  animation-delay: -3.5s;
}

.float-3 {
  left: 10%;
  bottom: 18%;
  font-size: 66px;
  transform: rotate(-8deg);
  animation-delay: -5s;
}

@keyframes floatObj {
  0%, 100% { transform: translateY(0) rotate(var(--r, -5deg)); }
  50%      { transform: translateY(-24px) rotate(var(--r2, 5deg)); }
}

/* Phone */
.phone {
  position: relative;
  z-index: 2;
  width: 340px;
  filter:
    drop-shadow(0 80px 140px rgba(0, 0, 0, 0.8))
    drop-shadow(0 20px 40px rgba(0, 230, 118, 0.15));
}

.phone-frame {
  position: relative;
  background: linear-gradient(180deg, #1C1C1E 0%, #050505 100%);
  border-radius: 56px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
}

.phone-screen {
  position: relative;
  background: #FFFFFF;
  border-radius: 46px;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  padding: 58px 18px 22px;
}

/* Scan beam animation */
.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 230, 118, 0.08) 25%,
    rgba(0, 230, 118, 0.35) 50%,
    rgba(0, 230, 118, 0.08) 75%,
    transparent 100%);
  mix-blend-mode: screen;
  animation: scan 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes scan {
  0%, 100% { transform: translateY(-120px); opacity: 0; }
  20%      { opacity: 1; }
  80%      { opacity: 1; }
  100%     { transform: translateY(720px); opacity: 0; }
}

/* ==========================================================================
   APP MOCKUP (inside phone screen)
   ========================================================================== */

.app { position: relative; z-index: 3; }

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-overline {
  font-size: 9px;
  font-weight: 800;
  color: #8E8E93;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}

.app-title {
  font-size: 20px;
  font-weight: 800;
  color: #0A0A0B;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.app-sub {
  font-size: 11px;
  color: #6E6E73;
  margin-top: 3px;
  font-weight: 500;
}

.app-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #F7F7F8;
  border: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

/* Score card */
.app-score-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F7F7F8;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}

.app-ring {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.app-ring svg { position: absolute; inset: 0; }

.app-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-score {
  font-size: 26px;
  font-weight: 800;
  color: #00C853;
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.app-score-slash {
  font-size: 9px;
  color: #8E8E93;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.app-grade-wrap { flex: 1; min-width: 0; }

.grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #E7F8EC;
  color: #00A046;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 9px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.grade-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00C853;
}

.app-grade-desc {
  font-size: 10px;
  color: #6E6E73;
  line-height: 1.35;
  font-weight: 500;
}

/* Nutrition strip */
.app-nutrition {
  display: flex;
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 14px;
  padding: 11px 0;
  margin-bottom: 10px;
}

.nutri { flex: 1; text-align: center; }

.nutri-val {
  font-size: 13px;
  font-weight: 800;
  color: #0A0A0B;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.nutri-lbl {
  font-size: 8px;
  font-weight: 800;
  color: #8E8E93;
  letter-spacing: 0.7px;
  margin-top: 2px;
}

.nutri-sep { width: 1px; background: #F0F0F0; margin: 2px 0; }

/* Ingredients list */
.app-ingredients {
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 14px;
  overflow: hidden;
}

.app-ingredients-hdr {
  font-size: 8px;
  font-weight: 800;
  color: #8E8E93;
  letter-spacing: 1px;
  padding: 10px 12px 6px;
}

.ingred {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-top: 0.5px solid #F0F0F0;
}

.ingred-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.ingred-dot.good { background: #00C853; }
.ingred-dot.warn { background: #FF9500; }
.ingred-dot.bad  { background: #FF3B30; }

.ingred-name {
  flex: 1;
  font-size: 11px;
  color: #0A0A0B;
  font-weight: 600;
}

.ingred-tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2.5px 6px;
  border-radius: 4px;
}

.tag-good { background: #E7F8EC; color: #00A046; }
.tag-warn { background: #FFF4E6; color: #CC7700; }
.tag-bad  { background: #FFEBEA; color: #CC2F27; }

/* ==========================================================================
   SECTIONS — features, how it works, final CTA
   ========================================================================== */

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 0.98;
  color: var(--text);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ----- Features ----- */

.features {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 80px 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
}

.feature-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center top, rgba(0, 230, 118, 0.15) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover .feature-glow { opacity: 1; }

.feature-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.14) 0%, rgba(0, 230, 118, 0.04) 100%);
  border: 1px solid rgba(0, 230, 118, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  z-index: 1;
  color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  position: relative;
  z-index: 1;
}

/* ----- How it works ----- */

.how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 0;
}

.step { position: relative; }

.step-num {
  font-size: 80px;
  font-weight: 800;
  line-height: 0.9;
  background: linear-gradient(135deg, #00E676 0%, #00FFB2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -3.5px;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 30px rgba(0, 230, 118, 0.3));
}

.step h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text);
}

.step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ----- Final CTA ----- */

.cta-final {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 120px;
}

.cta-card {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 230, 118, 0.02) 100%);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-card > *:not(.cta-card-glow) { position: relative; z-index: 1; }

.cta-card h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 0.98;
  color: var(--text);
  margin-bottom: 20px;
}

.cta-card p {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 80px 40px 32px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-tag {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 12px;
  max-width: 280px;
  line-height: 1.5;
}

.footer-copy {
  color: var(--text-3);
  font-size: 12px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.1px;
}

.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn) { display: none; }

  .hero { padding: 56px 20px 20px; }
  .hero-title { font-size: 56px; letter-spacing: -2.8px; }
  .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .hero-sub br { display: none; }

  .showcase { min-height: 620px; margin-top: 56px; padding: 20px 0 60px; }
  .phone { width: 280px; }
  .float { font-size: 64px; }
  .float-2 { font-size: 72px; }
  .float-3 { font-size: 52px; }

  .features, .how, .cta-final { padding: 80px 20px; }
  .section-head { margin-bottom: 56px; }
  .section-title { font-size: 42px; letter-spacing: -1.8px; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 36px 28px; }
  .feature-card:last-child { grid-column: auto; }

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step-num { font-size: 64px; }

  .cta-card { padding: 60px 28px; }
  .cta-card h2 { font-size: 40px; letter-spacing: -1.8px; }

  footer { padding: 60px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 44px; letter-spacing: -2px; line-height: 1; }
  .hero-pill { font-size: 11px; padding: 7px 12px; }

  .phone { width: 240px; }
  .phone-notch { width: 88px; height: 22px; top: 13px; }
  .phone-screen { padding: 44px 14px 18px; border-radius: 38px; }
  .phone-frame { border-radius: 46px; }

  .float-1 { left: 2%; top: 8%; }
  .float-2 { right: 2%; top: 50%; }
  .float-3 { display: none; }

  .btn-store { padding: 12px 18px; font-size: 14px; }
  .btn-store-label small { font-size: 9px; }

  .cta-card { padding: 48px 20px; border-radius: 24px; }
  .cta-card h2 { font-size: 32px; letter-spacing: -1.5px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   LEGAL DOCUMENT PAGES (privacy / terms / support / delete-account)
   Shared typographic system — long-form reading on dark premium background
   ========================================================================== */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 28px 140px;
  position: relative;
  z-index: 2;
}

.doc-header {
  margin-bottom: 64px;
  text-align: center;
}

.doc-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.doc-header h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--text);
}

.doc-updated {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.doc-intro {
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.06) 0%, rgba(0, 230, 118, 0.015) 100%);
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 48px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.doc-intro strong { color: var(--text); }

.doc h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--text);
  margin: 56px 0 18px;
  padding-top: 8px;
}

.doc h2:first-of-type { margin-top: 0; }

.doc h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  margin: 32px 0 12px;
}

.doc p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 18px;
}

.doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.doc li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.doc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

.doc li strong { color: var(--text); }

.doc a {
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 230, 118, 0.3);
  transition: border-color 0.2s ease;
}

.doc a:hover { border-color: var(--accent); }

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.doc-back:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Highlighted callout for important clauses */
.doc-callout {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.doc-callout strong { color: var(--text); }

/* Contact card */
.doc-contact {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-top: 64px;
  text-align: center;
}

.doc-contact h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.doc-contact p {
  margin-bottom: 16px;
  font-size: 14px;
}

.doc-contact a.btn {
  display: inline-flex;
}

/* Support-specific cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0 48px;
}

.support-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.support-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.support-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}

.support-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}

.support-card p {
  font-size: 13px;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .doc { padding: 48px 20px 100px; }
  .doc-header { margin-bottom: 44px; }
  .doc h2 { font-size: 22px; margin-top: 44px; }
  .doc h3 { font-size: 16px; }
  .doc-intro { padding: 20px; font-size: 14px; }
  .doc-contact { padding: 28px 20px; margin-top: 48px; }
  .support-grid { grid-template-columns: 1fr; gap: 12px; }
}
