/* ========================================
   1% Better — Modern SaaS Landing
   ======================================== */

/* ── Variables ── */
:root {
  /* Primary (teal) */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #20a4b3;
  --teal-600: #1a8a96;
  --teal-700: #157179;
  --teal-800: #115e66;
  --teal-900: #0d4a52;

  /* Secondary (purple) */
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-400: #a78bfa;
  --purple-500: #6a3de8;
  --purple-600: #5b30d0;
  --purple-700: #4c1d95;

  /* Accent (gold) */
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-400: #f0c050;
  --gold-500: #d4a437;
  --gold-600: #b8892d;

  /* Neutrals (slate) */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Foreground (dark blue) */
  --fg: #141b41;

  /* Semantic */
  --color-primary: var(--teal-500);
  --color-primary-hover: var(--teal-600);
  --color-primary-light: var(--teal-50);
  --color-primary-glow: rgba(32, 164, 179, 0.15);
  --color-secondary: var(--purple-500);
  --color-secondary-light: var(--purple-50);
  --color-accent: var(--gold-500);
  --color-accent-light: var(--gold-50);
  --color-text: var(--fg);
  --color-text-secondary: var(--slate-600);
  --color-text-muted: var(--slate-400);
  --color-bg: #ffffff;
  --color-bg-alt: var(--slate-50);
  --color-bg-dark: var(--slate-950);
  --color-border: var(--slate-200);
  --color-border-subtle: rgba(0, 0, 0, 0.06);

  /* Typography — fluid clamp scale */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --fs-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --fs-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --fs-xl: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
  --fs-hero: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);

  /* Shadows */
  --shadow-xs: 0 1px 1px hsl(0 0% 0% / 0.03), 0 2px 2px hsl(0 0% 0% / 0.03);
  --shadow-sm:
    0 1px 1px hsl(0 0% 0% / 0.04), 0 2px 2px hsl(0 0% 0% / 0.04),
    0 4px 4px hsl(0 0% 0% / 0.04);
  --shadow-md:
    0 1px 2px hsl(0 0% 0% / 0.04), 0 2px 4px hsl(0 0% 0% / 0.04),
    0 4px 8px hsl(0 0% 0% / 0.04), 0 8px 16px hsl(0 0% 0% / 0.04);
  --shadow-lg:
    0 2px 4px hsl(0 0% 0% / 0.03), 0 4px 8px hsl(0 0% 0% / 0.03),
    0 8px 16px hsl(0 0% 0% / 0.03), 0 16px 32px hsl(0 0% 0% / 0.04);
  --shadow-xl:
    0 2px 4px hsl(0 0% 0% / 0.02), 0 4px 8px hsl(0 0% 0% / 0.03),
    0 8px 16px hsl(0 0% 0% / 0.04), 0 16px 32px hsl(0 0% 0% / 0.05),
    0 32px 64px hsl(0 0% 0% / 0.06);
  --shadow-glow: 0 0 60px rgba(32, 164, 179, 0.08);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur: blur(14px) saturate(180%);

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --max-width: 1180px;
  --nav-height: 64px;
  --section-pad: clamp(5rem, 10vw, 9rem);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fonts */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Dark Theme (Institutional Navy — Swiss Medical Precision) ── */
[data-theme="dark"] {
  --fg: #f8fafc;
  --color-text: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-bg: #0b1021;
  --color-bg-alt: #141b41;
  --color-bg-dark: #070a14;
  --color-border: rgba(32, 164, 179, 0.25);
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-primary-light: rgba(32, 164, 179, 0.15);
  --color-secondary-light: rgba(106, 61, 232, 0.15);
  --color-accent-light: rgba(212, 164, 55, 0.15);
  --glass-bg: rgba(20, 27, 65, 0.85);
  --glass-border: rgba(32, 164, 179, 0.25);
  --slate-50: #141b41;
  --slate-100: #1e293b;
  --slate-200: #334155;
  --slate-700: #e2e8f0;
  --slate-800: #f1f5f9;
  --slate-900: #f8fafc;
}

[data-theme="dark"] .nav {
  background: rgba(11, 16, 33, 0.88);
  border-bottom-color: rgba(32, 164, 179, 0.2);
}

