/* ===== Design Tokens (same as React project) ===== */
:root {
  --background: 0 0% 3.9%;
  --foreground: 0 0% 98%;
  --card: 0 0% 6%;
  --card-foreground: 0 0% 98%;
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 12%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 64%;
  --accent: 180 100% 50%;
  --accent-foreground: 0 0% 3.9%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 14%;
  --input: 0 0% 14%;
  --ring: 217 91% 60%;
  --radius: 0.75rem;

  --glass-bg: hsla(0, 0%, 8%, 0.8);
  --glass-border: hsla(0, 0%, 20%, 0.5);
  --shadow-glow: 0 0 60px -15px hsla(217, 91%, 60%, 0.4);
  --shadow-elevated: 0 8px 32px -8px hsla(0, 0%, 0%, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

body::before {
  content: none;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

body.page-ready main,
body.page-ready footer {
  animation: pageEnter 360ms ease-out;
}

body.page-leaving main,
body.page-leaving footer {
  transform: translateY(8px);
  opacity: 0;
  transition: transform 180ms ease, opacity 160ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  body::before,
  body.page-ready main,
  body.page-ready footer,
  body.page-leaving main,
  body.page-leaving footer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ===== Local color utilities (keeps colors working without Tailwind CDN) ===== */
.text-foreground { color: hsl(var(--foreground)) !important; }
.text-muted-foreground { color: hsl(var(--muted-foreground)) !important; }
.text-primary { color: hsl(var(--primary)) !important; }
.text-primary-foreground { color: hsl(var(--primary-foreground)) !important; }
.text-accent { color: hsl(var(--accent)) !important; }
.text-destructive { color: hsl(var(--destructive)) !important; }

.bg-background { background-color: hsl(var(--background)) !important; }
.bg-card { background-color: hsl(var(--card)) !important; }
.bg-secondary { background-color: hsl(var(--secondary)) !important; }
.bg-primary { background-color: hsl(var(--primary)) !important; }
.bg-accent { background-color: hsl(var(--accent)) !important; }
.bg-destructive { background-color: hsl(var(--destructive)) !important; }

.bg-card\/20 { background-color: hsl(var(--card) / 0.2) !important; }
.bg-card\/30 { background-color: hsl(var(--card) / 0.3) !important; }
.bg-card\/40 { background-color: hsl(var(--card) / 0.4) !important; }
.bg-secondary\/50 { background-color: hsl(var(--secondary) / 0.5) !important; }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05) !important; }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1) !important; }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2) !important; }
.bg-accent\/5 { background-color: hsl(var(--accent) / 0.05) !important; }
.bg-accent\/10 { background-color: hsl(var(--accent) / 0.1) !important; }
.bg-accent\/20 { background-color: hsl(var(--accent) / 0.2) !important; }
.bg-destructive\/10 { background-color: hsl(var(--destructive) / 0.1) !important; }
.bg-destructive\/20 { background-color: hsl(var(--destructive) / 0.2) !important; }

.border-border { border-color: hsl(var(--border)) !important; }
.border-border\/30 { border-color: hsl(var(--border) / 0.3) !important; }
.border-border\/50 { border-color: hsl(var(--border) / 0.5) !important; }
.border-primary { border-color: hsl(var(--primary)) !important; }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2) !important; }
.border-primary\/40 { border-color: hsl(var(--primary) / 0.4) !important; }

.from-background { --tw-gradient-from: hsl(var(--background)); }
.via-background { --tw-gradient-via: hsl(var(--background)); }
.to-transparent { --tw-gradient-to: transparent; }
.from-primary\/20 { --tw-gradient-from: hsl(var(--primary) / 0.2); }
.to-accent\/20 { --tw-gradient-to: hsl(var(--accent) / 0.2); }
.from-primary { --tw-gradient-from: hsl(var(--primary)); }
.to-accent { --tw-gradient-to: hsl(var(--accent)); }
.from-blue-500 { --tw-gradient-from: #3b82f6; }
.to-blue-600 { --tw-gradient-to: #2563eb; }
.from-violet-500 { --tw-gradient-from: #8b5cf6; }
.to-purple-600 { --tw-gradient-to: #9333ea; }
.from-cyan-400 { --tw-gradient-from: #22d3ee; }
.to-teal-500 { --tw-gradient-to: #14b8a6; }
.from-emerald-400 { --tw-gradient-from: #34d399; }
.to-green-500 { --tw-gradient-to: #22c55e; }
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent)) !important;
}
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent)) !important;
}
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-from, transparent), var(--tw-gradient-via, transparent), var(--tw-gradient-to, transparent)) !important;
}

/* ===== Reusable component classes ===== */
.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.gradient-text {
  background-image: linear-gradient(100deg, #2f7dff 0%, #18d5ff 52%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heading-glow {
  filter: none;
  text-shadow: 0 0 18px hsla(217, 91%, 60%, 0.08);
}

.hover-lift { transition: all 0.3s ease-out; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }

.section-padding { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .section-padding { padding-top: 8rem; padding-bottom: 8rem; } }

.container-tight { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.text-balance { text-wrap: balance; }

/* ===== Badges / section labels ===== */
.inline-flex.rounded-full,
span.uppercase.tracking-wider {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  width: fit-content;
  min-height: 2.08rem;
  padding: 0.34rem 0.88rem !important;
  border-radius: 999px !important;
  --badge-color: hsl(var(--primary));
  --badge-bg: hsl(var(--primary) / 0.12);
  --badge-border: hsl(var(--primary) / 0.34);
  background: linear-gradient(135deg, var(--badge-bg), hsl(var(--card) / 0.82)) !important;
  border: 1px solid var(--badge-border) !important;
  color: hsl(var(--foreground)) !important;
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.06);
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

span.uppercase.tracking-wider::before {
  content: "•";
  width: 0.9rem;
  height: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--badge-color) !important;
  background: transparent;
  box-shadow: none;
  font-size: 0.88rem;
  line-height: 1;
  flex: 0 0 auto;
}

.inline-flex.rounded-full > .w-2.h-2 {
  width: 0.48rem !important;
  height: 0.48rem !important;
  background: var(--badge-color) !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--badge-color) 45%, transparent);
}

