/* ═══════════════════════════════════════════════════════════════
   Swapy® — Landing Page Stylesheet
   Apple-grade design system. Scroll-reveal animations.
   Font: Satoshi (modern geometric sans)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@400;500;700;900&display=swap');

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

:root {
  --accent: #D0FF01;
  --accent-glow: rgba(208, 255, 1, 0.35);
  --dark: #0a0a0a;
  --dark-card: #161616;
  --dark-card-border: rgba(255,255,255,0.06);
  --light: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-900: #171717;
  --radius: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --max-w: 1120px;
  --font: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

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

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.08; font-weight: 900; letter-spacing: -0.035em; }
h1 { font-size: clamp(3.2rem, 8vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
p  { color: var(--gray-500); font-size: 1.1rem; line-height: 1.7; }
a  { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── GSAP initial states — hidden until animated ── */
.hero-badge, .hero h1, .hero-subtitle, .hero-buttons {
  opacity: 0; transform: translateY(40px);
}
/* .iphone-scene opacity:0 is set in the 3D section below */
/* Scroll-animated elements: GSAP sets initial state via gsap.set() */

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; border-radius: 100px;
  transition: all 0.3s var(--transition);
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-accent {
  background: var(--accent); color: var(--dark);
  padding: 14px 32px;
}
.btn-accent:hover { box-shadow: 0 8px 40px var(--accent-glow); transform: translateY(-1px); }
.btn-dark {
  background: var(--dark); color: var(--light);
  padding: 16px 36px; font-size: 1.05rem;
}
.btn-dark:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.btn-dark svg { transition: transform 0.3s var(--transition); }
.btn-dark:hover svg { transform: translateX(3px); }
.btn-outline {
  background: transparent; color: var(--dark);
  padding: 16px 36px; font-size: 1.05rem;
  border: 1.5px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--dark); }
.btn-sm { padding: 10px 22px; font-size: 0.87rem; line-height: 1; }
.btn-full { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--gray-500);
  padding: 10px 20px; font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--dark); }

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 900px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: none;
  border-radius: 100px;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo svg { display: block; color: var(--dark); transform: translateY(-1px); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--gray-500);
  transition: color 0.2s;
  line-height: 1;
}
.nav-links a:hover { color: var(--dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--dark);
  margin: 5px 0; border-radius: 2px; transition: 0.3s var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 16px;
  padding: 16px 24px 24px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(24px);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--gray-500); }
.mobile-menu a:hover { color: var(--dark); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--light);
  color: var(--dark);
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(208,255,1,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(208,255,1,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  margin-bottom: 32px;
  font-size: 0.82rem; font-weight: 600; color: var(--gray-500);
  letter-spacing: 0.01em;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero h1 {
  margin-bottom: 24px; position: relative;
}
.hero h1 { color: var(--dark); }

/* ── Hero floating particles ── */
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}
.particle:nth-child(1) { top: 18%; left: 12%; animation: float-p 6s ease-in-out infinite; }
.particle:nth-child(2) { top: 72%; left: 85%; animation: float-p 8s ease-in-out infinite 1s; width: 4px; height: 4px; }
.particle:nth-child(3) { top: 35%; left: 78%; animation: float-p 7s ease-in-out infinite 2s; width: 8px; height: 8px; opacity: 0.15; }
.particle:nth-child(4) { top: 60%; left: 20%; animation: float-p 9s ease-in-out infinite 0.5s; width: 5px; height: 5px; }
.particle:nth-child(5) { top: 25%; left: 55%; animation: float-p 7.5s ease-in-out infinite 1.5s; width: 3px; height: 3px; opacity: 0.3; }
.particle:nth-child(6) { top: 80%; left: 45%; animation: float-p 6.5s ease-in-out infinite 3s; width: 7px; height: 7px; opacity: 0.18; }
@keyframes float-p {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33% { transform: translateY(-30px) translateX(15px) scale(1.3); }
  66% { transform: translateY(15px) translateX(-10px) scale(0.8); }
}

/* ── Text highlighter — background approach (reliable inline) ── */
.text-highlight {
  position: relative; display: inline;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 0.34em;
  padding-bottom: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* On dark sections, reduce highlight opacity so white text stays readable */
.how-it-works .text-highlight,
.ai-section .text-highlight {
  background-image: linear-gradient(rgba(208,255,1,0.35), rgba(208,255,1,0.35));
}
.hero-subtitle {
  font-size: 1.25rem; max-width: 580px;
  margin: 0 auto 48px;
  color: var(--gray-500);
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-dark { background: var(--dark); color: var(--light); }
.hero .btn-dark:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.25); }
.hero .btn-outline { border-color: var(--gray-200); color: var(--dark); }
.hero .btn-outline:hover { border-color: var(--dark); }

/* ═══════════════════════════════════════════════
   3D iPHONE — Three.js WebGL canvas
   ═══════════════════════════════════════════════ */
.iphone-scene {
  margin: 60px auto 0;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  max-width: 700px;
  width: 100%;
  overflow: visible;
}

#iphoneCanvas {
  display: block;
  width: 100%;
  max-width: 700px;
  touch-action: pan-y;
  cursor: grab;
}
#iphoneCanvas:active { cursor: grabbing; }

