/* ============================================================
   TERVIA — Landing Page Styles
   "Cream + Bold Blue" — Arc-inspired warmth with editorial flair
   ============================================================ */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  /* Backgrounds */
  --bg: #FFFCF0;
  --bg-surface: #FFFFFF;
  --bg-muted: #F5F3EB;
  --bg-dark: #111827;

  /* Accent */
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: #DBEAFE;
  --accent-faint: rgba(37, 99, 235, 0.05);
  --highlight: #0EA5E9;

  /* Status */
  --red: #EF4444;
  --red-light: #FEE2E2;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --green: #22C55E;
  --green-light: #DCFCE7;

  /* Text */
  --text: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-on-dark: #F3F4F6;
  --text-on-dark-muted: #9CA3AF;

  /* Borders */
  --border: #E5E7EB;
  --border-accent: rgba(37, 99, 235, 0.2);

  /* Typography */
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 4px 20px rgba(37, 99, 235, 0.15);

  /* Layout */
  --max-width: 1200px;
  --content-width: 960px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 0 1px 1px 0;
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}
@media (min-width: 1280px) {
  .container { padding: 0 48px; }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.section-label::after {
  content: '_';
  color: var(--accent);
  animation: cursor-blink 1.2s step-end infinite;
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 30%, #0ea5e9 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ANIMATIONS ===== */
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3); opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes recommend-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15); }
  50% { box-shadow: 0 4px 30px rgba(37, 99, 235, 0.25); }
}

@keyframes hotspot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

