/* ═══════════════════════════════════════════════════════════════
   Bujji AI — World-Class Landing Page Design System
   Dark-first · Glassmorphism · Cinematic Motion
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens (Dark Default) ─── */
:root {
  --bg-primary: #09090B;
  --bg-surface: #18181B;
  --bg-elevated: #27272A;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --accent-violet: #7C3AED;
  --accent-cyan: #06B6D4;
  --accent-green: #22C55E;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --gradient-primary: linear-gradient(135deg, #7C3AED, #06B6D4);
  --gradient-glow: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15), transparent 70%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 100px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --btn-height: 48px;
  --btn-height-lg: 56px;
  --btn-font-weight: 600;
  --btn-radius: var(--radius-md);
  --btn-primary-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  --btn-primary-shadow-hover: 0 8px 24px rgba(124, 58, 237, 0.4);
  --btn-primary-shadow-active: 0 2px 8px rgba(124, 58, 237, 0.3);
  --orb-1: rgba(124, 58, 237, 0.18);
  --orb-2: rgba(6, 182, 212, 0.14);
  --orb-3: rgba(34, 197, 94, 0.10);
  /* Compatibility aliases used by standalone legal/payment pages. */
  --bg-card: var(--bg-glass);
  --bg-dark: var(--bg-primary);
  --glass-shadow: var(--shadow-lg);
  --accent-blue: #3B82F6;
  --accent-red: #EF4444;
  --primary: var(--accent-violet);
}

/* ─── Light Theme ─── */
[data-theme="light"] {
  --bg-primary: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F4F4F5;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glass-hover: rgba(0, 0, 0, 0.12);
  --text-primary: #09090B;
  --text-secondary: #52525B;
  --text-muted: #A1A1AA;
  --accent-cyan: #0891B2;
  --accent-green: #16A34A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.08);
  --orb-1: rgba(124, 58, 237, 0.08);
  --orb-2: rgba(6, 182, 212, 0.06);
  --orb-3: rgba(34, 197, 94, 0.05);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
[hidden] { display: none !important; }

main { display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--accent-violet);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 2px;
}

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Typography ─── */
h1, h2, h3 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--text-secondary); line-height: 1.7; }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  margin-bottom: 16px;
}

.section-title { margin-bottom: 16px; }

.section-subtitle {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Ambient Background Orbs ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 50vw; height: 50vw;
  background: var(--orb-1);
  top: -10%; left: -15%;
  animation: float1 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 40vw; height: 40vw;
  background: var(--orb-2);
  bottom: -10%; right: -10%;
  animation: float2 25s ease-in-out infinite alternate;
}

.orb-3 {
  width: 35vw; height: 35vw;
  background: var(--orb-3);
  top: 40%; left: 50%;
  transform: translateX(-50%);
  animation: float3 22s ease-in-out infinite alternate;
}

@keyframes float1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes float2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(0.9); }
}
@keyframes float3 {
  0% { transform: translate(-50%, 0) scale(0.95); }
  100% { transform: translate(-50%, -40px) scale(1.05); }
}

/* ─── Glass Cards ─── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s var(--ease-smooth);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font-weight);
  font-size: 15px;
  line-height: 1;
  transition: all 0.25s var(--ease-spring);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-spring);
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35); }
  50% { box-shadow: 0 4px 30px rgba(124, 58, 237, 0.5); }
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--btn-primary-shadow-active);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass-hover);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-violet);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-lg {
  padding: 18px 36px;
  min-height: var(--btn-height-lg);
  font-size: 17px;
  border-radius: 14px;
  letter-spacing: 0.01em;
}

.btn-sm {
  padding: 8px 16px;
  min-height: 36px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.btn-icon:active {
  transform: scale(0.92);
}

.btn-icon:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 2px;
}

/* ─── Header ─── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-glass);
}

[data-theme="light"] #site-header.scrolled {
  background: rgba(250, 250, 250, 0.85);
}

.header-inner { padding: 16px 0; }

.header-inner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.logo img { border-radius: 8px; }
.logo span { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

#main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: visible;
}

#main-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-spring);
}

#main-nav a:hover { color: var(--text-primary); }
#main-nav a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  min-height: 36px;
  border-radius: var(--radius-md);
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap !important;
  width: auto !important;
  min-width: max-content;
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}
.nav-cta:active {
  transform: scale(0.97);
}
.nav-cta::after { display: none !important; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover { color: var(--text-primary); background: var(--bg-glass-hover); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  z-index: 1001;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ─── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 { max-width: 800px; margin: 0 auto 20px; }

.hero > .container > p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item svg { color: var(--accent-green); }

.hero-visual {
  margin-top: 80px;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-mascot-img {
  max-width: 280px;
  filter: drop-shadow(0 20px 60px rgba(124, 58, 237, 0.25));
  animation: heroFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ─── Trust / Provider Bar ─── */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  text-align: center;
}