.inline-flex.rounded-full svg,
.inline-flex.rounded-full i {
  color: var(--badge-color) !important;
}

.text-center > span.uppercase.tracking-wider {
  margin-left: auto;
  margin-right: auto;
}

.section-badge + h1,
.section-badge + h2,
.inline-flex.rounded-full + h1,
.inline-flex.rounded-full + h2 {
  margin-top: 1.35rem !important;
}

span.section-badge.badge-problem {
  --badge-color: hsl(var(--destructive));
  --badge-bg: hsl(var(--destructive) / 0.13);
  --badge-border: hsl(var(--destructive) / 0.42);
}
span.section-badge.badge-problem::before { content: "⚠"; }

span.section-badge.badge-solution,
span.section-badge.badge-benefits {
  --badge-color: #22c55e;
  --badge-bg: rgb(34 197 94 / 0.13);
  --badge-border: rgb(34 197 94 / 0.42);
}
span.section-badge.badge-solution::before,
span.section-badge.badge-benefits::before { content: "✓"; }

span.section-badge.badge-capabilities,
span.section-badge.badge-services,
span.section-badge.badge-included {
  --badge-color: hsl(var(--accent));
  --badge-bg: hsl(var(--accent) / 0.11);
  --badge-border: hsl(var(--accent) / 0.34);
}
span.section-badge.badge-capabilities::before { content: "✦"; }
span.section-badge.badge-services::before { content: "$"; }
span.section-badge.badge-included::before { content: "+"; }

span.section-badge.badge-autopilot,
span.section-badge.badge-mission,
span.section-badge.badge-philosophy {
  --badge-color: hsl(var(--primary));
  --badge-bg: hsl(var(--primary) / 0.12);
  --badge-border: hsl(var(--primary) / 0.36);
}
span.section-badge.badge-autopilot::before { content: "↗"; }
span.section-badge.badge-mission::before { content: "◎"; }
span.section-badge.badge-philosophy::before { content: "◌"; }
span.section-badge.badge-no-before::before { content: none; }

span.section-badge.badge-no-before > svg {
  color: hsl(var(--primary));
  stroke: currentColor;
}

h1, h2, h3 {
  font-size: calc(1em - 2px);
}

p, .text-lg, .text-xl {
  font-size: calc(1em - 2px);
}

.text-lg,
.text-xl,
p.text-lg,
p.text-xl {
  font-weight: 400 !important;
}

.text-base { font-size: calc(1rem - 1px) !important; }
.text-lg { font-size: calc(1.125rem - 2px) !important; }
.text-xl { font-size: calc(1.25rem - 2px) !important; }
.text-2xl { font-size: calc(1.5rem - 2px) !important; }
.text-3xl { font-size: calc(1.875rem - 2px) !important; }
.text-4xl { font-size: calc(2.25rem - 2px) !important; }
.text-5xl { font-size: calc(3rem - 2px) !important; }
.text-6xl { font-size: calc(3.75rem - 2px) !important; }
.text-8xl { font-size: calc(6rem - 2px) !important; }
.text-9xl { font-size: calc(8rem - 2px) !important; }

@media (min-width: 640px) {
  .sm\:text-5xl { font-size: calc(3rem - 2px) !important; }
}

@media (min-width: 768px) {
  .md\:text-2xl { font-size: calc(1.5rem - 2px) !important; }
  .md\:text-3xl { font-size: calc(1.875rem - 2px) !important; }
  .md\:text-4xl { font-size: calc(2.25rem - 2px) !important; }
  .md\:text-5xl { font-size: calc(3rem - 2px) !important; }
  .md\:text-9xl { font-size: calc(8rem - 2px) !important; }
}

@media (min-width: 1024px) {
  .lg\:text-5xl { font-size: calc(3rem - 2px) !important; }
  .lg\:text-6xl { font-size: calc(3.75rem - 2px) !important; }
}

.bg-hero-gradient {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, hsla(217, 91%, 60%, 0.3) 0%, transparent 50%);
}

main > section:first-of-type .bg-hero-gradient {
  background: linear-gradient(180deg, #0A0A0A 0%, hsl(var(--background)) 42%, transparent 100%);
}

.hero-heading {
  letter-spacing: 0;
  max-width: 42rem;
}

.hero-kicker {
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .hero-heading {
    font-size: calc(3.75rem - 2px) !important;
    line-height: 0.98;
  }
}

.hero-card-shell {
  position: relative;
  isolation: isolate;
}

.hero-card-shell::before {
  content: "";
  position: absolute;
  inset: -4rem -3rem;
  z-index: -2;
  background:
    linear-gradient(hsl(var(--foreground) / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground) / 0.035) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  border-radius: 2rem;
  opacity: 0.45;
}

.hero-card-shell::after {
  content: none;
}

.hero-email-card {
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, hsl(var(--card) / 0.98), hsl(var(--background) / 0.96)),
    radial-gradient(circle at 88% 20%, hsl(var(--accent) / 0.08), transparent 16rem);
  border-color: hsl(var(--foreground) / 0.12);
  box-shadow: none;
}

.hero-email-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  padding: 2px;
  background:
    linear-gradient(hsl(var(--card)), hsl(var(--card))) padding-box,
    linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))) border-box;
  border: 2px solid transparent;
}