[data-theme="dark"] .hm {
  background: #141b41;
  color: var(--slate-200);
  box-shadow:
    0 0 0 1px rgba(32, 164, 179, 0.2),
    0 16px 48px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .hm-bar {
  background: #0b1021;
}

[data-theme="dark"] .validation-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .quote-card,
[data-theme="dark"] .panel-card,
[data-theme="dark"] .feature-card {
  background: #141b41;
  border-color: rgba(32, 164, 179, 0.25);
  color: #f8fafc;
}

[data-theme="dark"] .input,
[data-theme="dark"] .textarea {
  background: #141b41;
  border-color: rgba(32, 164, 179, 0.3);
  color: #f8fafc;
}

[data-theme="dark"] .footer {
  background: #070a14;
  border-top-color: rgba(32, 164, 179, 0.2);
}

/* ── Theme Toggle Button ── */
.theme-toggle-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
ul {
  list-style: none;
}

::selection {
  background: var(--teal-100);
  color: var(--teal-900);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ── Grain overlay ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    backdrop-filter 0.3s;
}

.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 1px 0 var(--color-border-subtle),
    var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-brand svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-cta {
  margin-left: 12px;
  padding: 8px 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: 100px;
  transition:
    background 0.2s,
    transform 0.15s;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login {
  padding: 6px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-login:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

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

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    transition:
      transform 0.35s var(--ease-out),
      opacity 0.25s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 10px 12px;
  }
  .nav-cta {
    margin-left: 0;
    text-align: center;
    width: 100%;
    margin-top: 8px;
  }
  .nav-mobile-toggle {
    display: flex;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: 100px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 2.5px rgba(255, 255, 255, 0.08) inset,
    var(--shadow-md);
}

.btn-full {
  width: 100%;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

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

.section-dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.section-dark .section-tag {
  color: var(--color-primary);
}
.section-dark p {
  color: var(--slate-400);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header p {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   Hero
   ======================================== */
/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Background glow effects */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 20%,
      rgba(32, 164, 179, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 50% at 20% 80%,
      rgba(16, 185, 129, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(32, 164, 179, 0.06) 0deg,
    rgba(16, 185, 129, 0.04) 180deg,
    rgba(32, 164, 179, 0.06) 360deg
  );
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: hero-glow-drift 20s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: hero-glow-drift 12s ease-in-out infinite;
}
.hero-glow-1 {
  width: 320px;
  height: 320px;
  top: 10%;
  left: 20%;
  background: rgba(32, 164, 179, 0.12);
}
.hero-glow-2 {
  width: 240px;
  height: 240px;
  bottom: 15%;
  right: 15%;
  background: rgba(16, 185, 129, 0.08);
  animation-delay: -6s;
}

@keyframes hero-glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(15px, -10px) scale(1.05);
  }
  66% {
    transform: translate(-10px, 15px) scale(0.95);
  }
}

/* 2-column grid */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 24px) 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Left column */
.hero-content {
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid-stacked slides — no layout jumping */
.hero-headline-area {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-headline-main {
  display: block;
  color: var(--color-text);
}

.hero-headline-highlight {
  display: block;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subheadline {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  margin-top: 14px;
  max-width: 48ch;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 28px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 100px;
  background: var(--color-text-muted);
  opacity: 0.25;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  background: var(--color-primary);
  opacity: 1;
}

/* Right column — product visual */
.hero-visual {
  animation: heroFadeIn 1.2s ease 0.3s forwards;
  opacity: 0;
  perspective: 1200px;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero graphic wrapper (mockup + floating panels) */
.hero-graphic {
  position: relative;
  width: 100%;
}

/* Floating insight panels */
.hero-float {
  position: absolute;
  z-index: 10;
  animation: hf-float 8s ease-in-out infinite;
}
.hero-float--top {
  top: -8px;
  right: -24px;
}
.hero-float--bottom {
  bottom: 12px;
  left: -28px;
  animation-delay: -3s;
}
.hero-float-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.hf-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hf-icon svg {
  width: 16px;
  height: 16px;
}
.hf-icon.green {
  background: #d1fae5;
  color: #059669;
}
.hf-icon.teal {
  background: var(--teal-100);
  color: var(--teal-700);
}
.hf-body {
}
.hf-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-900);
}
.hf-sub {
  font-size: 9px;
  color: var(--slate-500);
  margin-top: 1px;
}

@keyframes hf-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ── Hero Mockup Carousel ── */
.hero-mockup-area {
  display: grid;
}
.hero-mockup-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  pointer-events: none;
}
.hero-mockup-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Shared mockup shell */
.hm {
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 16px 48px -12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform: rotateY(-3deg) rotateX(1deg);
  transition: transform 0.6s ease;
  font-size: 10px;
  line-height: 1.4;
  color: var(--slate-700);
}
.hm:hover {
  transform: rotateY(-1deg) rotateX(0.5deg);
}

/* Browser bar */
.hm-bar {
  height: 26px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.hm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.hm-dot.r {
  background: #ff5f57;
}
.hm-dot.y {
  background: #febc2e;
}
.hm-dot.g {
  background: #28c840;
}
.hm-url {
  margin-left: auto;
  font-size: 8px;
  color: var(--slate-400);
}

/* Body layout */
.hm-body {
  display: flex;
  min-height: 280px;
}

/* Sidebar */
.hm-side {
  width: 90px;
  flex-shrink: 0;
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hm-side-logo {
  font-weight: 800;
  font-size: 12px;
  color: var(--teal-400);
  margin-bottom: 10px;
  padding: 0 4px;
}
.hm-nav-i {
  font-size: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-nav-i.act {
  background: var(--teal-600);
  color: #fff;
  font-weight: 600;
}

/* Main content area */
.hm-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.hm-page-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-900);
}
.hm-page-sub {
  font-size: 8px;
  color: var(--slate-400);
}

/* Stat cards row */
.hm-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.hm-stat-card {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 6px;
  padding: 7px 8px;
}
.hm-sc-label {
  font-size: 7px;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hm-sc-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}
.hm-sc-val small {
  font-size: 8px;
  font-weight: 500;
  color: var(--slate-500);
  margin-left: 2px;
}
.hm-sc-trend {
  font-size: 7px;
  color: var(--slate-400);
  margin-top: 1px;
}
.hm-sc-trend.up {
  color: #059669;
}
.hm-sc-trend.warn {
  color: #d97706;
}

/* Badges */
.hm-badge {
  display: inline-block;
  font-size: 7px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 100px;
}
.hm-badge.green {
  background: #d1fae5;
  color: #059669;
}
.hm-badge.outline {
  background: transparent;
  border: 1px solid var(--slate-300);
  color: var(--slate-500);
}

/* Dashboard entry */
.hm-entry {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hm-entry-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--slate-900);
}
.hm-entry-meta {
  font-size: 7px;
  color: var(--slate-400);
  margin-top: 2px;
}
.hm-entry-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}
.hm-score-bar {
  flex: 1;
  height: 5px;
  background: var(--slate-100);
  border-radius: 3px;
  overflow: hidden;
}
.hm-score-fill {
  height: 100%;
  background: var(--teal-500);
  border-radius: 3px;
}
.hm-score-num {
  font-size: 9px;
  font-weight: 700;
  color: var(--teal-700);
  white-space: nowrap;
}

/* Analytics: distribution bars */
.hm-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hm-an-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 8px;
}
.hm-an-title {
  font-size: 8px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.hm-dist-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
  font-size: 7px;
  color: var(--slate-500);
}
.hm-dist-row span:first-child {
  width: 36px;
  flex-shrink: 0;
  text-align: right;
}
.hm-dist-row span:last-child {
  width: 12px;
  flex-shrink: 0;
  text-align: right;
  font-weight: 600;
  color: var(--slate-700);
}
.hm-dist-bar {
  flex: 1;
  height: 5px;
  background: var(--slate-100);
  border-radius: 3px;
  overflow: hidden;
}
.hm-dist-fill {
  height: 100%;
  border-radius: 3px;
}
.hm-dist-fill.green {
  background: #22c55e;
}
.hm-dist-fill.blue {
  background: #3b82f6;
}
.hm-dist-fill.orange {
  background: #f59e0b;
}
.hm-dist-fill.red {
  background: #ef4444;
}

/* Analytics: list rows */
.hm-list-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  margin-bottom: 3px;
}
.hm-list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hm-list-dot.purple {
  background: #8b5cf6;
}
.hm-list-dot.blue {
  background: #3b82f6;
}
.hm-list-dot.pink {
  background: #ec4899;
}
.hm-list-dot.green {
  background: #22c55e;
}
.hm-list-num {
  margin-left: auto;
  font-weight: 700;
  color: var(--slate-700);
}