.trust-bar-label {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  margin-bottom: 20px;
}

.ai-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.provider-badge:hover {
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

/* ─── Enterprise Brain ─── */
.brain-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.brain-bg-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.brain-showcase { margin-top: 48px; }

.brain-visual-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.brain-flow-card {
  flex: 1;
  max-width: 280px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s var(--ease-smooth);
}

.brain-flow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-glass-hover);
}

.brain-flow-card.highlight {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.brain-flow-icon { font-size: 32px; margin-bottom: 12px; }

.brain-flow-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.brain-flow-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.brain-flow-connector {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 24px;
  flex-shrink: 0;
}

/* Brain Examples */
.brain-examples { margin-top: 48px; }
.brain-examples h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.brain-example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brain-example-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.4s var(--ease-smooth);
}

.brain-example-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.brain-example-role {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.brain-example-chat { display: flex; flex-direction: column; gap: 10px; }

.msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 90%;
}

.msg.user {
  background: var(--accent-violet);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg.bot {
  background: var(--bg-elevated);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

[data-theme="light"] .msg.bot { background: #F0F0F2; }

.brain-cta {
  text-align: center;
  margin-top: 48px;
}

.brain-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ─── Features Grid ─── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card { position: relative; }

.feature-card h3 { margin: 16px 0 8px; }
.feature-card p { font-size: 15px; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring);
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }

.feature-icon.blue { background: rgba(124, 58, 237, 0.12); color: var(--accent-violet); }
.feature-icon.purple { background: rgba(168, 85, 247, 0.12); color: #A855F7; }
.feature-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--accent-green); }
.feature-icon.yellow { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }
.feature-icon.red { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }

/* ─── AI Section ─── */
.ai-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.ai-bg-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── Pet Section ─── */
.pet-showcase {
  display: flex;
  gap: 3rem;
  align-items: start;
  position: relative;
}

.pet-visual {
  position: sticky;
  top: 140px;
  height: fit-content;
  flex-shrink: 0;
  width: 260px;
  text-align: center;
  z-index: 5;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pet-mascot-img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 16px 48px rgba(124, 58, 237, 0.2));
  animation: heroFloat 6s ease-in-out infinite;
}

.pet-groups {
  flex-grow: 1;
  min-width: 0;
}

.pet-group-block {
  margin-bottom: 28px;
  scroll-margin-top: 140px;
  opacity: 0.4;
  transition: all 0.4s ease;
}

.pet-group-block.active-scroll-group {
  opacity: 1;
}

.pet-group-block:not(.active-scroll-group) .pet-chip {
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.pet-group-block.active-scroll-group .pet-chip {
  opacity: 1;
}

.pet-group-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

.pet-group-block.active-scroll-group .pet-group-title {
  transform: scale(1.02);
}

.pet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all 0.4s ease;
}

.pet-chip:hover {
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

/* ─── Security ─── */
.security-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

/* ─── Testimonials ─── */
.testimonial-carousel {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--ease-spring);
}

.testimonial-card {
  min-width: 100%;
  padding: 32px;
  flex-shrink: 0;
}

.testimonial-stars {
  color: var(--accent-amber);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
}

.testimonial-author span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
}

.carousel-btn:active {
  transform: scale(0.92);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 2px;
}

#carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 5px;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.dot:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 2px;
}

.dot:hover {
  background: var(--text-secondary);
}

.dot.active {
  width: 24px;
  background: var(--gradient-primary);
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: var(--border-glass-hover); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
  background: var(--bg-glass-hover);
}

.faq-question:active {
  transform: scale(0.99);
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: -2px;
}

.faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── Pricing ─── */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.toggle-label {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.toggle-label.active { color: var(--text-primary); }

.toggle-save {
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
}

.toggle-switch {
  width: 46px; height: 24px;
  border-radius: 12px;
  background: var(--bg-elevated);
  position: relative;
  border: 1px solid var(--border-glass);
  transition: background 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.toggle-switch:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 3px;
}

.toggle-switch:active .toggle-knob {
  transform: scale(0.92);
}

.toggle-switch[aria-pressed="true"]:active .toggle-knob {
  transform: translateX(22px) scale(0.92);
}

.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 9px;
  background: var(--gradient-primary);
  transition: transform 0.3s var(--ease-spring);
}