.hero-typewriter {
  display: flex;
  align-items: flex-start;
  min-height: 8.25rem;
  padding-top: 0.35rem;
  font-size: 0.94rem;
  font-weight: 400;
}

.hero-status-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: hsl(var(--card) / 0.92);
  border-color: hsl(var(--foreground) / 0.12);
  box-shadow: 0 14px 34px -24px hsl(var(--accent) / 0.8);
  color: hsl(var(--foreground));
  font-weight: 400;
  white-space: nowrap;
}

.hero-status-top {
  top: -1.35rem;
  right: -1.35rem;
}

.hero-status-bottom {
  left: -1.25rem;
  bottom: -1.5rem;
}

.mobile-hero-proof {
  display: none;
}

.hero-mini-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-mini-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid hsl(var(--primary) / 0.28);
  border-radius: 999px;
  background: hsl(var(--card) / 0.68);
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  font-weight: 500;
}

.hero-mini-badges i,
.hero-mini-badges svg {
  color: hsl(var(--accent));
}

@media (max-width: 640px) {
  main > section:first-of-type {
    padding-top: 1.1rem !important;
  }

  .hero-kicker {
    margin-top: 2.7rem;
    margin-bottom: 0.6rem !important;
    min-height: 1.95rem !important;
    padding: 0.32rem 0.82rem !important;
  }

  .hero-kicker span,
  .hero-kicker .text-sm {
    font-size: 0.68rem !important;
  }

  .hero-kicker > .w-2.h-2 {
    width: 0.42rem !important;
    height: 0.42rem !important;
  }

  main > section:first-of-type .section-badge {
    margin-top: 1.7rem !important;
  }

  .lg\:hidden .hero-heading {
    font-size: calc(2.62rem - 6px) !important;
    line-height: 1.08 !important;
  }

  .inline-flex.rounded-full,
  span.uppercase.tracking-wider {
    min-height: 1.7rem;
    padding: 0.24rem 0.58rem !important;
    gap: 0.32rem !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.01em !important;
  }

  .inline-flex.rounded-full span,
  .inline-flex.rounded-full .text-sm {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
  }

  .inline-flex.rounded-full > .w-2.h-2 {
    width: 0.34rem !important;
    height: 0.34rem !important;
  }

  span.uppercase.tracking-wider::before {
    width: 0.85rem;
    height: 0.85rem;
    font-size: 0.8rem;
  }

  .hero-heading + p + .mt-8 {
    flex-direction: row !important;
    gap: 0.65rem !important;
    margin-top: 1.5rem !important;
  }

  .hero-heading + p + .mt-8 .btn-xl {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.7rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .hero-heading + p + .mt-8 .btn-xl svg,
  .hero-heading + p + .mt-8 .btn-xl i {
    width: 1rem !important;
    height: 1rem !important;
    flex: 0 0 auto;
  }

  main > section:first-of-type .flex.flex-col.sm\:flex-row {
    flex-direction: row !important;
    gap: 0.65rem !important;
  }

  main > section:first-of-type .flex.flex-col.sm\:flex-row .btn-xl {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.62rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  main > section:first-of-type .flex.flex-col.sm\:flex-row .btn-xl svg,
  main > section:first-of-type .flex.flex-col.sm\:flex-row .btn-xl i {
    width: 1rem !important;
    height: 1rem !important;
    flex: 0 0 auto;
  }

  .lg\:hidden > .hero-card-shell,
  .lg\:hidden > .mt-10.hero-card-shell {
    margin-top: 3.4rem !important;
  }

  .hero-card-shell::before {
    inset: -2.5rem -1rem;
    background-size: 48px 48px, 48px 48px, auto;
  }

  .hero-email-card {
    padding: 1.25rem !important;
  }

  .hero-email-card > .flex:first-child {
    gap: 0.75rem !important;
    margin-bottom: 1.1rem !important;
    padding-bottom: 1.1rem !important;
  }

  .hero-email-avatar {
    width: 2.45rem;
    height: 2.45rem;
  }

  .hero-email-card .font-medium {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .hero-email-card .text-sm {
    font-size: 0.74rem !important;
    line-height: 1.35;
  }

  .hero-status-top {
    right: -0.25rem;
    top: -0.75rem;
  }

  .hero-status-bottom {
    left: -0.5rem;
    bottom: -1.25rem;
  }

  .hero-typewriter {
    min-height: 5.9rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  main > section:last-of-type .flex.flex-col.sm\:flex-row {
    flex-direction: row !important;
    gap: 0.65rem !important;
  }

  main > section:last-of-type .btn-lg {
    flex: 1 1 0;
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.62rem;
    font-size: 0.68rem;
    gap: 0.35rem;
  }

  main > section:last-of-type .btn-lg svg,
  main > section:last-of-type .btn-lg i {
    width: 1rem !important;
    height: 1rem !important;
    flex: 0 0 auto;
  }

  .mobile-hero-proof {
    display: grid;
    gap: 0.7rem;
    margin-top: 2rem;
    padding: 0.9rem;
    border: 1px solid hsl(var(--foreground) / 0.08);
    border-radius: 1rem;
    background:
      radial-gradient(circle at top right, hsl(var(--accent) / 0.08), transparent 12rem),
      hsl(var(--card) / 0.62);
  }

  .mobile-hero-proof-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .mobile-hero-proof-row i,
  .mobile-hero-proof-row svg {
    flex: 0 0 auto;
    color: hsl(var(--accent));
  }

  .hero-mini-badges {
    gap: 0.5rem;
    margin-top: 1.35rem;
  }

  .hero-mini-badges span {
    min-height: 1.85rem;
    padding: 0.34rem 0.62rem;
    font-size: 0.66rem;
    gap: 0.32rem;
  }

  .hero-mini-badges i,
  .hero-mini-badges svg {
    width: 0.9rem !important;
    height: 0.9rem !important;
  }
}

main > section {
  background:
    radial-gradient(circle at 12% 18%, hsl(var(--primary) / 0.08), transparent 30rem),
    radial-gradient(circle at 88% 82%, hsl(var(--accent) / 0.06), transparent 28rem),
    hsl(var(--background));
}

main > section.bg-card,
section.bg-card {
  background:
    linear-gradient(180deg, hsl(var(--card)), hsl(var(--background))),
    radial-gradient(circle at 85% 20%, hsl(var(--primary) / 0.08), transparent 30rem) !important;
}

main > section:last-of-type {
  background:
    radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.08), transparent 30rem),
    radial-gradient(circle at 85% 72%, hsl(var(--accent) / 0.045), transparent 26rem),
    linear-gradient(180deg, #141516 0%, #0f1011 42%, hsl(var(--background)) 100%) !important;
  border-top: 1px solid hsl(var(--foreground) / 0.07);
}

.page-hero {
  background:
    radial-gradient(circle at 94% 96%, rgba(0, 255, 255, 0.055), transparent 24rem),
    radial-gradient(circle at 86% 92%, rgba(60, 131, 246, 0.045), transparent 22rem),
    #0A0A0A !important;
}

.page-hero .bg-hero-gradient {
  opacity: 0;
}

.pricing-plans-section {
  background: #0a0a0a;
}

.pricing-plan-grid {
  padding-top: 1.5rem;
}

.starter-plan-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
  border: 1px solid hsl(var(--primary) / 0.28);
  border-radius: 1.05rem;
  background:
    radial-gradient(circle at 0% 50%, hsl(var(--accent) / 0.055), transparent 28rem),
    hsl(var(--card) / 0.35);
  padding: 2.5rem 2.7rem;
}

.starter-plan-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

.starter-plan-title h3 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0;
}

.starter-plan-title span,
.starter-plan-features span::before {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: hsl(var(--primary));
}

.starter-plan-title strong {
  color: hsl(var(--primary));
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.starter-plan-copy p {
  margin: 0 0 1.7rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.98rem;
  line-height: 1.6;
}

.starter-plan-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
}

.starter-plan-features span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  font-weight: 700;
}

