/* ============================================================
   WatchTower AI — Main Styles & Design System
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  --bg-primary:    #090915;
  --bg-surface:    #0f0f1e;
  --bg-card:       #13132a;
  --bg-card-hover: #17173a;
  --border:        rgba(108, 43, 217, 0.2);
  --border-hover:  rgba(108, 43, 217, 0.5);
  --purple:        #6C2BD9;
  --purple-light:  #8B4CF7;
  --blue:          #2E8BFF;
  --blue-light:    #5CA8FF;
  --green:         #00E676;
  --green-dark:    #00C060;
  --red:           #FF4444;
  --text-primary:  #F0F0FF;
  --text-secondary:#8888AA;
  --text-muted:    #555570;
  --gradient:      linear-gradient(135deg, #6C2BD9, #2E8BFF);
  --gradient-rev:  linear-gradient(135deg, #2E8BFF, #6C2BD9);
  --gradient-glow: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,43,217,0.25) 0%, transparent 70%);
  --shadow-card:   0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(108,43,217,0.3);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --radius-full:   9999px;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-heading:  'Space Grotesk', system-ui, sans-serif;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h:      72px;
}

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

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

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

/* ---------- Typography Scale ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); line-height: 1.7; }

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul { list-style: none; }

img, svg { display: block; max-width: 100%; }

button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--narrow {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(5rem, 10vw, 8rem);
  position: relative;
}

.section--alt { background-color: var(--bg-surface); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(108, 43, 217, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  font-size: 1.1rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  background: rgba(255,255,255,0.08);
}

.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,43,217,0.45);
}

.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(108,43,217,0.65);
  transform: translateY(-1px);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(46, 139, 255, 0.07);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Spinner inside button */