.toggle-switch[aria-pressed="true"] .toggle-knob {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  text-align: center;
  padding: 34px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card .plan-feature-groups {
  flex: 1;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card.featured {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.12);
  transform: scale(1.02);
}

.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0 4px;
  line-height: 1;
}

.currency {
  font-size: 22px;
  font-weight: 500;
  vertical-align: super;
}

.period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-feature-groups {
  margin: 26px 0;
  text-align: left;
}

.plan-feature-section {
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  padding-top: 16px;
  margin-top: 16px;
}

.plan-feature-section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.plan-feature-section h4 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.plan-feature-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px 8px;
  align-items: start;
  padding: 5px 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.plan-feature-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  background: #22c55e;
}

.plan-feature-icon::before { content: "✓"; }

.plan-feature-row.is-off {
  color: var(--text-muted);
}

.plan-feature-row.is-off .plan-feature-icon {
  background: rgba(100, 116, 139, 0.34);
}

.plan-feature-row.is-off .plan-feature-icon::before { content: "×"; }

.pricing-card.featured .plan-feature-icon {
  background: var(--gradient-primary);
}

.pricing-card.featured .plan-feature-row.is-off .plan-feature-icon {
  background: rgba(100, 116, 139, 0.34);
}

.plan-feature-name {
  min-width: 0;
  font-weight: 600;
}

.plan-feature-value {
  grid-column: 2;
  justify-self: start;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.plan-feature-row.is-off .plan-feature-value {
  color: var(--text-muted);
}

.pricing-card .btn { width: 100%; justify-content: center; margin-top: 8px; }

.pricing-comparison {
  margin-top: 28px;
  padding: 28px;
  overflow: hidden;
}

.comparison-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.comparison-heading h3 {
  font-size: 28px;
  margin: 10px 0 0;
}

.comparison-heading p {
  max-width: 340px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.comparison-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.comparison-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  white-space: nowrap;
}

.comparison-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 250, 252, 0.94);
  color: var(--text-primary);
  font-weight: 800;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table th:first-child {
  z-index: 3;
  background: rgba(248, 250, 252, 0.98);
}

.comparison-table tbody tr:nth-child(even) td:not(:first-child) {
  background: rgba(248, 250, 252, 0.48);
}

.comparison-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.06);
}