/* Analytics: insight cards */
.hm-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.hm-insight-card {
  border-radius: 5px;
  padding: 6px 8px;
}
.hm-insight-card.teal {
  background: var(--teal-50);
}
.hm-insight-card.slate {
  background: var(--slate-50);
}
.hm-insight-card.orange {
  background: #fff7ed;
}
.hm-ins-label {
  font-size: 7px;
  color: var(--slate-500);
  font-weight: 500;
}
.hm-ins-val {
  font-size: 8px;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 1px;
}

/* Report: header */
.hm-rpt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hm-rpt-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--teal-600);
  line-height: 1;
}
.hm-rpt-badge-row {
  margin-top: -2px;
}

/* Report: summary */
.hm-rpt-summary {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 8px;
}
.hm-rpt-sum-title {
  font-size: 8px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.hm-rpt-metrics {
  display: flex;
  gap: 12px;
  justify-content: center;
  text-align: center;
}
.hm-rpt-m-val {
  font-size: 12px;
  font-weight: 800;
}
.hm-rpt-m-val.teal {
  color: var(--teal-600);
}
.hm-rpt-m-val.green {
  color: #16a34a;
}
.hm-rpt-m-label {
  font-size: 7px;
  color: var(--slate-400);
}

/* Report: cards */
.hm-rpt-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 7px 8px;
}
.hm-rpt-card.green-border {
  border-left: 3px solid #22c55e;
}
.hm-rpt-card-title {
  font-size: 8px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--slate-900);
}
.hm-rpt-card-title.green {
  color: #16a34a;
}
.hm-rpt-card-body {
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-800);
}
.hm-rpt-factor {
  font-size: 8px;
  padding: 2px 0;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-600);
}
.hm-rpt-factor:last-child {
  border-bottom: none;
}
.hm-rpt-factor::before {
  content: "★ ";
  color: #f59e0b;
}