@keyframes fade-up-sm {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll animation classes */
[data-animate] {
  opacity: 0;
}

[data-animate].in-view {
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-animate="fade-in"].in-view {
  animation: fade-in 0.7s ease forwards;
}

[data-animate="scale-in"].in-view {
  animation: scale-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger children */
[data-animate].in-view [data-stagger] {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
[data-stagger]:nth-child(1) { animation-delay: 0ms !important; }
[data-stagger]:nth-child(2) { animation-delay: 100ms !important; }
[data-stagger]:nth-child(3) { animation-delay: 200ms !important; }
[data-stagger]:nth-child(4) { animation-delay: 300ms !important; }
[data-stagger]:nth-child(5) { animation-delay: 400ms !important; }
[data-stagger]:nth-child(6) { animation-delay: 500ms !important; }
[data-stagger]:nth-child(7) { animation-delay: 600ms !important; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 252, 240, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav--scrolled {
  padding: 12px 0;
}

.nav--scrolled::before {
  background: rgba(255, 252, 240, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.08);
}

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

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.nav-cta:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

/* Language Dropdown */
.lang-dropdown {
  display: none;
  position: relative;
  margin-left: 4px;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-dropdown-trigger:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.lang-dropdown-trigger svg {
  opacity: 0.6;
}

.lang-dropdown-label {
  letter-spacing: 0.04em;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  min-width: 130px;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.lang-dropdown.is-open .lang-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-dropdown-item:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.lang-dropdown-item.lang-btn--active {
  color: var(--accent);
  font-weight: 600;
}

/* Mobile language switcher */
.lang-switcher--mobile {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-muted);
  border-radius: 8px;
  padding: 3px;
  margin-top: 24px;
}

.lang-switcher--mobile .lang-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher--mobile .lang-btn:hover {
  color: var(--text);
}

.lang-switcher--mobile .lang-btn.lang-btn--active {
  background: var(--bg-surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Hamburger */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 110;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-burger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 252, 240, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  transform: translateY(-12px);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu a:not(.app-store-badge) {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
  width: 240px;
  text-align: center;
}

.mobile-menu a:first-child {
  border-top: 1px solid var(--border);
}

.mobile-menu a:not(.app-store-badge):hover {
  color: var(--accent);
}

.mobile-menu .btn-primary {
  margin-top: 24px;
  width: 240px;
  justify-content: center;
  border: none;
  padding: 14px 28px;
}

.mobile-menu .app-store-badge {
  margin-top: 24px;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 240px;
  justify-content: center;
  padding: 12px 20px;
}

.mobile-menu .app-store-badge:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-cta { display: inline-flex; margin-left: auto; }
  .lang-dropdown { display: block; }
  .lang-switcher--mobile { display: none; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,0,0,0.4) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,0,0,0.4) 0%, transparent 70%);
  pointer-events: none;
}

/* Ambient blue glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.hero-content {
  max-width: 560px;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  animation: fade-in 0.8s ease 0.1s both;
}

.hero-label::after {
  content: '_';
  color: var(--accent);
  animation: cursor-blink 1.2s step-end infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--text);
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 32px;
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-ctas {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 32px;
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-ctas .btn-ghost {
  display: inline-flex;
  align-items: center;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  animation: fade-in 0.8s ease 0.7s both;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: glow-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  animation: live-ring 2.5s ease-out infinite;
}

@keyframes live-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
  will-change: transform;
  min-height: 44px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent), 0 0 0 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
  box-shadow: var(--shadow-sm);
  background: #1a47c0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  min-height: 44px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-faint);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* App Store Badge */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  min-height: 48px;
}

.app-store-badge:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.app-store-badge:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.app-store-badge-apple {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: -2px;
}

.app-store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-store-badge-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.app-store-badge-main {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ===== PHONE MOCKUP ===== */
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.phone-mockup {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  animation: fade-in 1s ease 0.5s both;
}

.phone-frame {
  position: relative;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.1),
    0 8px 24px rgba(0,0,0,0.15),
    0 25px 70px rgba(0,0,0,0.2),
    0 0 80px rgba(37, 99, 235, 0.06);
  animation: phone-float 6s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  background: #f5f5f7;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.2;
  position: relative;
}

.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.03) 42%,
    rgba(255,255,255,0.06) 44%,
    transparent 46%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 50;
  border-radius: 30px;
}

/* Page System */
.phone-pages {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.phone-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-page--active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* ---- Phone Header ---- */
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 18px 10px;
  flex-shrink: 0;
}

.phone-logo {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.phone-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.phone-header-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-hicon {
  width: 16px;
  height: 16px;
  color: #6b7280;
  display: block;
}

.phone-hicon-wrap {
  position: relative;
}

.phone-notif-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.phone-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37,99,235,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-add-btn svg {
  width: 14px;
  height: 14px;
  color: #2563eb;
}

/* ---- SENTINEL PAGE ---- */
/* Globe — always dark, even in light theme */
.phone-globe {
  margin: 6px 14px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
  aspect-ratio: 1 / 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-globe-sphere {
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(59,130,246,0.12) 0%, transparent 50%),
    radial-gradient(circle at 65% 60%, rgba(16,185,129,0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, #0c1a2e 0%, #0a1220 60%, #080e18 100%);
  position: relative;
  box-shadow:
    inset -8px -4px 20px rgba(0,0,0,0.6),
    0 0 40px rgba(59,130,246,0.06);
  animation: globe-rotate 20s linear infinite;
  overflow: hidden;
}

@keyframes globe-rotate {
  0% { background-position: 0% 50%, 0% 50%, 0% 0%; }
  100% { background-position: 200% 50%, 200% 50%, 0% 0%; }
}

.phone-globe-highlight {
  position: absolute;
  top: 8%;
  left: 15%;
  width: 50%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.08), transparent 70%);
}

.phone-globe-grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 18%, rgba(200,200,200,0.04) 18%, rgba(200,200,200,0.04) 18.5%, transparent 18.5%),
    repeating-linear-gradient(90deg, transparent, transparent 14%, rgba(200,200,200,0.04) 14%, rgba(200,200,200,0.04) 14.5%, transparent 14.5%);
  mask-image: radial-gradient(circle, rgba(0,0,0,0.8) 40%, transparent 52%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0.8) 40%, transparent 52%);
}

.phone-hotspot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: hotspot-pulse 3s ease-in-out infinite;
}

.phone-hotspot--red {
  background: rgba(239,68,68,0.7);
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
}

.phone-hotspot--amber {
  background: rgba(212,175,55,0.7);
  box-shadow: 0 0 6px rgba(212,175,55,0.4);
}

.phone-hotspot--green {
  background: rgba(16,185,129,0.6);
  box-shadow: 0 0 6px rgba(16,185,129,0.3);
}

