/* ============================================
   PHASIR v2 — Thread-based Scrollytelling
   Professional dark theme for property owners
   Mobile-first responsive design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Premium Color Palette */
  --color-black: #000000;
  --color-dark: #0a0a0a;
  --color-dark-elevated: #1a1a1a;
  --color-dark-card: #111111;

  /* Brand Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-premium: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #666666;

  /* Accent Colors */
  --color-accent: #667eea;
  --color-accent-purple: #667eea;
  --color-accent-blue: #4facfe;
  --color-accent-pink: #f093fb;
  --color-accent-cyan: #00f2fe;

  /* Effects */
  --blur-glass: blur(20px);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(102, 126, 234, 0.3);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Scroll Progress (set by JS) */
  --scroll-progress: 0;

  /* Typography */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   RESET
   ============================================ */

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

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

body {
  background: var(--color-black);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Safe areas for notched phones */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--gradient-primary);
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  z-index: 1001;
  pointer-events: none;
}

/* ============================================
   THE THREAD — SVG line running down the page
   ============================================ */

.thread-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.thread-line {
  stroke: rgba(102, 126, 234, 0.2);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 10000;
  stroke-dashoffset: 10000;
}

/* Thread Nodes — numbered waypoints */
.thread-node {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--color-dark);
  border: 2px solid rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.thread-node span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent-purple);
  transition: color var(--transition-base);
}

.thread-node.is-active {
  border-color: var(--color-accent-purple);
  background: rgba(102, 126, 234, 0.12);
  box-shadow: 0 0 24px rgba(102, 126, 234, 0.3);
}

.thread-node.is-active span {
  color: var(--color-text-primary);
}

/* ============================================
   NAVIGATION
   ============================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.topbar.scrolled {
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  background: rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

.nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--color-text-primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ---- Hamburger Toggle ---- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

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

/* ---- Mobile Nav Overlay ---- */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 1001;
  animation: fadeIn 0.25s ease;
}

.nav.is-open a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 0.75rem 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding-top: 70px;
}

.section {
  position: relative;
  padding: var(--space-xl) 0;
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-md);
}

.section__header h2 {
  font-size: clamp(1.625rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__sub {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.btn {
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-height: 48px;
  /* Touch friendly */
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(102, 126, 234, 0.5);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  min-height: 52px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ============================================
   SECTION 1: HERO
   ============================================ */

.section--hero {
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(79, 172, 254, 0.06) 0%, transparent 50%),
              var(--color-black);
  padding: var(--space-md) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.hero__copy h1 {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__phone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: var(--gradient-primary);
  opacity: 0.12;
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}

.hero__img {
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 24px 48px rgba(102, 126, 234, 0.3));
  position: relative;
  z-index: 1;
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.015);
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ============================================
   SECTION: PROBLEM
   ============================================ */

.section--problem {
  background: linear-gradient(180deg, var(--color-black) 0%, rgba(10, 10, 10, 1) 100%);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: var(--space-md);
}

.pain-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-smooth);
}

.pain-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.pain-card__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 87, 108, 0.12);
  border: 1px solid rgba(245, 87, 108, 0.2);
  color: #f5576c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pain-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.pain-card p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Pain Summary */
.pain-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(245, 87, 108, 0.06);
  border: 1px solid rgba(245, 87, 108, 0.12);
  border-radius: var(--radius-md);
  max-width: 500px;
  margin: 0 auto;
  flex-direction: column;
  text-align: center;
}

.pain-summary__number {
  font-size: 3rem;
  font-weight: 800;
  color: #f5576c;
  line-height: 1;
  flex-shrink: 0;
}

.pain-summary__text {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pain-summary__text strong {
  color: var(--color-text-primary);
}

/* ============================================
   SECTION: SOLUTION — Phone Showcase
   ============================================ */

.section--solution {
  background: radial-gradient(circle at 50% 30%, rgba(102, 126, 234, 0.06) 0%, transparent 60%),
              var(--color-dark);
}

.showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Phone Frame */
.showcase__phone {
  display: flex;
  justify-content: center;
  width: 100%;
}

.showcase__phone-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.showcase__phone-frame::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.phone-screen:first-child {
  position: relative;
}

.phone-screen.active {
  opacity: 1;
  transform: scale(1);
}

/* Feature Tabs */
.showcase__tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.phone-tab {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
  min-height: 48px;
}

.phone-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.phone-tab.active {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(102, 126, 234, 0.25);
}

.phone-tab__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.phone-tab.active .phone-tab__title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phone-tab__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.phone-tab.active .phone-tab__desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.25rem;
}

/* ============================================
   SECTION: FEATURES GRID
   ============================================ */

.section--features {
  background: var(--color-black);
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(102, 126, 234, 0.2);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent-purple);
}

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

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================
   SECTION: NUMBERS
   ============================================ */

.section--numbers {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.numbers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.number-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.number-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(102, 126, 234, 0.15);
}

.number-card__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.number-card__label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* ============================================
   SECTION: BETA CTA
   ============================================ */

.section--cta {
  position: relative;
  padding-bottom: var(--space-lg);
}

.section--cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

/* Beta Stats */
.beta-stats {
  margin: 1.5rem 0;
  text-align: center;
}

.beta-stats__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(102, 126, 234, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 126, 234, 0.12);
  max-width: 400px;
  margin: 0 auto;
}

.beta-stat {
  text-align: center;
}