.starter-plan-features span::before {
  content: "";
  display: inline-block;
}

.starter-plan-btn {
  min-width: 13rem;
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid hsl(var(--primary) / 0.32);
  border-radius: 0.55rem;
  background: hsl(var(--background) / 0.5);
  color: hsl(var(--foreground));
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}

.starter-plan-btn:hover {
  border-color: hsl(var(--primary) / 0.62);
  background: hsl(var(--primary) / 0.08);
}

.starter-plan-btn svg {
  width: 1rem;
  height: 1rem;
}

.pricing-plan-card {
  position: relative;
  min-height: 40rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid hsl(var(--foreground) / 0.09);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 30% 100%, rgba(0, 255, 255, 0.035), transparent 42%),
    hsl(var(--card) / 0.42);
  padding: 3rem 2.4rem 2rem;
}

.pricing-plan-popular {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.08);
}

.pricing-popular-badge {
  position: absolute;
  top: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}

.pricing-popular-badge svg,
.pricing-plan-btn svg,
.pricing-plan-cta svg {
  width: 1rem;
  height: 1rem;
}

.pricing-plan-card h2 {
  margin: 0 0 0.8rem;
  color: hsl(var(--foreground));
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
}

.pricing-plan-desc {
  max-width: 19rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.98rem;
  line-height: 1.55;
}

.pricing-plan-price {
  margin: 2.2rem 0 2rem;
  color: hsl(var(--primary));
  font-size: 1.18rem;
  font-weight: 650;
}

.pricing-feature-list {
  display: grid;
  gap: 1.18rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pricing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.35;
}

.pricing-feature-list svg {
  width: 1.1rem;
  height: 1.1rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pricing-plan-btn,
.pricing-plan-cta {
  width: 100%;
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.pricing-plan-btn {
  border: 1px solid hsl(var(--foreground) / 0.08);
  background: hsl(var(--foreground) / 0.015);
  color: hsl(var(--foreground));
  transition: border-color 160ms ease, background 160ms ease;
}

.pricing-plan-btn:hover {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.08);
}

.offer-builder-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #09090b;
}

.offer-builder-modal.active {
  display: flex;
  animation: modalFade 160ms ease-out both;
}

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

body.modal-open {
  overflow: hidden;
}

.offer-builder-panel {
  position: relative;
  width: 100%;
  max-height: 100svh;
  min-height: 100svh;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 88% 86%, rgba(0, 255, 255, 0.055), transparent 30rem),
    radial-gradient(circle at 18% 14%, rgba(60, 131, 246, 0.06), transparent 34rem),
    #09090b;
  color: hsl(var(--foreground));
  padding: 5.5rem max(1.5rem, calc((100vw - 74rem) / 2)) 0;
  box-shadow: none;
}

.offer-builder-panel::-webkit-scrollbar {
  width: 0.45rem;
}

.offer-builder-panel::-webkit-scrollbar-thumb {
  background: hsl(var(--foreground) / 0.18);
  border-radius: 999px;
}

.offer-builder-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 0.7rem;
  background: hsl(var(--foreground) / 0.07);
  color: hsl(var(--foreground));
  z-index: 2;
}

.offer-builder-close svg {
  width: 1rem;
  height: 1rem;
}

.offer-builder-header {
  max-width: 44rem;
  padding-right: 3.5rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.offer-builder-header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 750;
  letter-spacing: 0;
}

.offer-builder-header p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.offer-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 58rem;
  margin: 0 auto;
}

.offer-builder-card,
.offer-builder-included {
  position: relative;
  border: 1px solid hsl(var(--foreground) / 0.09);
  border-radius: 0.9rem;
  background: hsl(var(--foreground) / 0.025);
  padding: 1rem;
}