/* Screen labels */
.iphone-screen-labels {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 20px;
}
.screen-label {
  font-size: 0.82rem; font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 100px;
  transition: all 0.3s var(--transition);
  border: 1.5px solid transparent;
}
.screen-label.active {
  color: var(--dark);
  background: var(--accent);
  border-color: var(--accent);
}
.screen-label:hover:not(.active) { color: var(--gray-500); }


/* ═══════════════════════════════════════════════
   HIGHLIGHTS MARQUEE — infinite scroll text
   ═══════════════════════════════════════════════ */
.highlights {
  background: var(--gray-50);
  padding: 48px 0;
  overflow: hidden;
  position: relative;
}
.highlights::before, .highlights::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2;
}
.highlights::before { left: 0; background: linear-gradient(to right, var(--gray-50), transparent); }
.highlights::after { right: 0; background: linear-gradient(to left, var(--gray-50), transparent); }
.highlights-track {
  display: flex; align-items: center; gap: 32px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.highlights-track span {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gray-200);
  transition: color 0.5s;
}
.highlights-track span.dot {
  color: var(--accent);
  font-size: 1.5rem;
  opacity: 0.5;
}
.highlights:hover .highlights-track span:not(.dot) {
  color: var(--gray-400);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════ */
.stats {
  padding: 88px 0;
  background: var(--light);
  position: relative;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat {
  padding: 32px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.4s var(--transition);
}
.stat:hover {
  background: var(--light);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}
.stat h3 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.04em; margin-bottom: 4px;
  color: var(--dark);
}
.stat .accent-text { color: var(--dark); }
.stat .accent-text::after {
  content: ''; display: inline-block;
  width: 0.3em; height: 0.3em;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: super;
}
.stat p { font-size: 0.88rem; font-weight: 500; color: var(--gray-500); }

/* ═══════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════ */
.features {
  padding: 140px 0;
  background: var(--light);
  color: var(--dark);
  position: relative;
}
.features::before {
  content: '';
  position: absolute; top: 200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(208,255,1,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gray-400);
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--accent);
}
.section-header {
  text-align: center; max-width: 720px;
  margin: 0 auto 80px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.15rem; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.4s var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent); opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.06);
  border-color: var(--accent);
  background: var(--light);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  background: var(--accent); color: var(--dark);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 8px; color: var(--dark); }
.feature-card p { font-size: 0.95rem; color: var(--gray-500); }

/* ═══════════════════════════════════════════════
   SUPPLY TYPES — Bento grid
   ═══════════════════════════════════════════════ */
.features .section-header h2 { color: var(--dark); }
.features .section-header p { color: var(--gray-500); }
.features .section-tag { color: var(--gray-400); }

/* ═══════════════════════════════════════════════
   APP SHOWCASE — Apple-style horizontal pin scroll
   ═══════════════════════════════════════════════ */
.app-showcase {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
}
.showcase-header {
  text-align: center;
  padding: 120px 0 20px;
}
.showcase-header .section-tag,
.showcase-header h2,
.showcase-header p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.showcase-header h2 { margin-bottom: 16px; }
.showcase-header p { font-size: 1.15rem; color: var(--gray-500); }
.showcase-track {
  display: flex;
  width: calc(100vw + 120vw); /* first panel 100vw + 2 panels × 60vw */
  height: 100vh;
}
.showcase-panel {
  width: 60vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 40px;
}
.showcase-panel:first-child {
  width: 100vw;
}
/* Showcase item: caption above + phone below */
.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.showcase-caption {
  text-align: center;
}
.showcase-caption span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.showcase-caption p {
  font-size: 1rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
  max-width: 320px;
}