/* Width utilities for bars */
.w8 {
  width: 8%;
}
.w17 {
  width: 17%;
}
.w33 {
  width: 33%;
}
.w42 {
  width: 42%;
}
.w87 {
  width: 87%;
}

/* Bottom section — features + stats */
.hero-bottom {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.hero-feature-card {
  padding: 14px 20px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  border-right: 1px solid var(--color-border);
}

.hero-feature-card:last-child {
  border-right: none;
}

.hero-feature-card.active {
  background: var(--color-bg-alt);
}

.hero-feature-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}

.hero-feature-card.active .hero-feature-bar {
  background: var(--color-primary);
}

.hero-feature-card h3 {
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-feature-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.hero-stat {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-value {
  font-family: var(--font);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-product-frame {
    transform: none;
  }
  .hero-product-frame:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  .hero-visual {
    display: none;
  }
  .hero-float {
    display: none;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
  .hero-feature-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .hero-feature-card:last-child {
    border-bottom: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stat {
    border-bottom: 1px solid var(--color-border);
  }
}

/* ========================================
   Problem Section
   ======================================== */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 3rem;
}

.problem-stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}

.problem-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.problem-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.problem-stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.problem-closing {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.problem-closing p {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  font-style: italic;
}

.problem-closing p span {
  color: #ef4444;
  font-weight: 600;
  font-style: normal;
}

@media (max-width: 768px) {
  .problem-stats {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Solution Section
   ======================================== */
.solution-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-pillar {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  text-align: center;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}

.solution-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-primary);
}

.solution-pillar-icon svg {
  width: 100%;
  height: 100%;
}

.solution-pillar h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 8px;
}

.solution-pillar p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .solution-pillars {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   How It Works
   ======================================== */
.hiw-steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hiw-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.hiw-step-number {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  width: 60px;
}

.hiw-step-content h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 6px;
}

.hiw-step-content p {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   Platform (Bento Grid)
   ======================================== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--color-bg);
}

.platform-panel {
  padding: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.platform-panel:nth-child(2n) {
  border-right: none;
}
.platform-panel:nth-last-child(-n + 2) {
  border-bottom: none;
}

.platform-panel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.platform-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.platform-panel-dot--primary {
  background: var(--color-primary);
}
.platform-panel-dot--secondary {
  background: var(--color-secondary);
}
.platform-panel-dot--accent {
  background: var(--color-accent);
}
.platform-panel-dot--muted {
  background: var(--color-text-muted);
}

.platform-panel-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.platform-panel-badge--primary {
  color: var(--color-primary);
}
.platform-panel-badge--secondary {
  color: var(--color-secondary);
}
.platform-panel-badge--accent {
  color: var(--color-accent);
}
.platform-panel-badge--muted {
  color: var(--color-text-muted);
}

.platform-panel h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.platform-panel p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 20px;
}

.platform-panel-image {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-alt);
}

.platform-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .platform-panel {
    border-right: none !important;
  }
  .platform-panel:last-child {
    border-bottom: none;
  }
}

/* ========================================
   Diagnostic Panels (3x2 Grid)
   ======================================== */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 2rem;
}

.panel-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}

.panel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.panel-card h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 6px;
}