.offer-builder-tag {
  position: static;
  flex-shrink: 0;
  padding: 0.18rem 0.55rem;
  border-radius: 0.35rem;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.offer-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.28rem;
}

.offer-card-title-row h3 {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

.offer-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.offer-mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid hsl(var(--foreground) / 0.08);
  border-radius: 0.5rem;
  background: hsl(var(--foreground) / 0.035);
}

.offer-mode-btn {
  border: 0;
  border-radius: 0.38rem;
  background: transparent;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.offer-mode-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.offer-builder-card h3 {
  margin: 0 0 0.28rem 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.offer-builder-card p {
  min-height: 2.2rem;
  margin: 0 0 0.85rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  line-height: 1.4;
}

.offer-info-panel {
  display: grid;
  gap: 0.45rem;
  border: 1px solid hsl(var(--primary) / 0.13);
  border-radius: 0.65rem;
  background: hsl(var(--primary) / 0.035);
  padding: 0.75rem 0.85rem;
  margin: 0.2rem 0 1rem;
}

.offer-info-panel strong {
  color: hsl(var(--primary));
  font-size: 0.78rem;
  line-height: 1.2;
}

.offer-info-panel span {
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  line-height: 1.35;
}

.offer-check-panel {
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.65rem !important;
  border: 1px solid hsl(var(--foreground) / 0.08);
  border-radius: 0.6rem;
  background: hsl(var(--foreground) / 0.025);
  padding: 0.65rem 0.75rem;
  margin: 0 0 0.85rem !important;
  cursor: pointer;
}

.offer-check-panel input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: hsl(var(--primary));
  flex-shrink: 0;
}

.offer-check-panel span {
  display: grid;
  gap: 0.1rem;
}

.offer-builder-card .offer-check-panel strong {
  color: hsl(var(--foreground));
  font-size: 0.72rem;
  line-height: 1.25;
}

.offer-builder-card .offer-check-panel small {
  color: hsl(var(--foreground));
  font-size: 0.68rem;
  line-height: 1.25;
  opacity: 0.78;
}

.offer-builder-card label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.35rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
}

.offer-builder-card label strong {
  color: hsl(var(--primary));
  font-size: 1.05rem;
}

.offer-builder-card input[type="range"] {
  width: 100%;
  height: 0.22rem;
  appearance: none;
  border-radius: 999px;
  background: hsl(var(--foreground) / 0.08);
  outline: 0;
}

.offer-builder-card input[type="range"]::-webkit-slider-thumb {
  width: 1rem;
  height: 1rem;
  appearance: none;
  border: 0.22rem solid hsl(var(--primary));
  border-radius: 999px;
  background: hsl(var(--foreground));
  cursor: pointer;
}

.offer-range-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.66rem;
  opacity: 0.55;
}

.offer-builder-included {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.055), rgba(34, 197, 94, 0.01));
  border-color: rgba(34, 197, 94, 0.14);
}

.offer-builder-included h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-builder-included h3 svg,
.offer-builder-included span svg {
  width: 0.9rem;
  height: 0.9rem;
}

.offer-builder-included > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.offer-builder-included span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid hsl(var(--foreground) / 0.06);
  border-radius: 0.55rem;
  background: hsl(var(--foreground) / 0.025);
  color: hsl(var(--muted-foreground));
  padding: 0.55rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.offer-builder-included span svg {
  color: #22c55e;
}

.offer-builder-footer {
  grid-column: 1 / -1;
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem max(1.5rem, calc((100vw - 58rem) / 2));
  border-top: 1px solid hsl(var(--foreground) / 0.1);
  background: #09090b;
}

.offer-builder-footer span {
  display: block;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.offer-builder-footer strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 1.8rem;
  font-weight: 850;
}

.offer-builder-footer .btn {
  min-width: 10.5rem;
}

@media (max-width: 1023px) {
  .pricing-plan-card {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .pricing-plan-grid {
    padding-top: 0.5rem;
  }

  .starter-plan-strip {
    flex-direction: column;
    align-items: stretch;
    margin-top: 2rem;
    padding: 1.45rem;
  }

  .starter-plan-title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .starter-plan-title h3 {
    font-size: 1.15rem;
  }

  .starter-plan-features {
    gap: 0.85rem 1.1rem;
  }

  .starter-plan-btn {
    width: 100%;
    min-width: 0;
  }

  .pricing-plan-card {
    padding: 2.15rem 1.45rem 1.45rem;
    border-radius: 1rem;
  }

  .pricing-plan-card h2 {
    font-size: 1.24rem;
  }

  .pricing-plan-desc,
  .pricing-feature-list li {
    font-size: 0.88rem;
  }

  .pricing-plan-price {
    margin: 1.55rem 0 1.4rem;
    font-size: 1.02rem;
  }

  .pricing-feature-list {
    gap: 0.9rem;
  }

  .pricing-popular-badge {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }

  .offer-builder-modal {
    padding: 0;
  }

  .offer-builder-panel {
    max-height: 100svh;
    min-height: 100svh;
    border-radius: 0;
    padding: 4.5rem 1rem 0;
  }

  .offer-builder-header h2 {
    font-size: 1.25rem;
  }

  .offer-builder-header p {
    font-size: 0.78rem;
  }

  .offer-builder-header {
    padding-right: 0;
    margin-bottom: 1.2rem;
  }

  .offer-builder-grid,
  .offer-builder-included > div {
    grid-template-columns: 1fr;
  }

  .offer-builder-card {
    padding: 0.85rem;
  }

  .offer-builder-card h3 {
    font-size: 0.86rem;
  }

  .offer-card-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .offer-title-actions {
    width: 100%;
    justify-content: space-between;
  }

  .offer-builder-card p {
    min-height: 0;
    font-size: 0.72rem;
  }

  .offer-builder-footer {
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0.85rem 1rem;
  }

  .offer-builder-footer strong {
    font-size: 1.35rem;
  }

  .offer-builder-footer .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ===== Buttons (matching React variants) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem;
  transition: all 0.3s; cursor: pointer; text-decoration: none; border: none;
  padding: 0.5rem 1rem; height: 2.5rem; line-height: 1;
}
.btn-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; border-radius: 0.75rem; }
.btn-xl { height: 3.5rem; padding: 0 2.5rem; font-size: 1.125rem; border-radius: 0.75rem; }
.btn-sm { height: 2.25rem; padding: 0 0.75rem; border-radius: 0.375rem; }