.beta-stat__number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.beta-stat__label {
  color: var(--color-text-secondary);
  margin-top: 0.375rem;
  font-size: 0.8125rem;
}

/* Beta Form Card */
.form-card {
  background: var(--color-dark-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: var(--space-md) auto 0;
  max-width: 700px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-row--full {
  grid-column: 1 / -1;
}

.form-row label {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

input,
textarea,
select {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  /* 16px prevents iOS auto-zoom on focus */
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  width: 100%;
  min-height: 48px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent-purple);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  min-height: 44px;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-accent-purple);
}

.form-actions {
  margin-top: 1.25rem;
  text-align: center;
}

.form-actions .btn {
  width: 100%;
}

.form-feedback {
  color: var(--color-accent-purple);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
}

.beta-benefits {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(79, 172, 254, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 172, 254, 0.1);
}

.beta-benefits h4 {
  margin: 0 0 0.5rem;
  color: var(--color-accent-blue);
  font-size: 0.875rem;
}

.beta-benefits ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.form-legal {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-legal a {
  color: var(--color-accent-purple);
  text-decoration: underline;
  text-decoration-color: rgba(102, 126, 234, 0.3);
  transition: text-decoration-color var(--transition-fast);
}

.form-legal a:hover {
  text-decoration-color: var(--color-accent-purple);
}

/* Beta Success Message */
.beta-success {
  text-align: center;
  padding: 2rem 1.5rem;
}

.beta-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.beta-success p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.beta-success__position strong {
  color: var(--color-accent);
  font-size: 1.125rem;
}

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

.footer {
  background: var(--color-dark-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-section h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.875rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
  display: inline-block;
  padding: 0.25rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer__links a:hover {
  color: var(--color-text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
  display: none !important;
}

/* ============================================
   RESPONSIVE — Tablet (>=768px)
   ============================================ */

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .topbar-inner {
    padding: 1.25rem 2rem;
  }

  main {
    padding-top: 80px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section__header {
    margin-bottom: var(--space-lg);
  }

  /* Nav: show desktop, hide hamburger */
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  /* Hero */
  .section--hero {
    min-height: calc(100vh - 80px);
    padding: var(--space-lg) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
  }

  .hero__copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
  }

  .hero__sub {
    font-size: 1.125rem;
    margin-left: 0;
    margin-right: 0;
  }

  .hero__cta {
    justify-content: flex-start;
  }

  .hero__img {
    max-width: 360px;
    filter: drop-shadow(0 32px 64px rgba(102, 126, 234, 0.3));
  }

  /* Trust Bar */
  .trust-bar__inner {
    gap: 3rem;
  }

  .trust-item {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
  }

  /* Label */
  .label {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }

  /* Problem */
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--space-lg);
  }

  .pain-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
  }

  .pain-card__number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .pain-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .pain-summary {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    padding: 2rem;
  }

  .pain-summary__number {
    font-size: 3.5rem;
  }

  .pain-summary__text {
    font-size: 0.9375rem;
  }

  /* Showcase */
  .showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .showcase__phone {
    position: sticky;
    top: 120px;
  }

  .showcase__phone-frame {
    max-width: 320px;
  }

  .phone-screen {
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
  }

  .phone-tab {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .phone-tab__title {
    font-size: 1rem;
  }

  .phone-tab__desc {
    font-size: 0.875rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
  }

  .feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
  }

  .feature-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .feature-card p {
    font-size: 0.9375rem;
  }

  /* Numbers */
  .numbers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .number-card {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .number-card__value {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .number-card__label {
    font-size: 0.875rem;
  }

  /* Beta */
  .beta-stats__inner {
    flex-direction: row;
    gap: 3rem;
    padding: 1.5rem 3rem;
    max-width: none;
    display: inline-flex;
  }

  .beta-stat__number {
    font-size: 2.5rem;
  }

  .beta-stat__label {
    font-size: 0.875rem;
  }

  .form-card {
    padding: 3rem;
    border-radius: var(--radius-xl);
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .beta-success {
    padding: 3rem;
  }

  .beta-success h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .beta-success p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
  }

  .beta-success__position strong {
    font-size: 1.25rem;
  }

  /* Section Sub */
  .section__sub {
    font-size: 1.125rem;
  }

  /* Thread node */
  .thread-node {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
  }

  .thread-node span {
    font-size: 0.875rem;
  }

  /* Footer */
  .footer {
    padding: var(--space-xl) 0 var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .footer__links a {
    min-height: auto;
    display: inline-block;
    padding: 0;
  }
}

/* ============================================
   RESPONSIVE — Large (>=1024px)
   ============================================ */

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
  }

  .number-card:hover {
    transform: translateY(-2px);
  }

  .pain-card:hover {
    transform: translateY(-2px);
  }
}

/* ============================================
   MOBILE: hide thread SVG (< 768px)
   ============================================ */

@media (max-width: 767px) {
  .thread-svg {
    display: none;
  }
}

/* ============================================
   SMALL PHONE (<=380px)
   ============================================ */

@media (max-width: 380px) {
  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .section__header h2 {
    font-size: 1.5rem;
  }

  .hero__copy h1 {
    font-size: 1.75rem;
  }

  .number-card__value {
    font-size: 1.625rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .thread-svg {
    display: none;
  }

  .thread-node {
    border-color: var(--color-accent-purple);
    background: rgba(102, 126, 234, 0.08);
  }

  .phone-screen {
    opacity: 1;
    transform: none;
  }
}