.panel-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.panels-closing {
  text-align: center;
}

.panels-closing p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .panels-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Validation
   ======================================== */
.validation-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.validation-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  text-align: center;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}

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

.validation-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-primary);
}

.validation-icon svg {
  width: 100%;
  height: 100%;
}

.validation-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 8px;
}

.validation-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .validation-partners {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slides {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
}

.testimonial-image {
  flex-shrink: 0;
  width: 180px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content blockquote {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--fs-base);
}

.testimonial-company {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.testimonial-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--color-text);
}

.testimonial-nav-btn:hover {
  background: var(--color-bg-alt);
}

.testimonial-nav-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .testimonial-slide {
    flex-direction: column;
    text-align: center;
  }
  .testimonial-image {
    width: 120px;
    height: 140px;
  }
}

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.faq-header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.faq-header p {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

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

.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-chevron svg {
  width: 100%;
  height: 100%;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
}

.faq-answer p {
  padding: 0 20px 18px;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   Pricing
   ======================================== */
.pricing-layout {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.pricing-info .section-tag {
  margin-bottom: 12px;
}

.pricing-info h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 16px;
}

.pricing-info > p {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pricing-anchors {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-anchor {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pricing-anchor-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text);
  margin-top: 2px;
}

.pricing-anchor-icon svg {
  width: 100%;
  height: 100%;
}

.pricing-anchor span {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.pricing-anchor strong {
  color: var(--color-text);
}

.pricing-form-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  padding: 2rem;
}

.pricing-form-header h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-form-header p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.pricing-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-form label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.pricing-form label .optional {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.pricing-form input,
.pricing-form select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-family: var(--font);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.pricing-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.pricing-form input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.pricing-form input:focus,
.pricing-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.pricing-form .btn {
  margin-top: 8px;
}

.pricing-form-note {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  opacity: 0.7;
}

.pricing-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 3rem 1rem;
  text-align: center;
}

.pricing-success-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.pricing-success-icon svg {
  width: 100%;
  height: 100%;
}

.pricing-form-success h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.pricing-form-success p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Contact / CTA
   ======================================== */
.section-dark .contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-actions {
  margin: 32px 0;
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--slate-400);
}

.contact-meta-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  display: flex;
  gap: 3rem;
  justify-content: space-between;
}

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

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 24px;
  height: 24px;
  color: var(--color-text);
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: var(--color-primary);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

.footer-columns {
  display: flex;
  gap: 3rem;
}

.footer-column-title {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--color-text);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem clamp(16px, 4vw, 24px);
  border-top: 1px solid var(--color-border);
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-columns {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal,
.reveal-scale,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal {
  transform: translateY(20px);
}
.reveal-scale {
  transform: scale(0.96);
}
.reveal-left {
  transform: translateX(-30px);
}
.reveal-right {
  transform: translateX(30px);
}

.reveal.visible,
.reveal-scale.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

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

/* ========================================
   Error Fallback
   ======================================== */
.error-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
}

/* ========================================
   Email Popup
   ======================================== */
.email-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.email-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}
.email-popup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 440px;
  max-width: calc(100% - 32px);
  padding: 36px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
}
.email-popup-overlay.open .email-popup {
  transform: translateY(0) scale(1);
}
.email-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg-subtle, #f1f5f9);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #64748b);
  transition: background 0.2s;
}
.email-popup-close:hover {
  background: #e2e8f0;
}
.email-popup-close svg {
  width: 16px;
  height: 16px;
}
.email-popup-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text, #0f172a);
  margin-bottom: 6px;
}
.email-popup-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted, #64748b);
  margin-bottom: 24px;
  line-height: 1.5;
}
.email-popup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.email-popup-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.email-popup-input:focus {
  border-color: var(--teal-500, #14b8a6);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.email-popup-submit {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: var(--teal-600, #0d9488);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}
.email-popup-submit:hover {
  background: var(--teal-700, #0f766e);
}
.email-popup-submit:active {
  transform: scale(0.98);
}
.email-popup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.email-popup-note {
  font-size: 0.8rem;
  color: var(--color-text-muted, #94a3b8);
  text-align: center;
}
.email-popup-success {
  text-align: center;
  padding: 12px 0;
}
.email-popup-success svg {
  width: 48px;
  height: 48px;
  color: var(--teal-500, #14b8a6);
  margin-bottom: 12px;
}
.email-popup-success h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.email-popup-success p {
  font-size: 0.9rem;
  color: var(--color-text-muted, #64748b);
}
.email-popup-hidden {
  display: none;
}