.btn-hero {
  background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4);
}
.btn-hero:hover { transform: scale(1.02); box-shadow: 0 15px 30px -5px rgba(0,0,0,0.5); }
.btn-hero:active { transform: scale(0.98); }

.btn-hero-outline {
  background: transparent;
  border: 1px solid hsla(217, 91%, 60%, 0.5);
  color: hsl(var(--foreground));
}
.btn-hero-outline:hover { background: hsla(217, 91%, 60%, 0.1); border-color: hsl(var(--primary)); }

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--secondary)); }

.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--secondary)); }

.btn-glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  color: hsl(var(--foreground));
}
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ===== Form inputs ===== */
.form-input, .form-textarea {
  width: 100%;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: hsl(var(--primary));
}
.form-textarea { resize: none; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.is-visible { animation: fadeInUp 0.7s ease-out forwards; }

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse-soft { animation: pulseSoft 2s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.animate-float-down { animation: floatDown 5s ease-in-out infinite; }

/* Typewriter caret */
.typewriter-caret {
  display: inline-block; width: 2px; height: 1.1em;
  background: hsl(var(--primary)); margin-left: 2px;
  vertical-align: middle; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  background:
    linear-gradient(90deg, hsl(var(--background) / 0.92), hsl(var(--card) / 0.86)),
    radial-gradient(circle at top left, hsl(var(--primary) / 0.16), transparent 22rem);
  border-bottom: 1px solid hsl(var(--primary) / 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.navbar.scrolled {
  background:
    linear-gradient(90deg, hsl(var(--background) / 0.94), hsl(var(--card) / 0.9)),
    radial-gradient(circle at top left, hsl(var(--primary) / 0.18), transparent 22rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--primary) / 0.22);
}

.nav-tools {
  position: relative;
}

.nav-tools-trigger {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.nav-tools-menu {
  position: absolute;
  top: calc(100% + 1.15rem);
  left: 50%;
  width: min(22.5rem, calc(100vw - 2rem));
  padding: 0.68rem;
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 1rem;
  background: hsl(var(--background) / 0.98);
  box-shadow: 0 24px 70px -34px hsl(var(--primary) / 0.6);
  transform: translate(-50%, 0.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-tools-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1rem;
  height: 1rem;
}

.nav-tools:hover .nav-tools-menu,
.nav-tools:focus-within .nav-tools-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.tool-menu-item,
.mobile-tool-item {
  display: flex;
  align-items: center;
  gap: 0.82rem;
  text-decoration: none;
  border-radius: 0.82rem;
  color: hsl(var(--foreground));
  transition: background 0.18s ease, opacity 0.18s ease;
}

.tool-menu-item {
  padding: 0.7rem;
  margin-bottom: 2px;
}

.tool-menu-item:last-child {
  margin-bottom: 0;
}

.tool-menu-item:hover,
.mobile-tool-item:hover,
.tool-menu-item.bg-secondary,
.mobile-tool-item.bg-secondary {
  background: hsl(var(--foreground) / 0.045) !important;
}

[data-nav-link].bg-secondary,
[data-free-tools-trigger].bg-secondary,
[data-mobile-tools-toggle].bg-secondary,
#mobile-menu > .container-tight a.bg-secondary,
#mobile-menu a.bg-secondary {
  background: hsl(var(--foreground) / 0.045) !important;
  color: hsl(var(--foreground)) !important;
}

.tool-menu-icon {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.62rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.16), hsl(var(--accent) / 0.08));
  color: hsl(var(--primary));
}

.tool-menu-item strong,
.mobile-tool-item strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.tool-menu-item small,
.mobile-tool-item small {
  display: block;
  margin-top: 0.24rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  line-height: 1.35;
}

.mobile-tools {
  margin: 0.25rem 0;
}

.mobile-tools-toggle {
  width: 100%;
  min-height: 3.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.mobile-tools-toggle:hover {
  background: hsl(var(--foreground) / 0.09);
  color: hsl(var(--foreground));
}

.mobile-tools-toggle svg,
.mobile-tools-toggle i {
  transition: transform 0.18s ease;
}

.mobile-tools-panel {
  display: grid;
  gap: 0.48rem;
  margin-left: 1.8rem;
  padding: 0.35rem 0 0.55rem 1.75rem;
  border-left: 1px solid hsl(var(--foreground) / 0.16);
}

.mobile-tools-panel.is-collapsed {
  display: none;
}

.mobile-tool-item {
  padding: 0.65rem 0.85rem;
}

@media (max-width: 767px) {
  .navbar .container-tight > .flex {
    height: 4rem !important;
    min-height: 4rem !important;
  }

  .navbar img[alt="InsightBound"] {
    height: 3rem !important;
    max-height: 3rem !important;
  }

  #mobile-menu-btn svg,
  #mobile-menu-btn i {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  #mobile-menu a:not(.btn),
  #mobile-menu .mobile-tools-toggle {
    font-weight: 560 !important;
  }

  #mobile-menu {
    overflow-y: auto;
  }

  #mobile-menu .container-tight {
    padding-left: 1.65rem;
    padding-right: 1.65rem;
  }

  #mobile-menu .container-tight.py-8 {
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;
  }

  #mobile-menu .flex.flex-col.gap-2 {
    gap: 0.3rem !important;
  }

  #mobile-menu .flex.flex-col.gap-2 > a:not(.btn) {
    min-height: 2.85rem;
    display: flex !important;
    align-items: center;
    padding: 0 1.05rem !important;
    font-size: 0.96rem !important;
  }

  #mobile-menu .mobile-tools {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
  }

  #mobile-menu .mobile-tools-toggle {
    min-height: 2.9rem;
    padding: 0 1.05rem;
    font-size: 0.98rem !important;
    border-radius: 0.55rem;
  }

  #mobile-menu .mobile-tools-panel {
    margin-left: 1.75rem;
    padding-left: 1.75rem;
    padding-top: 0.42rem;
    gap: 0.5rem;
  }

  #mobile-menu .mobile-tool-item {
    gap: 0.86rem;
    min-height: 3.92rem;
    padding: 0.58rem 0.78rem;
    border-radius: 0.78rem;
  }

  #mobile-menu .tool-menu-icon {
    width: 2.45rem;
    height: 2.45rem;
    flex-basis: 2.45rem;
    border-radius: 0.58rem;
  }

  #mobile-menu .tool-menu-icon svg,
  #mobile-menu .tool-menu-icon i {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }

  #mobile-menu .mobile-tool-item strong {
    font-size: 0.9rem !important;
    line-height: 1.18;
    font-weight: 600;
  }

  #mobile-menu .mobile-tool-item small {
    margin-top: 0.16rem;
    font-size: 0.68rem !important;
    line-height: 1.28;
    font-weight: 400;
  }

  #mobile-menu .mt-6.flex.flex-col {
    flex-direction: row !important;
    gap: 0.75rem !important;
    margin-top: 1.45rem !important;
  }

  #mobile-menu .mt-6.flex.flex-col .btn {
    flex: 1 1 0;
    min-width: 0;
    height: 2.8rem;
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }

  main > section:first-of-type {
    min-height: 0;
  }

  .page-hero {
    min-height: 56svh !important;
    display: flex;
    align-items: center;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .page-hero .container-tight {
    width: 100%;
  }

  .page-hero h1 {
    font-size: 2.05rem !important;
    line-height: 1.08 !important;
    margin-bottom: 1.45rem !important;
    text-align: center;
  }

  .page-hero p {
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.08rem !important;
    line-height: 1.65 !important;
  }

  .page-hero-product,
  .page-hero-left {
    align-items: center;
  }

  .page-hero-product .max-w-3xl,
  .page-hero-left .max-w-3xl {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  .page-hero-product h1,
  .page-hero-product p,
  .page-hero-left h1,
  .page-hero-left p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-hero-product {
    min-height: 70svh !important;
  }
}

footer {
  background:
    linear-gradient(180deg, #101113 0%, #0d0d0e 100%) !important;
  border-top-color: hsl(var(--foreground) / 0.08) !important;
}

footer .section-padding {
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
}

footer .grid {
  align-items: start;
}

footer h4 {
  color: hsl(var(--foreground));
  font-weight: 600;
}

footer ul a,
footer p,
footer .pt-8 a {
  font-size: 0.9rem !important;
}

.recaptcha-notice {
  max-width: 16rem;
  margin-top: 0.55rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.64rem !important;
  line-height: 1.42;
  opacity: 0.58;
}

.recaptcha-notice a {
  color: hsl(var(--muted-foreground));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recaptcha-notice a:hover {
  color: hsl(var(--foreground));
}

.footer-social {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.footer-social:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.footer-newsletter {
  position: relative;
  display: block;
}

.footer-newsletter input {
  min-width: 0;
  width: 100%;
  height: 2.65rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.45rem;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  padding: 0 4.45rem 0 0.9rem;
  font: inherit;
  font-size: 0.9rem;
}

.footer-newsletter input::placeholder {
  color: hsl(var(--muted-foreground));
}

.footer-newsletter button {
  position: absolute;
  top: 0.32rem;
  right: 0.32rem;
  height: calc(100% - 0.64rem);
  border: 0;
  border-radius: 0.35rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  min-width: 3.75rem;
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.footer-newsletter button:hover {
  background: hsl(var(--primary) / 0.9);
}

@media (max-width: 768px) {
  footer .section-padding {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .footer-newsletter input {
    padding-right: 4.45rem;
  }

  .footer-newsletter button {
    font-size: 0.78rem;
  }
}

/* Soft scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--secondary)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted)); }

/* Toast */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 0.75rem; padding: 1rem 1.25rem; min-width: 280px;
  box-shadow: var(--shadow-elevated);
  animation: fadeInUp 0.3s ease-out;
}
.toast-title { font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.toast-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.toast.error { border-color: hsl(var(--destructive)); }

/* Chatbot */
body.menu-open #ib-chat-btn,
body.menu-open #ib-chat-window {
  display: none !important;
}

#ib-chat-btn {
  position: fixed;
  right: calc(28px + 1px);
  bottom: 30px;
  z-index: 80;
  width: 60px;
  height: 60px;
  border: 1px solid hsl(var(--foreground) / 0.08);
  border-radius: 999px;
  background: #171526;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px hsl(0 0% 0% / 0.45);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

#ib-chat-btn:hover,
#ib-chat-btn.active {
  transform: translateY(-1px);
  border-color: hsl(var(--foreground) / 0.14);
  background: #201d33;
}

#ib-chat-btn.active {
  border-color: hsl(var(--accent) / 0.72);
  box-shadow: 0 18px 45px hsl(0 0% 0% / 0.45);
  animation: none;
}

#ib-chat-btn svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none;
}

#ib-chat-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border: 2px solid #171526;
  border-radius: 999px;
  background: hsl(var(--destructive));
  animation: ibPulse 1.6s infinite;
}

#ib-chat-window {
  position: fixed;
  right: calc(28px + 1px);
  bottom: 102px;
  z-index: 79;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 7rem));
  border: 1px solid hsl(var(--border));
  border-radius: 1.05rem;
  background:
    radial-gradient(circle at top right, hsl(var(--primary) / 0.13), transparent 16rem),
    linear-gradient(180deg, #111214 0%, #0b0c0d 100%);
  box-shadow: 0 24px 70px hsl(0 0% 0% / 0.62);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}