.comparison-table .yes,
.comparison-table .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.comparison-table .yes {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.comparison-table .no {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

/* ─── CTA / Newsletter ─── */
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder { color: var(--text-muted); }

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.newsletter-form .btn {
  min-height: 52px;
  padding: 14px 28px;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-link {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
  text-align: left;
}

.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-social a {
  font-size: 20px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-social a:hover { color: var(--text-primary); }

/* ─── Scroll Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .features,
  .ai-features { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .brain-example-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  #main-nav { gap: 12px; }
  #main-nav a { font-size: 12px; }
  .nav-cta { padding: 8px 18px !important; font-size: 12px !important; }
  .theme-toggle { width: 30px; height: 30px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .brain-section, .ai-section { padding: 80px 0; }

  /* Mobile Nav */
  .nav-toggle { display: flex; }

  #main-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }

  [data-theme="light"] #main-nav {
    background: rgba(250, 250, 250, 0.95);
  }

  #main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  #main-nav a { font-size: 20px; }

  /* Hero */
  .hero { padding: 120px 0 60px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 320px; justify-content: center; padding: 18px 28px; }
  .hero-trust { gap: 20px; }
  .hero-mascot-img { max-width: 200px; }
  .hero-visual { margin-top: 48px; }

  /* Brain */
  .brain-visual-flow { flex-direction: column; }
  .brain-flow-card { max-width: 100%; }
  .brain-flow-connector { transform: rotate(90deg); }
  .brain-example-grid { grid-template-columns: 1fr; }

  /* Features */
  .features,
  .ai-features { grid-template-columns: 1fr; }

  /* Pet */
  .pet-showcase { flex-direction: column; align-items: center; gap: 40px; }
  .pet-visual { position: static; width: 200px; }
  .pet-group-block { opacity: 1; }
  .pet-group-block:not(.active-scroll-group) .pet-chip { opacity: 1; }
  .pet-group-block.active-scroll-group .pet-group-title { transform: none; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .pricing-comparison { padding: 18px; }
  .comparison-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .comparison-heading h3 { font-size: 24px; }
  .comparison-heading p { max-width: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Testimonials */
  .testimonial-card { padding: 24px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .hero { padding: 100px 0 40px; }
  .hero-mascot-img { max-width: 160px; }
  .hero-visual::before { width: 250px; height: 250px; }
  .glass-card { padding: 24px; }
  .pet-chip { font-size: 12px; padding: 5px 12px; }
  .price { font-size: 40px; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orb { animation: none !important; }
}

/* ═══════════════ BUJJI 3D CAROUSEL ═══════════════ */
.pet-carousel-container {
  width: 100%;
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  background-color: var(--accent-violet);
  transition: background-color 650ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  border-radius: 32px;
}

.pet-carousel-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.pet-carousel-bg-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  font-family: 'Anton', sans-serif;
  font-size: clamp(90px, 25vw, 380px);
  font-weight: 900;
  color: #fff;
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: normal;
  width: 100%;
  text-align: center;
  word-break: keep-all;
}

.pet-brand-label {
  position: absolute;
  top: 24px;
  left: 32px;
  z-index: 60;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
  letter-spacing: 0.18em;
  font-family: 'Inter', sans-serif;
}
@media (max-width: 640px) {
  .pet-brand-label { left: 16px; }
}

.pet-carousel-item {
  position: absolute;
  aspect-ratio: 0.6 / 1;
  transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1), 
              filter 650ms cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 650ms cubic-bezier(0.4, 0, 0.2, 1), 
              left 650ms cubic-bezier(0.4, 0, 0.2, 1),
              bottom 650ms cubic-bezier(0.4, 0, 0.2, 1),
              height 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity, left, bottom, height;
}

.pet-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Roles */
.role-center {
  transform: translateX(-50%) scale(1.4);
  filter: blur(0);
  opacity: 1;
  z-index: 20;
  left: 50%;
  height: 85%;
  bottom: 0;
}

.role-left {
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
  z-index: 10;
  left: 30%;
  height: 28%;
  bottom: 12%;
}

.role-right {
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
  z-index: 10;
  left: 70%;
  height: 28%;
  bottom: 12%;
}

.role-back {
  transform: translateX(-50%) scale(1);
  filter: blur(4px);
  opacity: 1;
  z-index: 5;
  left: 50%;
  height: 22%;
  bottom: 12%;
}

@media (max-width: 640px) {
  .role-center {
    transform: translateX(-50%) scale(1.25);
    height: 60%;
    bottom: 22%;
  }
  .role-left {
    left: 20%;
    height: 16%;
    bottom: 32%;
  }
  .role-right {
    left: 80%;
    height: 16%;
    bottom: 32%;
  }
  .role-back {
    height: 13%;
    bottom: 32%;
  }
}

.pet-carousel-content {
  position: absolute;
  bottom: 80px;
  left: 96px;
  z-index: 60;
  max-width: 320px;
  font-family: 'Inter', sans-serif;
}
@media (max-width: 640px) {
  .pet-carousel-content {
    bottom: 24px;
    left: 16px;
  }
}
.pet-carousel-content h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.pet-carousel-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .pet-carousel-content p { display: none; }
}

.pet-carousel-nav {
  display: flex;
  gap: 12px;
}
.pet-carousel-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms, background-color 150ms;
}
.pet-carousel-btn:hover {
  transform: scale(1.08);
  background-color: rgba(255,255,255,0.12);
  border-color: #fff;
}
@media (max-width: 640px) {
  .pet-carousel-btn { width: 48px; height: 48px; }
}

.pet-carousel-cta {
  position: absolute;
  bottom: 80px;
  right: 40px;
  z-index: 60;
  display: flex;
  align-items: center;
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 4vw, 56px);
  font-weight: 400;
  color: #fff;
  opacity: 0.95;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 200ms;
}
.pet-carousel-cta:hover {
  opacity: 1;
}
@media (max-width: 640px) {
  .pet-carousel-cta { bottom: 24px; right: 16px; }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST UPGRADE LAYER  ·  v6.4
   Powerful, polished responsive behaviour. Loaded last so these
   rules win on equal specificity. Nothing above is removed.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Global mobile hardening ─── */
html {
  -webkit-text-size-adjust: 100%;   /* stop iOS auto-zoom of text */
  text-size-adjust: 100%;
}
body {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;      /* no rubber-band bleed on nav */
}
* { -webkit-tap-highlight-color: transparent; }

/* Fluid gutters: comfortable on desktop, tight on small phones */
.container { padding-left: clamp(16px, 5vw, 24px); padding-right: clamp(16px, 5vw, 24px); }

/* Respect notch / home-indicator safe areas */
#site-header { padding-top: env(safe-area-inset-top, 0px); }
footer { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }

/* Never let media or code blocks force horizontal scroll */
img, svg, video, table { max-width: 100%; }

/* Swipe hint is mobile-only (media query flips it to flex) */
.comparison-hint { display: none; }

/* ─── Tablet / small-laptop (≤1024px) ─── */
@media (max-width: 1024px) {
  .section { padding: 96px 0; }
  .brain-section, .ai-section { padding: 96px 0; }
  /* stacked how-it-works + sidepanel grids that were hard-coded to 3 cols */
  #how-it-works .features,
  #sidepanel .features { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════ PHONE (≤768px) ═══════════ */
@media (max-width: 768px) {

  /* --- Bigger, thumb-friendly mobile nav --- */
  .nav-toggle {
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-right: -8px;               /* keep bars flush to the edge */
    box-sizing: border-box;
  }
  .nav-toggle span { width: 24px; }

  #main-nav {
    gap: 8px;
    padding: 88px 24px 40px;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #main-nav a {
    font-size: 18px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #main-nav a:active { background: var(--bg-glass-hover); }
  #main-nav a::after { display: none; }
  #main-nav .nav-cta {
    margin-top: 8px;
    width: 100%; max-width: 340px;
    justify-content: center;
    min-height: 52px !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
  }
  .theme-toggle { width: 44px; height: 44px; }

  /* Lock the page behind the open menu (paired with JS .nav-open) */
  body.nav-open { overflow: hidden; }

  /* CRITICAL FIX: the scrolled header's backdrop-filter establishes a
     containing block, which traps the position:fixed nav overlay and
     collapses it to header height. Neutralise it while the menu is open
     so the overlay resolves against the viewport and fills the screen. */
  body.nav-open #site-header,
  body.nav-open #site-header.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
  }

  /* --- Hero tightening --- */
  .hero { padding: 104px 0 48px; }
  .hero h1 { margin-bottom: 16px; }
  .hero > .container > p { font-size: 16.5px; }
  .hero-trust {
    gap: 12px 20px;
    margin-top: 28px;
    font-size: 13px;
  }
  .hero-trust-item { flex: 0 1 auto; }
  .hero-visual { margin-top: 40px; }

  /* --- Section rhythm --- */
  .section-header { margin-bottom: 44px; }
  .section-subtitle { font-size: 15.5px; }

  /* --- Touch targets everywhere --- */
  .btn { min-height: 48px; }
  .faq-question { min-height: 56px; padding-top: 18px; padding-bottom: 18px; }

  /* How-it-works + sidepanel: single column on phones */
  #how-it-works .features,
  #sidepanel .features,
  #security .features { grid-template-columns: 1fr !important; }

  /* --- Comparison table: readable + obvious it scrolls --- */
  .pricing-comparison { padding: 14px; }
  .comparison-scroll {
    position: relative;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .comparison-table { min-width: 640px; font-size: 13px; }
  .comparison-table th,
  .comparison-table td { padding: 11px 10px; }
  .comparison-table th:first-child,
  .comparison-table td:first-child { min-width: 150px; }
  .comparison-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 10px 2px 0;
  }

  /* --- CTA card breathing room --- */
  #cta .glass-card { padding: 40px 24px !important; }

  /* --- 3D carousel: shorter so it fits a phone screen --- */
  #pet { margin-bottom: 56px !important; }
  .pet-carousel-container {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    max-height: 88vh;
    border-radius: 24px;
  }
}

/* ═══════════ SMALL PHONE (≤430px) ═══════════ */
@media (max-width: 430px) {
  .section { padding: 64px 0; }
  .brain-section, .ai-section { padding: 64px 0; }
  h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero > .container > p { font-size: 16px; }
  .glass-card { padding: 22px; }
  .section-badge { font-size: 12px; padding: 5px 13px; }
  .hero-buttons { margin-top: 32px; }
  .hero-mascot-img { max-width: 170px; }
  .brain-example-card { padding: 20px; }
  .price { font-size: 38px; }
  .footer-grid { gap: 28px; }
  .pet-carousel-content h3 { font-size: 18px; }
  .pet-carousel-cta { font-size: 22px; }
}

/* ═══════════ TINY PHONE (≤360px) ═══════════ */
@media (max-width: 360px) {
  .container { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: clamp(30px, 9.5vw, 40px); }
  .btn-lg { padding: 16px 22px; font-size: 16px; }
  .comparison-table { min-width: 560px; }
}

/* ─── Landscape phones: don't waste vertical space ─── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 96px 0 48px; }
  #main-nav { justify-content: center; padding-top: 64px; }
  .pet-carousel-container { aspect-ratio: auto; height: 118vh; min-height: 420px; }
}

/* ─── Coarse pointer (touch) niceties ─── */
@media (hover: none) {
  .glass-card:hover { transform: none; }        /* no sticky hover lift */
  .glass-card:active { transform: scale(0.99); }
  #main-nav a:hover::after { width: 0; }
}
