/*
Theme Name: Dia — Diabetes Companion
Theme URI: https://diabetes.to
Author: diabetes.to
Author URI: https://diabetes.to
Description: Sales page theme for Dia, the WhatsApp diabetes assistant. Dark, premium health-tech aesthetic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dia-theme
Tags: one-page, health, dark, landing-page
*/

/* ─── ROOT VARIABLES ─── */
:root {
  --night: #0a0f1a;
  --deep: #0e1628;
  --panel: #111c30;
  --border: rgba(255,255,255,0.07);
  --teal: #2dd4bf;
  --teal-dim: rgba(45,212,191,0.12);
  --gold: #f5c842;
  --gold-dim: rgba(245,200,66,0.1);
  --rose: #fb7185;
  --text: #e8edf5;
  --muted: #7a8da8;
  --white: #ffffff;
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── WORDPRESS RESET ─── */
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ─── NAV ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,15,26,0.95), transparent);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--teal) !important;
  color: var(--night) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45,212,191,0.35) !important;
}

/* ─── LAYOUT ─── */
section { position: relative; z-index: 1; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,66,0.08) 0%, transparent 70%);
  top: 30%; right: 10%;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite reverse;
}

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

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-dim);
  border: 1px solid rgba(45,212,191,0.25);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-title em { font-style: italic; color: var(--teal); }

.hero-title .underline {
  position: relative;
  display: inline-block;
}

.hero-title .underline::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 1s ease 1s both;
}

@keyframes drawLine { to { transform: scaleX(1); } }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--night);
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45,212,191,0.35);
  color: var(--night);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-secondary:hover { opacity: 1; color: var(--text); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s ease 0.4s both;
}

.stat-number {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.stat-number span { color: var(--teal); }

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── PHONE MOCKUP ─── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s ease 0.2s both;
}

.phone-wrap { position: relative; width: 300px; }

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(45,212,191,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.phone {
  position: relative;
  width: 300px;
  background: var(--panel);
  border-radius: 40px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.phone-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.phone-name { font-size: 0.85rem; font-weight: 500; color: var(--white); }
.phone-status { font-size: 0.7rem; color: var(--teal); }

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  animation: msgAppear 0.4s ease both;
}

.msg-time { font-size: 0.62rem; opacity: 0.5; margin-top: 3px; text-align: right; }

.msg-dia {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  color: var(--text);
  align-self: flex-start;
}

.msg-user {
  background: linear-gradient(135deg, #0e7a6a, #0d9488);
  border-radius: 16px 16px 4px 16px;
  color: white;
  align-self: flex-end;
}

.msg-alert {
  background: rgba(251,113,133,0.15);
  border: 1px solid rgba(251,113,133,0.3);
  border-radius: 12px;
  color: var(--rose);
  align-self: stretch;
  text-align: center;
  font-size: 0.72rem;
  padding: 8px 12px;
}

.msg:nth-child(1) { animation-delay: 0.5s; }
.msg:nth-child(2) { animation-delay: 1.0s; }
.msg:nth-child(3) { animation-delay: 1.5s; }
.msg:nth-child(4) { animation-delay: 2.0s; }
.msg:nth-child(5) { animation-delay: 2.5s; }

@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
  width: fit-content;
  animation: msgAppear 0.4s ease 3.2s both;
}

.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: typingDot 1.2s ease infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ─── SECTION COMMONS ─── */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.section-title em { font-style: italic; color: var(--gold); }

/* ─── PROBLEM ─── */
#problem { padding: 120px 0; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.pain-item {
  background: var(--deep);
  padding: 40px 32px;
  transition: background 0.3s;
}

.pain-item:hover { background: var(--panel); }
.pain-icon { font-size: 2rem; margin-bottom: 16px; }
.pain-title { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 400; color: var(--white); margin-bottom: 10px; }
.pain-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ─── SOLUTION ─── */
#solution {
  padding: 120px 0;
  background: linear-gradient(to bottom, transparent, rgba(45,212,191,0.03), transparent);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.feature-list { display: flex; flex-direction: column; gap: 28px; }

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}

.feature-item:hover { border-color: rgba(45,212,191,0.3); transform: translateX(4px); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.fi-teal { background: var(--teal-dim); }
.fi-gold { background: var(--gold-dim); }
.fi-rose { background: rgba(251,113,133,0.1); }
.fi-blue { background: rgba(96,165,250,0.1); }

.feature-title { font-weight: 500; color: var(--white); margin-bottom: 6px; font-size: 0.95rem; }
.feature-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.solution-visual { position: relative; }

.glucose-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.gc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.gc-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.gc-value { font-family: var(--ff-display); font-size: 3rem; font-weight: 600; color: var(--teal); line-height: 1; }
.gc-unit { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.gc-badge { background: rgba(45,212,191,0.15); color: var(--teal); padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 500; }

.glucose-chart { height: 80px; margin: 20px 0; position: relative; }
.glucose-chart svg { width: 100%; height: 100%; }

.tir-bars { display: flex; gap: 12px; margin-top: 20px; }
.tir-bar { flex: 1; }
.tir-label { font-size: 0.7rem; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.tir-track { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.06); overflow: hidden; }
.tir-fill { height: 100%; border-radius: 100px; animation: fillBar 1.5s ease both; }
@keyframes fillBar { from { width: 0 !important; } }
.tir-pct { font-size: 0.8rem; color: var(--white); font-weight: 500; margin-top: 4px; }

.floating-insight {
  position: absolute;
  top: -20px; right: -20px;
  background: var(--night);
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 200px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fi-emoji { font-size: 1.4rem; margin-bottom: 6px; }
.fi-text { font-size: 0.78rem; color: var(--text); line-height: 1.5; }
.fi-text strong { color: var(--gold); }

/* ─── AGENTS ─── */
#agents { padding: 120px 0; }

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.agent-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.agent-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.agent-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.agent-name { font-weight: 500; color: var(--white); margin-bottom: 8px; font-size: 1rem; }
.agent-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ─── WEARABLES ─── */
#wearables {
  padding: 120px 0;
  background: linear-gradient(to bottom, transparent, rgba(245,200,66,0.02), transparent);
}

.wearables-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 60px;
}

.device-chip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.3s;
}