/* Phone frame wrapper */
.showcase-phone {
  position: relative;
  width: 380px;
}
.showcase-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.showcase-screen {
  position: absolute;
  top: 2.1%;
  left: 3.8%;
  width: 92.4%;
  height: 95.3%;
  border-radius: 11% / 5.4%;
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   AI ZOOM INTRO — dramatic icon reveal
   ═══════════════════════════════════════════════ */
.ai-zoom-intro {
  padding: 120px 0 0;
  background: var(--dark);
  text-align: center;
  overflow: hidden;
}
.ai-zoom-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 140px; height: 140px;
  border-radius: 36px;
  background: var(--accent);
  margin-bottom: 24px;
}
.ai-zoom-label {
  font-size: 1rem; font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 80px;
}

.supply-types { padding: 140px 0; }
.supply-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.supply-card {
  border-radius: var(--radius);
  padding: 48px 32px;
  border: 1px solid transparent;
  transition: all 0.4s var(--transition);
  position: relative; overflow: hidden;
}
.supply-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.06);
}
.supply-card.luce { background: #FBBF240A; border-color: #FBBF2420; }
.supply-card.gas { background: #60A5FA0A; border-color: #60A5FA20; }
.supply-card.fibra { background: #A78BFA0A; border-color: #A78BFA20; }
.supply-card:hover.luce { border-color: #FBBF24; }
.supply-card:hover.gas { border-color: #60A5FA; }
.supply-card:hover.fibra { border-color: #A78BFA; }

.supply-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.supply-icon svg { width: 26px; height: 26px; }
.supply-icon.luce { background: #FBBF2420; color: #FBBF24; }
.supply-icon.gas { background: #60A5FA20; color: #60A5FA; }
.supply-icon.fibra { background: #A78BFA20; color: #A78BFA; }
.supply-card h3 { margin-bottom: 8px; color: var(--dark); }
.supply-card p { font-size: 0.95rem; }

/* ═══════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════ */
.how-it-works {
  padding: 140px 0; background: var(--dark); color: var(--light);
  position: relative; overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute; top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(208,255,1,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.how-it-works .section-header h2 { color: var(--light); }
.how-it-works .section-header p { color: var(--gray-400); }

.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; counter-reset: step;
}
.step-card {
  position: relative;
  padding: 40px 28px;
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  border-radius: var(--radius);
  transition: all 0.4s var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208,255,1,0.15);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.step-number {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--dark);
  font-size: 1.1rem; font-weight: 900;
  margin-bottom: 24px;
}
.step-card h3 { color: var(--light); margin-bottom: 10px; }
.step-card p { color: var(--gray-400); font-size: 0.95rem; }

/* Connector lines between steps */
.steps-grid .step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 56px; right: -12px;
  width: 24px; height: 1.5px;
  background: var(--dark-card-border);
}

/* ═══════════════════════════════════════════════
   AI SECTION
   ═══════════════════════════════════════════════ */
.ai-section {
  padding: 140px 0;
  position: relative;
  background: var(--dark);
  color: var(--light);
}
.ai-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.ai-content { max-width: 480px; }
.ai-section .section-tag { color: var(--gray-400); }
.ai-content h2 { margin-bottom: 16px; color: var(--light); }
.ai-content > p { margin-bottom: 32px; color: var(--gray-400); }
.ai-features { display: flex; flex-direction: column; gap: 16px; }
.ai-feature {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.ai-feature:hover { background: rgba(255,255,255,0.03); }
.ai-feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-feature-icon svg { width: 20px; height: 20px; color: var(--dark); }
.ai-feature-text h4 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 2px;
  letter-spacing: -0.01em; color: var(--light);
}
.ai-feature-text p { font-size: 0.88rem; margin: 0; color: var(--gray-400); }

/* AI Visual — chat simulation */
.ai-visual {
  position: relative;
  display: flex; justify-content: center;
}
.ai-chat-window {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.ai-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ai-chat-header .ai-avatar {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
}
.ai-chat-header .ai-avatar svg { width: 16px; height: 16px; }
.ai-chat-header span {
  font-weight: 700; font-size: 0.9rem; color: var(--light);
}
.ai-chat-header .ai-status {
  font-weight: 500; font-size: 0.75rem; color: var(--gray-400);
  margin-left: auto;
  display: flex; align-items: center; gap: 5px;
}
.ai-chat-header .ai-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
}
.ai-chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg {
  max-width: 80%; padding: 12px 16px;
  border-radius: 16px; font-size: 0.85rem; line-height: 1.5;
}
.ai-msg.bot {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: var(--light); align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg.user {
  background: var(--accent); color: var(--dark);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-msg.highlight {
  background: var(--accent); color: var(--dark);
  font-weight: 600;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* ═══════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════ */
.cta {
  padding: 140px 0;
  text-align: center;
  background: var(--dark);
}
.cta-box {
  background: var(--light);
  border-radius: 32px;
  padding: 100px 48px;
  position: relative; overflow: hidden;
}
.cta-box h2 {
  color: var(--dark); margin-bottom: 16px;
  position: relative;
}
.cta-box p {
  color: var(--gray-500); max-width: 480px;
  margin: 0 auto 40px; position: relative;
  font-size: 1.15rem;
}
.cta-box .btn { position: relative; padding: 18px 44px; font-size: 1.1rem; }
.cta-box .btn-accent {
  background: var(--accent); color: var(--dark);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--dark);
  color: var(--light);
}
.footer-inner {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 40px;
}
.footer-brand svg { display: block; margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.88rem; color: var(--gray-400);
  max-width: 240px; line-height: 1.6;
}
.footer-links { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gray-400); margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.88rem; color: var(--gray-500);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--light); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p { font-size: 0.8rem; color: var(--gray-400); }

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--light);
  border-radius: 28px;
  padding: 48px 40px;
  max-width: 440px; width: 100%;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.5s var(--transition);
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-100); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  transition: all 0.2s;
}
.modal-close:hover { background: var(--gray-200); color: var(--dark); }
.modal-close svg { width: 18px; height: 18px; }

.modal-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal-icon svg { width: 26px; height: 26px; color: var(--dark); }
.modal h2 { font-size: 1.6rem; text-align: center; margin-bottom: 8px; }
.modal p { text-align: center; margin-bottom: 24px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal input {
  width: 100%; padding: 15px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: var(--font);
  font-weight: 500;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--light); color: var(--dark);
}
.modal input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.modal input::placeholder { color: var(--gray-400); font-weight: 400; }
.modal .modal-disclaimer {
  font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; margin-bottom: 0;
}
.modal .modal-disclaimer a { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════ */
.legal-page { padding: 160px 0 100px; }
.legal-container { max-width: 700px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 500; color: var(--gray-400);
  margin-bottom: 32px; transition: color 0.2s;
}
.legal-back svg { width: 16px; height: 16px; }
.legal-back:hover { color: var(--dark); }
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.legal-page .legal-date {
  color: var(--gray-400); font-size: 0.88rem;
  margin-bottom: 48px; font-weight: 500;
}
.legal-page h2 {
  font-size: 1.25rem; margin: 44px 0 12px;
  letter-spacing: -0.02em;
}
.legal-page p { margin-bottom: 16px; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { color: var(--gray-500); margin-bottom: 8px; font-size: 1.05rem; }
.legal-page a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid, .steps-grid, .supply-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .ai-content { max-width: 100%; }
  .steps-grid .step-card::after { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .features-grid, .steps-grid, .supply-grid { grid-template-columns: 1fr; }
  .showcase-phone { width: 240px; }
  .showcase-caption span { font-size: 1.15rem; }
  .showcase-caption p { font-size: 0.88rem; }
  /* Mobile: vertical stack instead of horizontal scroll */
  .showcase-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 60px;
    padding: 40px 0 80px;
  }
  .showcase-panel {
    width: 100%;
    height: auto;
    padding: 0 24px;
  }
  .showcase-panel:first-child {
    width: 100%;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 140px 0 80px; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.2rem); }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 300px; }
  .iphone-scene { margin-top: 40px; }
  .iphone-screen-labels { gap: 16px; }
  .screen-label { font-size: 0.75rem; padding: 5px 12px; }
  .features, .supply-types, .how-it-works, .ai-section, .cta { padding: 100px 0; }
  .section-header { margin-bottom: 48px; }
  .cta-box { padding: 56px 24px; border-radius: 24px; }
  .modal { padding: 36px 24px; border-radius: 24px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 28px; }
  .ai-chat-window { max-width: 100%; }
}
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .iphone-scene { margin-top: 28px; }
  .iphone-screen-labels { gap: 10px; }
  .screen-label { font-size: 0.7rem; padding: 4px 10px; }
}