#ib-chat-window.open {
  display: flex;
  animation: ibSlideUp 220ms ease-out;
}

#ib-chat-window.chatting {
  height: min(560px, calc(100vh - 7rem));
}

#ib-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--foreground) / 0.03);
}

#ib-chat-header img,
.ib-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ib-chat-header > img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid hsl(var(--accent) / 0.8);
}

#ib-chat-header-info {
  min-width: 0;
  flex: 1;
}

#ib-chat-header-info h4 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  font-weight: 600;
}

#ib-chat-header-info span {
  display: block;
  margin-top: 0.1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.74rem;
}

#ib-chat-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.55rem;
  background: hsl(var(--secondary) / 0.72);
  color: hsl(var(--foreground));
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

#ib-email-gate {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.4rem;
}

#ib-email-gate[hidden],
#ib-messages[hidden],
#ib-input-area[hidden],
#ib-load-more[hidden] {
  display: none !important;
}

#ib-email-gate p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.86rem;
  line-height: 1.55;
}

#ib-email-gate input,
#ib-input-area input {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: 0.7rem;
  background: hsl(var(--secondary) / 0.72);
  color: hsl(var(--foreground));
  outline: none;
  font: inherit;
  font-size: 0.86rem;
}

#ib-email-gate input {
  padding: 0.78rem 0.9rem;
}