.device-chip:hover { border-color: rgba(245,200,66,0.3); }
.device-emoji { font-size: 1.5rem; margin-bottom: 8px; }
.device-name { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.wearable-text p { color: var(--muted); line-height: 1.8; margin-bottom: 20px; font-size: 0.95rem; }

/* ─── HOW IT WORKS ─── */
#how { padding: 120px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), var(--border), transparent);
}

.step { text-align: center; position: relative; }

.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--teal);
  position: relative;
  z-index: 1;
}

.step-title { font-weight: 500; color: var(--white); margin-bottom: 10px; font-size: 1rem; }
.step-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.7; }

/* ─── PRICING ─── */
#pricing {
  padding: 120px 0;
  background: linear-gradient(to bottom, transparent, rgba(45,212,191,0.03), transparent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  transition: transform 0.3s;
}

.plan-card:hover { transform: translateY(-4px); }

.plan-card.featured {
  background: linear-gradient(135deg, rgba(45,212,191,0.1), rgba(45,212,191,0.05));
  border-color: rgba(45,212,191,0.4);
  box-shadow: 0 0 60px rgba(45,212,191,0.1);
}

.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--night);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.plan-price { font-family: var(--ff-display); font-size: 3rem; font-weight: 600; color: var(--white); line-height: 1; margin-bottom: 6px; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.87rem; color: var(--text); }
.plan-features li::before { content: '✓'; color: var(--teal); font-weight: 600; flex-shrink: 0; }

.btn-plan {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-plan-outline { border: 1px solid var(--border); color: var(--text); }
.btn-plan-outline:hover { border-color: rgba(45,212,191,0.4); color: var(--teal); }
.btn-plan-fill { background: var(--teal); color: var(--night); }
.btn-plan-fill:hover { box-shadow: 0 8px 24px rgba(45,212,191,0.35); transform: translateY(-1px); color: var(--night); }

/* ─── CTA ─── */
#cta { padding: 120px 0; text-align: center; position: relative; overflow: hidden; }

#cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title { font-family: var(--ff-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; color: var(--white); margin-bottom: 20px; position: relative; z-index: 1; }
.cta-title em { font-style: italic; color: var(--teal); }
.cta-sub { font-size: 1rem; color: var(--muted); margin-bottom: 40px; position: relative; z-index: 1; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ─── DISCLAIMER ─── */
#disclaimer { padding: 40px 0; border-top: 1px solid var(--border); }
.disclaimer-text { font-size: 0.8rem; color: var(--muted); text-align: center; line-height: 1.8; max-width: 700px; margin: 0 auto; }

/* ─── FOOTER ─── */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: var(--ff-display); font-size: 1.3rem; color: var(--white); }
.footer-logo span { color: var(--teal); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── HAMBURGER MENU ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--night);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-family: var(--ff-display);
  font-weight: 300;
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--teal); }
.mobile-nav .mobile-cta {
  background: var(--teal);
  color: var(--night) !important;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem !important;
  font-family: var(--ff-body) !important;
  font-weight: 500 !important;
}

/* ─── TABLET (max 900px) ─── */
@media (max-width: 900px) {
  .site-header { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 24px; }

  #hero { padding: 100px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone-wrap, .phone { width: 280px; }

  .hero-stats { gap: 20px; }

  #problem { padding: 80px 0; }
  .pain-grid { grid-template-columns: 1fr; }

  #solution { padding: 80px 0; }
  .solution-grid { grid-template-columns: 1fr; }
  .floating-insight { display: none; }

  #agents { padding: 80px 0; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }

  #wearables { padding: 80px 0; }
  .wearables-inner { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }

  #how { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }

  #pricing { padding: 80px 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }

  #cta { padding: 80px 0; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* ─── SMALL PHONES (max 480px) ─── */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .site-header { padding: 14px 18px; }

  #hero { padding: 90px 0 50px; }
  .hero-badge { font-size: 0.7rem; padding: 5px 12px; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-primary { width: 100%; justify-content: center; padding: 15px 24px; }

  .hero-stats { flex-direction: column; gap: 16px; padding-top: 28px; margin-top: 36px; }
  .stat-number { font-size: 1.6rem; }

  .phone-wrap, .phone { width: 100%; max-width: 300px; }

  #problem { padding: 60px 0; }
  .pain-grid { gap: 0; }
  .pain-item { padding: 28px 20px; }

  #solution { padding: 60px 0; }
  .feature-item { flex-direction: column; gap: 14px; }
  .feature-icon { width: 40px; height: 40px; }

  #agents { padding: 60px 0; }
  .agents-grid { grid-template-columns: 1fr; gap: 12px; }
  .agent-card { padding: 24px 20px; }

  #wearables { padding: 60px 0; }
  .device-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .wearable-text p { font-size: 0.9rem; }

  #how { padding: 60px 0; }
  .step-num { width: 56px; height: 56px; font-size: 1.3rem; }

  #pricing { padding: 60px 0; }
  .plan-card { padding: 32px 24px; }
  .plan-price { font-size: 2.4rem; }

  #cta { padding: 60px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn-primary { width: 100%; max-width: 320px; justify-content: center; }

  .footer-links { gap: 16px; }
  .footer-copy { font-size: 0.75rem; }

  .section-title { font-size: 1.8rem; }
}