.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.is-loading .btn-text { display: none; }
.btn.is-loading .spinner { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

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

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge--green {
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.badge--purple {
  background: rgba(108, 43, 217, 0.15);
  color: var(--purple-light);
  border: 1px solid var(--border);
}

.badge--popular {
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Green dot indicator ---------- */
.dot-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50% { box-shadow: 0 0 12px var(--green), 0 0 20px rgba(0,230,118,0.3); }
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition-slow), box-shadow var(--transition-slow), backdrop-filter var(--transition-slow);
}

.site-header.scrolled {
  background: rgba(9, 9, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img,
.header-logo svg {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  gap: 5px;
  padding: 10px;
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.hamburger:hover {
  background: rgba(108,43,217,0.1);
  border-color: var(--border-hover);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 100vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav .nav-link {
  display: block;
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 1.5rem;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9,9,21,0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,43,217,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,43,217,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 80%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(108,43,217,0.2) 0%, rgba(46,139,255,0.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { max-width: 580px; }

.hero-badge {
  margin-bottom: 1.75rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #F0F0FF 0%, #C4B5FD 50%, #7DD3FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-trust-avatars {
  display: flex;
  margin-right: 0.25rem;
}

.hero-trust-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.hero-trust-avatar:first-child { margin-left: 0; }

.avatar-a { background: linear-gradient(135deg,#6C2BD9,#2E8BFF); }
.avatar-b { background: linear-gradient(135deg,#2E8BFF,#00E676); }
.avatar-c { background: linear-gradient(135deg,#00E676,#6C2BD9); }
.avatar-d { background: linear-gradient(135deg,#FF6B6B,#6C2BD9); }

.hero-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ---------- SOCIAL PROOF BAR ---------- */
.social-proof {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

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

.social-proof-headline {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.counter-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: all var(--transition);
}

.logo-pill:hover {
  color: var(--text-secondary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ---------- HOW IT WORKS ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-connector {
  position: absolute;
  top: 3.25rem;
  left: calc(33.33% - 1rem);
  right: calc(33.33% - 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--blue) 100%);
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

.steps-connector::before,
.steps-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.steps-connector::before { left: 0; background: var(--purple); }
.steps-connector::after  { right: 0; }

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.25rem 1.75rem;
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(108,43,217,0.4);
  position: relative;
  z-index: 1;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.step-card h3 { margin-bottom: 0.5rem; }

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
}

.step-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
}

/* ---------- CLAUDIA SECTION ---------- */
.claudia-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.claudia-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.claudia-avatar {
  position: relative;
  width: 160px;
  height: 160px;
}

.claudia-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 4px;
  animation: rotate-ring 4s linear infinite;
}

.claudia-avatar-ring::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-primary);
}

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

.claudia-avatar-face {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card), #1a1a3e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  z-index: 1;
}

.claudia-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.claudia-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.claudia-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
}

.capabilities-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.capability-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.capability-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.capability-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.capability-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- WHATSAPP DEMO SECTION ---------- */
.demo-section {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(108,43,217,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- INTEGRATIONS ---------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: default;
}

.integration-icon {
  font-size: 2rem;
  line-height: 1;
}

.integration-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

.integration-card.more {
  border-style: dashed;
  color: var(--text-muted);
}

.integration-card.more .integration-name { color: var(--text-muted); }

/* ---------- USE CASES ---------- */
.use-case-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.use-case-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.use-case-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(108,43,217,0.15);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.use-case-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.use-case-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.use-case-mini-chat {
  background: #111B21;
  border-radius: var(--radius-md);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.78rem;
}

.mini-msg {
  max-width: 90%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  line-height: 1.45;
}

.mini-msg--user {
  background: #005C4B;
  color: #E9EDE6;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.mini-msg--bot {
  background: #202C33;
  color: #E9EDE6;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

/* ---------- SECURITY ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}

.security-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(108,43,217,0.35);
}

.security-item h4 { margin-bottom: 0.3rem; }

/* ---------- WAITLIST / CTA FINAL ---------- */
.cta-final {
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(108,43,217,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final h2 { margin-bottom: 1rem; }
.cta-final > .container > p { margin-bottom: 2.5rem; }

.waitlist-form-wrap {
  max-width: 480px;
  margin-inline: auto;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
}

.waitlist-input-wrap {
  flex: 1;
  position: relative;
}

.waitlist-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.875rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.waitlist-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108,43,217,0.15);
}

.waitlist-input::placeholder { color: var(--text-muted); }

.waitlist-error {
  display: none;
  font-size: 0.8rem;
  color: var(--red);
  padding: 0.4rem 1rem 0;
  text-align: left;
}

.waitlist-error.visible { display: block; }

.waitlist-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  background: rgba(0,230,118,0.07);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius-lg);
}

.waitlist-success.visible { display: flex; }

.success-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,230,118,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green);
}

.waitlist-success h3 {
  color: var(--green);
  font-size: 1.2rem;
}

.waitlist-already {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.social-proof-bottom {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

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

.footer-brand { max-width: 280px; }

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo img,
.footer-logo svg {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal a:hover { color: var(--text-secondary); }

/* ---------- Intersection Observer visible state ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.54s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.61s; }

/* ---------- Pricing page ---------- */
.pricing-hero {
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  margin-top: 2rem;
}

.toggle-option {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.toggle-option.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108,43,217,0.4);
}

.toggle-save {
  font-size: 0.7rem;
  background: rgba(0,230,118,0.15);
  color: var(--green);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
  font-weight: 700;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.25rem 2rem;
  position: relative;
  overflow: visible;
}

.pricing-card--popular {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), 0 8px 40px rgba(108,43,217,0.3);
}

.pricing-card--popular::before {
  opacity: 1;
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.pricing-plan {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1;
  padding-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  transition: all var(--transition-slow);
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
}

.price-custom {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-feature .check {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pricing-feature .cross {
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pricing-cta { width: 100%; }

/* Comparison table */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--bg-card);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.comparison-table thead th:not(:first-child) {
  text-align: center;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}

.comparison-table .feature-name {
  color: var(--text-secondary);
}

.comparison-table .check-green { color: var(--green); font-size: 1.1rem; }
.comparison-table .check-muted { color: var(--text-muted); font-size: 1.1rem; }

.comparison-table th.popular-col {
  background: rgba(108,43,217,0.15);
  color: var(--purple-light);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
  gap: 1rem;
  transition: background var(--transition);
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  user-select: none;
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--purple-light);
  flex-shrink: 0;
  transition: transform var(--transition);
  font-weight: 300;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 { margin-bottom: 0.5rem; }

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-content {
  padding-block: 4rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-content ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .footer-grid .footer-legal-col {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content { max-width: 100%; }

  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }

  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-connector { display: none; }
  .claudia-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .security-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .waitlist-form { flex-direction: column; }
  .btn--waitlist-submit { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .comparison-table th, .comparison-table td { padding: 0.75rem; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Utility classes ---------- */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Layout helpers (replaces inline styles) ---------- */
.flex-center {
  display: flex;
  justify-content: center;
}

.section-label--centered {
  margin-inline: auto;
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.intro-para {
  margin-bottom: 2rem;
}

/* Demo phone container */
.demo-phone-wrap {
  display: flex;
  justify-content: center;
}

.demo-phone-inner {
  width: 340px;
}

.demo-phone-inner .wa-messages {
  min-height: 420px;
  max-height: 420px;
}

/* Waitlist / CTA text */
.cta-body-text {
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.cta-body-text--narrow {
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* Hidden (JS will show) */
.js-hidden {
  display: none;
}

/* Pricing hero inner */
.pricing-hero-inner {
  position: relative;
  z-index: 1;
}

.pricing-hero-subtitle {
  font-size: 1.15rem;
  max-width: 520px;
  margin-inline: auto;
}

.pricing-hero-title {
  margin-bottom: 0.75rem;
}

.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
}

/* Comparison table first col */
.comparison-first-col {
  width: 40%;
}

/* Claudia intro para */
.claudia-intro-para {
  margin-bottom: 2rem;
}

/* CTA section label */
.cta-section-label {
  margin-inline: auto;
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