#ib-email-gate input:focus,
#ib-input-area input:focus {
  border-color: hsl(var(--primary) / 0.72);
}

#ib-email-gate input.invalid {
  border-color: hsl(var(--destructive));
}

#ib-email-submit,
#ib-send-btn {
  border: 0;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
  cursor: pointer;
}

#ib-email-submit {
  border-radius: 0.7rem;
  padding: 0.78rem 1rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
}

#ib-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--primary)) transparent;
}

#ib-load-more {
  order: -9999;
  text-align: center;
}

#ib-load-more button {
  border: 1px solid hsl(var(--primary) / 0.28);
  border-radius: 999px;
  background: transparent;
  color: hsl(var(--primary));
  padding: 0.38rem 0.8rem;
  font-size: 0.72rem;
  cursor: pointer;
}

#ib-load-more button.is-loading {
  min-width: 7.75rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  cursor: wait;
}

#ib-load-more button.is-loading span {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  animation: ibBounce 0.9s infinite;
}

#ib-load-more button.is-loading span:nth-child(2) { animation-delay: 0.12s; }
#ib-load-more button.is-loading span:nth-child(3) { animation-delay: 0.24s; }

[data-turn] {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ib-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.ib-msg.ib-user {
  flex-direction: row-reverse;
}

.ib-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  font-weight: 700;
}

.ib-msg-bubble {
  max-width: 78%;
  padding: 0.62rem 0.78rem;
  border-radius: 0.95rem;
  color: hsl(var(--foreground));
  font-size: 0.82rem;
  line-height: 1.52;
  white-space: pre-wrap;
  word-break: break-word;
}

.ib-bot .ib-msg-bubble {
  border-bottom-left-radius: 0.28rem;
  background: hsl(var(--secondary) / 0.78);
  border: 1px solid hsl(var(--border) / 0.65);
}

.ib-user .ib-msg-bubble {
  border-bottom-right-radius: 0.28rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
}

.ib-msg-time {
  display: block;
  margin-top: 0.22rem;
  color: hsl(var(--foreground) / 0.62);
  font-size: 0.64rem;
  text-align: right;
}

.ib-typing {
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

.ib-typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: hsl(var(--accent));
  animation: ibBounce 1s infinite;
}

.ib-typing span:nth-child(2) { animation-delay: 0.15s; }
.ib-typing span:nth-child(3) { animation-delay: 0.3s; }

.ib-info-msg {
  align-self: center;
  border: 1px dashed hsl(var(--primary) / 0.28);
  border-radius: 999px;
  background: hsl(var(--primary) / 0.06);
  color: hsl(var(--primary));
  padding: 0.28rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
}

#ib-input-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 1rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.72);
}

#ib-input-area input {
  flex: 1;
  padding: 0.72rem 0.82rem;
}

#ib-send-btn {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

#ib-send-btn svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: currentColor;
}

#ib-input-area.loading {
  opacity: 0.72;
  pointer-events: none;
}

@keyframes ibPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 hsl(var(--destructive) / 0.7); }
  70% { transform: scale(1.18); box-shadow: 0 0 0 0.72rem hsl(var(--destructive) / 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 hsl(var(--destructive) / 0); }
}

@keyframes ibSlideUp {
  from { opacity: 0; transform: translateY(0.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ibBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.45; }
  40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  #ib-chat-window {
    right: 16px;
    bottom: 100px;
    width: calc(100vw - 32px);
  }

  #ib-chat-btn {
    right: 24px;
    bottom: 29.5px;
    width: 60px;
    height: 60px;
  }

  #ib-chat-btn svg {
    width: 34px;
    height: 34px;
    transform: none;
  }

  #ib-chat-dot {
    width: 14px;
    height: 14px;
  }
}