.phone-globe-coords {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

/* Layer Pills */
.phone-layers {
  display: flex;
  gap: 5px;
  padding: 10px 14px 6px;
  overflow: hidden;
}

.phone-pill {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #9ca3af;
  background: rgba(0,0,0,0.03);
  border: 1px solid #e5e7eb;
}

.phone-pill--active {
  color: #2563eb;
  background: rgba(37,99,235,0.06);
  border-color: rgba(37,99,235,0.2);
}

/* Bottom Sheet */
.phone-sheet {
  flex: 1;
  background: #fff;
  border-radius: 16px 16px 0 0;
  margin-top: 6px;
  padding: 0 14px 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.phone-sheet-handle {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: #d1d5db;
  margin: 8px auto 10px;
  flex-shrink: 0;
}

.phone-sheet-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.phone-country {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}

.phone-region {
  font-size: 8px;
  color: #9ca3af;
  margin-top: 1px;
}

.phone-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.phone-badge--green {
  color: #16a34a;
  background: rgba(34,197,94,0.1);
}

.phone-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* Sheet Tabs */
.phone-sheet-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 8px;
}

.phone-stab {
  font-size: 7.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  color: #9ca3af;
}

.phone-stab--active {
  color: #2563eb;
  background: rgba(37,99,235,0.06);
}

/* Metrics Grid */
.phone-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.phone-metric {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 8px 10px;
}

.phone-metric-label {
  font-size: 7px;
  color: #9ca3af;
  margin-bottom: 2px;
}

.phone-metric-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* ---- TRACKING PAGE ---- */
.phone-tracking-scroll {
  flex: 1;
  overflow: hidden;
  padding: 0 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Year Summary */
.phone-year-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.phone-year-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 2px;
}

.phone-year-stat {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
}

.phone-year-current {
  font-size: 9px;
  color: #2563eb;
  margin-top: 2px;
}

/* Tracker Cards */
.phone-tracker-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.phone-tracker-card--active {
  border-color: rgba(37,99,235,0.2);
}

.phone-tracker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.phone-tracker-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
}

.phone-tracker-name--dim {
  color: #6b7280;
}

.phone-tracker-stays {
  font-size: 7.5px;
  color: #9ca3af;
  margin-top: 1px;
}

.phone-tracker-badge {
  font-size: 7px;
  font-weight: 500;
  color: #9ca3af;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-tracker-badge--active {
  color: #2563eb;
  background: rgba(37,99,235,0.06);
  font-weight: 600;
}

.phone-tracker-bdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2563eb;
}

.phone-tracker-section {
  margin-bottom: 8px;
}

.phone-tracker-section:last-child {
  margin-bottom: 0;
}

.phone-tracker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.phone-tracker-label {
  font-size: 8px;
  color: #6b7280;
}

