/* ============================================================
   TEXTPILOT AI MESSAGING — WEBSITE STYLES
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --indigo:       #6366f1;
  --indigo-dark:  #4f46e5;
  --violet:       #8b5cf6;
  --cyan:         #06b6d4;
  --emerald:      #10b981;

  --dark-900: #05080f;
  --dark-800: #0a0f1e;
  --dark-700: #111827;
  --dark-600: #1f2937;
  --dark-500: #374151;

  --light-50:  #f8fafc;
  --light-100: #f1f5f9;
  --light-200: #e2e8f0;
  --light-300: #cbd5e1;

  --text-dark:    #0f172a;
  --text-body:    #334155;
  --text-muted:   #64748b;
  --text-faint:   #94a3b8;
  --text-white:   #f8fafc;

  --gradient-brand:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #06b6d4 100%);
  --gradient-dark:   linear-gradient(135deg, #05080f 0%, #0e0620 100%);
  --gradient-subtle: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.1),  0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.2),  0 8px 24px rgba(0,0,0,0.1);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --transition-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base:   250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   400ms cubic-bezier(0.4,0,0.2,1);

  --section-py: 96px;
  --nav-h: 70px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
p  { color: var(--text-body); }

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

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875em;
  background: rgba(99,102,241,0.12);
  color: var(--indigo);
  border-radius: 4px;
  padding: 0.15em 0.4em;
}

/* ── Section Helpers ────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-header p { font-size: 1.1rem; color: var(--text-muted); margin-top: 14px; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-bottom: 16px;
}
.section-label.light {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  padding: 11px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99,102,241,0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.btn-outline-dark {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition-base);
}
.btn-outline-dark:hover { background: var(--indigo); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--dark-700);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); }

.btn-lg { padding: 14px 30px; font-size: 1rem; gap: 10px; }

/* ── Phone Frame Component ──────────────────────────────────── */
.phone-frame {
  position: relative;
  width: 230px;
  background: #16213e;
  border-radius: 38px;
  border: 7px solid #1e2d4e;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.08),
    0 32px 64px rgba(0,0,0,0.55),
    0 0 0 1px rgba(99,102,241,0.25);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #16213e;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}

.phone-screen {
  padding-top: 0;
  height: 100%;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ── Scroll Animation Base ──────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(5, 8, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.navbar.scrolled {
  background: rgba(5, 8, 15, 0.92);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo img { border-radius: 8px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-links li a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.btn-coffee {
  display: block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24 !important;
  background: rgba(251,191,36,0.12) !important;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast);
}
.btn-coffee:hover { background: rgba(251,191,36,0.22) !important; }

.nav-cta {
  background: var(--gradient-brand) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 7px 18px !important;
  box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(99,102,241,0.5) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--indigo);  top: -120px; left: -100px; animation-delay: 0s;   }
.orb-2 { width: 400px; height: 400px; background: var(--violet);  top: 30%;   right: -80px; animation-delay: -3s;  }
.orb-3 { width: 300px; height: 300px; background: var(--cyan);    bottom: 5%; left: 30%;    animation-delay: -5s;  }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(15px, -20px) scale(1.04); }
  66%       { transform: translate(-10px, 12px) scale(0.97); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16,185,129,0.8);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 8px;
}
.stat-item { display: flex; flex-direction: column; text-align: center; padding: 0 18px; }
.stat-item strong { font-size: 1.2rem; font-weight: 800; color: #fff; }
.stat-item span   { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); margin-top: 1px; }
.stat-divider     { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

/* Phone frames in hero */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.phones-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 540px;
  margin: 0 auto;
}

.phone-front, .phone-back { position: absolute; }

.phone-back {
  width: 210px;
  height: 440px;
  top: 60px;
  right: 0;
  transform: rotate(6deg) translateX(20px);
  opacity: 0.8;
  z-index: 1;
}
.phone-front {
  width: 230px;
  height: 480px;
  top: 30px;
  left: 10px;
  z-index: 2;
  animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.floating-badge {
  position: absolute;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 5;
  animation: badgeFloat 6s ease-in-out infinite;
}
.fb-1 { top: 10px;  right: 10px;  animation-delay: 0s;    }
.fb-2 { top: 160px; left: -20px;  animation-delay: -2s;   }
.fb-3 { bottom: 60px; right: -10px; animation-delay: -4s; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-decoration: none;
}
.scroll-arrow {
  width: 26px; height: 26px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
  margin: 0 auto;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  padding: var(--section-py) 0;
  background: var(--dark-800);
}
.video-section .section-header h2,
.video-section .section-header p { color: rgba(255,255,255,0.9); }
.video-section .section-header p  { color: rgba(255,255,255,0.55); }

.video-wrapper {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07), var(--shadow-xl);
  background: #000;
  aspect-ratio: 16/9;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: var(--section-py) 0;
  background: var(--light-50);
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--light-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,0.25);
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.feature-card p   { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   AI SECTION
   ============================================================ */
.ai-section {
  padding: var(--section-py) 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 600px at 80% 50%, rgba(99,102,241,0.18) 0%, transparent 70%),
    radial-gradient(circle 400px at 10% 80%, rgba(139,92,246,0.12) 0%, transparent 60%);
}

.ai-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-content h2 { color: #fff; margin-bottom: 16px; }
.ai-content > p { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-bottom: 36px; }
.ai-content a.link-light { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.ai-features-list { margin-bottom: 40px; }
.ai-features-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ai-features-list li:last-child { border-bottom: none; }
.ai-feat-icon {
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-features-list li div { display: flex; flex-direction: column; gap: 3px; }
.ai-features-list li strong { color: rgba(255,255,255,0.9); font-size: 0.92rem; }
.ai-features-list li span  { color: rgba(255,255,255,0.5); font-size: 0.84rem; line-height: 1.5; }

.ai-setup-steps { display: flex; flex-direction: column; gap: 12px; }
.setup-step {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}
.setup-step code { background: rgba(99,102,241,0.2); color: rgba(255,255,255,0.85); }
.setup-step a { color: var(--cyan); }
.step-num {
  width: 28px; height: 28px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ai-visual { position: relative; }
.ai-phone-wrap { position: relative; }
.ai-phone {
  width: 240px;
  height: 500px;
}
.ai-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

/* ============================================================
   WEB SMS SECTION
   ============================================================ */
.websms-section {
  padding: var(--section-py) 0;
  background: #fff;
}
.websms-section .section-header { max-width: 760px; }
.websms-section .section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

.websms-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.websms-feat {
  background: var(--light-50);
  border: 1px solid var(--light-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.websms-feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.websms-icon { font-size: 2rem; margin-bottom: 14px; }
.websms-feat h3 { margin-bottom: 10px; font-size: 1rem; }
.websms-feat p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.websms-feat code { font-size: 0.8em; }

.websms-arch {
  background: var(--light-50);
  border: 1px solid var(--light-200);
  border-radius: var(--radius-xl);
  padding: 48px;
}
.websms-arch > h3 { text-align: center; margin-bottom: 36px; color: var(--text-dark); }

.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--light-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  min-width: 180px;
  box-shadow: var(--shadow-sm);
}
.arch-node.arch-node-primary {
  background: var(--indigo);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 28px rgba(99,102,241,0.35);
}
.arch-node.arch-node-primary strong { color: #fff; }
.arch-node.arch-node-primary span   { color: rgba(255,255,255,0.7); }
.arch-icon { font-size: 2rem; margin-bottom: 4px; }
.arch-node strong { font-size: 0.95rem; color: var(--text-dark); }
.arch-node span   { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.arch-arrow { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }

.websms-quickstart { margin-top: 0; }
.websms-quickstart h4 { color: var(--text-dark); margin-bottom: 16px; font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; }

.code-block {
  position: relative;
  background: var(--dark-800);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  overflow: hidden;
}
.code-block pre { overflow-x: auto; }
.code-block code {
  background: none;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.7;
  padding: 0;
  border-radius: 0;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.copy-btn:hover  { background: rgba(255,255,255,0.18); color: #fff; }
.copy-btn.copied { background: rgba(16,185,129,0.25); border-color: rgba(16,185,129,0.4); color: var(--emerald); }

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.screenshots-section {
  padding: var(--section-py) 0;
  background: var(--light-50);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: #fff;
  border: 1px solid var(--light-200);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.carousel-btn:disabled:hover { background: #fff; color: var(--text-dark); border-color: var(--light-200); }

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: hidden;
  flex: 1;
  scroll-behavior: smooth;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ss-phone {
  width: 180px;
  height: 370px;
  background: var(--dark-700);
  border-radius: 30px;
  border: 5px solid var(--dark-600);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.ss-phone:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.2);
}
.ss-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.ss-caption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--light-300);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}
.carousel-dot.active {
  background: var(--indigo);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   PREMIUM / MESSENGER+
   ============================================================ */
.premium-section {
  padding: var(--section-py) 0;
  background: var(--dark-700);
}

.premium-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
}

.premium-content h2 { color: #fff; margin-bottom: 16px; }
.premium-content > p { color: rgba(255,255,255,0.55); font-size: 1.05rem; margin-bottom: 36px; }

.premium-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 40px; }
.prem-item {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.premium-visual { display: flex; justify-content: center; }
.prem-phone {
  width: 235px;
  height: 490px;
  animation: phoneFloat 5s ease-in-out infinite;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download-section {
  padding: var(--section-py) 0;
  background: var(--gradient-brand);
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.download-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.download-icon { margin: 0 auto 28px; border-radius: var(--radius-lg); box-shadow: 0 12px 36px rgba(0,0,0,0.25); }
.download-inner h2 { color: #fff; margin-bottom: 14px; }
.download-inner > p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 40px; }

.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

.download-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}
.download-note a { color: rgba(255,255,255,0.8); text-decoration: underline; text-underline-offset: 3px; }
.download-note a:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-900);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 12px 0 20px;
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footer-logo img { border-radius: 6px; flex-shrink: 0; }

.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: #fff; }

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ============================================================
   SHARED PAGE STYLES (privacy-policy, faq)
   ============================================================ */
.page-hero {
  background: var(--gradient-dark);
  padding: calc(var(--nav-h) + 60px) 0 70px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.5); font-size: 1rem; }

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-content h2 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-200);
}
.page-content h3 { font-size: 1.05rem; color: var(--text-dark); margin-top: 24px; margin-bottom: 10px; }
.page-content p  { color: var(--text-body); margin-bottom: 16px; line-height: 1.75; font-size: 0.97rem; }
.page-content ul { margin: 0 0 16px 20px; list-style: disc; }
.page-content ul li { color: var(--text-body); margin-bottom: 6px; font-size: 0.97rem; line-height: 1.65; }
.page-content a  { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.page-content strong { color: var(--text-dark); font-weight: 600; }

.page-content .highlight-box {
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.page-content .highlight-box p { margin: 0; color: var(--text-dark); font-weight: 500; }

/* FAQ accordion */
.faq-group { margin-bottom: 48px; }
.faq-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-200);
}
.faq-item {
  border: 1px solid var(--light-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--light-50); }
.faq-question[aria-expanded="true"] { background: rgba(99,102,241,0.04); }
.faq-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 800px; }
.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
}
.faq-answer-inner p  { margin-bottom: 10px; }
.faq-answer-inner ul { margin-left: 18px; list-style: disc; margin-bottom: 10px; }
.faq-answer-inner li { margin-bottom: 5px; }
.faq-answer-inner a  { color: var(--indigo); }
.faq-answer-inner code { font-size: 0.8em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --section-py: 72px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .websms-features-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-inner { grid-template-columns: 1fr; }
  .ai-visual { display: none; }
  .premium-inner { grid-template-columns: 1fr; }
  .premium-visual { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phones-wrapper { height: 360px; max-width: 320px; }
  .phone-front { width: 180px; height: 370px; }
  .phone-back  { width: 160px; height: 330px; top: 30px; right: -10px; }
  .hero-description { max-width: 100%; }
  .hero-content { text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(5,8,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 10px 14px; }
  .nav-toggle { display: flex; }

  .arch-diagram { flex-direction: column; gap: 12px; }
  .arch-arrow { transform: rotate(90deg); }
  .websms-arch { padding: 28px 20px; }
  .premium-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  :root { --section-py: 56px; }
  .features-grid { grid-template-columns: 1fr; }
  .websms-features-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
  .download-buttons { flex-direction: column; align-items: center; }
  .download-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stat-divider { display: none; }
  .hero-stats { gap: 16px; }
}