.phone-tracker-val {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.phone-tracker-val--green { color: #16a34a; }
.phone-tracker-val--amber { color: #ca8a04; }
.phone-tracker-val--red { color: #dc2626; }
.phone-tracker-val--muted { color: #9ca3af; }

/* Progress Bars */
.phone-progress {
  height: 3px;
  background: #f3f4f6;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 3px;
}

.phone-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.phone-progress-fill--green { background: #22c55e; }
.phone-progress-fill--amber { background: #eab308; }
.phone-progress-fill--red { background: #ef4444; }
.phone-progress-fill--muted { background: #d1d5db; }

.phone-tracker-sub {
  font-size: 7px;
  color: #9ca3af;
}

.phone-tracker-sub--green { color: #16a34a; }
.phone-tracker-sub--amber { color: #ca8a04; }
.phone-tracker-sub--red { color: #dc2626; }

/* ---- PHONE TAB BAR ---- */
.phone-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
  background: #fff;
  border-top: 0.5px solid #e5e7eb;
  flex-shrink: 0;
}

.phone-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #9ca3af;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s ease;
}

.phone-tab-item svg {
  width: 14px;
  height: 14px;
}

.phone-tab-item span {
  font-size: 6.5px;
  font-weight: 500;
}

.phone-tab-item--active {
  color: #1a1a1a;
}

/* Desktop layout */
@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .hero-content {
    flex: 1;
  }

  .phone-mockup {
    flex: 0 0 300px;
    max-width: 300px;
    margin: 0;
  }
}

/* ===== STATUS TICKER ===== */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
  background: var(--bg-muted);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 35s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ticker-separator {
  width: 1px;
  height: 12px;
  background: var(--border);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .ticker-track {
    animation: none;
    justify-content: center;
    width: auto;
  }
}

/* ===== FEATURES ===== */
.features {
  padding: 96px 0;
}

.features-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.features-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
  will-change: transform;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.feature-card:hover .feature-icon {
  transform: rotate(-4deg) scale(1.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.feature-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.feature-screenshot {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-muted) 0%, #E8E6DE 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-screenshot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.feature-screenshot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

/* ===== DIFFERENTIATORS ===== */
.diff {
  padding: 96px 0;
  background: var(--bg-muted);
}

.diff-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: var(--text);
}

.diff-capabilities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .diff-capabilities {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .diff-capabilities {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.diff-cap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.diff-cap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.diff-cap:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.diff-cap:hover::before {
  opacity: 1;
}

.diff-cap:hover .diff-cap-icon {
  transform: rotate(-4deg) scale(1.05);
}

/* Diff icon color variants */
.diff-cap:nth-child(2) .diff-cap-icon {
  background: var(--green-light);
  color: var(--green);
}
.diff-cap:nth-child(3) .diff-cap-icon {
  background: #FEF3C7;
  color: var(--amber);
}
.diff-cap:nth-child(5) .diff-cap-icon {
  background: var(--red-light);
  color: var(--red);
}
.diff-cap:nth-child(6) .diff-cap-icon {
  background: #E0F2FE;
  color: #0284C7;
}

.diff-cap-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.diff-cap-icon svg {
  width: 18px;
  height: 18px;
}

.diff-cap-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.diff-cap-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.diff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.diff-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.diff-stat:hover .diff-stat-value {
  text-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.diff-stat-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.diff-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .diff-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .diff-stat {
    padding: 16px 8px;
    border-radius: var(--radius-md);
  }
  .diff-stat-value {
    font-size: 24px;
  }
  .diff-stat-label {
    font-size: 11px;
  }
}

/* ===== HOW IT WORKS ===== */
.protocol {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.protocol-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  color: var(--text);
}

.protocol-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}

@media (min-width: 768px) {
  .protocol-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.protocol-step {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

@media (min-width: 768px) {
  .protocol-step {
    padding-left: 0;
    border-left: none;
  }
}

.protocol-steps.in-view .protocol-step[data-stagger] {
  animation-name: slide-in-left !important;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 600;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.35;
}

.step-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .protocol-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -24px;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
  }
}

/* ===== PRICING ===== */
.pricing {
  padding: 96px 0;
  background: var(--bg-muted);
}

.pricing-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.pricing-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Toggle */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.toggle-option {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 9px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 44px;
}

.toggle-option.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.save-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.toggle-option.is-active .save-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .pricing-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.pricing-card--recommended {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-surface), var(--bg-surface)), linear-gradient(135deg, var(--accent), var(--highlight));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-accent);
  animation: recommend-glow 3s ease-in-out infinite;
}

.pricing-card--recommended:hover {
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.2);
  animation-play-state: paused;
  border-color: transparent;
  transform: translateY(-2px);
}

.pricing-card--free {
  background: #FAFAF7;
}

.recommended-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
  position: relative;
}

[data-price] {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-price].is-hidden {
  opacity: 0;
  position: absolute;
  pointer-events: none;
  transform: translateY(6px);
}

.pricing-amount {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-equiv {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 20px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pricing-prefix {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.pricing-card--free .pricing-features li::before {
  background: var(--text-muted);
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  will-change: transform;
}

.pricing-btn--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
}

.pricing-btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--bg-muted);
}

.pricing-btn--primary {
  background: var(--accent);
  color: #fff;
}

.pricing-btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.pricing-btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* ===== FINAL CTA ===== */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 60%);
  pointer-events: none;
  animation: cta-pulse 4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.cta .section-label {
  color: var(--text-on-dark-muted);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: var(--text-on-dark);
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-on-dark-muted);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta .btn-primary {
  position: relative;
  z-index: 1;
  padding: 14px 36px;
  font-size: 15px;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.cta .btn-primary:hover {
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.cta .app-store-badge {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.25);
}

.cta .app-store-badge:hover {
  background: #1a1a1a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 40px;
  padding-bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 40px));
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }
  .footer-brand {
    grid-column: auto;
  }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

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

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ===== MOBILE OPTIMIZATIONS ===== */

/* Small phones (iPhone SE etc.) */
@media (max-width: 374px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
}

/* All mobile */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 48px;
  }

  .hero-inner {
    gap: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-ctas {
    flex-wrap: wrap;
  }

  .hero-ctas .app-store-badge,
  .hero-ctas .btn-ghost {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-ctas .app-store-badge {
    padding: 10px 20px;
  }

  .phone-mockup {
    max-width: 260px;
  }

  /* Features */
  .features {
    padding: 64px 0;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-list li {
    font-size: 14px;
  }

  /* No hover effects on mobile */
  .feature-card:hover,
  .diff-cap:hover {
    transform: none;
  }

  /* Differentiators */
  .diff {
    padding: 64px 0;
  }

  /* Protocol */
  .protocol {
    padding: 64px 0;
  }

  .protocol-heading {
    margin-bottom: 40px;
  }

  /* Pricing */
  .pricing {
    padding: 64px 0;
  }

  .pricing-card--free {
    order: -1;
  }

  /* CTA */
  .cta {
    padding: 80px 0;
  }
}

/* ===== LEGAL PAGES ===== */
.legal {
  padding: 120px 0 80px;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.legal-body h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--text);
}

.legal-body h2 .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  margin-right: 4px;
}

.legal-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-body ul {
  margin-bottom: 16px;
  padding-left: 16px;
}

.legal-body ul li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 12px;
  position: relative;
  margin-bottom: 4px;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--accent-hover);
}

.legal-contact {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-contact p {
  margin-bottom: 8px;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}
