:root {
  color-scheme: light;
  --background: #f8fafc;
  --background-alt: #eef2ff;
  --foreground: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --card: rgba(255, 255, 255, 0.72);
  --card-strong: rgba(255, 255, 255, 0.92);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --accent: #7c3aed;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  --grid-line: rgba(15, 23, 42, 0.028);
  --orb-one: radial-gradient(circle, rgba(125, 211, 252, 0.8), rgba(37, 99, 235, 0.12) 58%, transparent 72%);
  --orb-two: radial-gradient(circle, rgba(147, 197, 253, 0.6), rgba(37, 99, 235, 0.08) 56%, transparent 72%);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #020617;
  --background-alt: #0f172a;
  --foreground: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --card: rgba(15, 23, 42, 0.6);
  --card-strong: rgba(30, 41, 59, 0.8);
  --primary: #3b82f6;
  --primary-dark: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --accent: #a78bfa;
  --success: #4ade80;
  --success-bg: rgba(22, 163, 74, 0.12);
  --error: #f87171;
  --error-bg: rgba(185, 28, 28, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --grid-line: rgba(255, 255, 255, 0.05);
  --orb-one: radial-gradient(circle, rgba(59, 130, 246, 0.45), rgba(37, 99, 235, 0.06) 58%, transparent 72%);
  --orb-two: radial-gradient(circle, rgba(139, 92, 246, 0.35), rgba(124, 58, 237, 0.04) 56%, transparent 72%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  background-image:
    radial-gradient(circle at top left, var(--primary-soft), transparent 34%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 28%),
    linear-gradient(180deg, var(--background-alt) 0%, var(--background) 42%, var(--background) 100%);
  color: var(--foreground);
  transition: background-color 300ms ease, color 300ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 72%);
  z-index: 1;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3");
}

[data-theme="dark"] .noise-overlay {
  opacity: 0.07;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.95;
  pointer-events: none;
  z-index: -1;
}

.orb.one {
  top: -64px;
  right: -42px;
  width: 240px;
  height: 240px;
  background: var(--orb-one);
}

.orb.two {
  top: 220px;
  left: -80px;
  width: 180px;
  height: 180px;
  background: var(--orb-two);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 64px 0 44px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-promise {
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  border-left: 3px solid rgba(37, 99, 235, 0.6);
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.05);
}

.hero-promise p {
  margin: 0;
  color: var(--foreground);
  line-height: 1.6;
}

.bilingual {
  display: block;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.language-flag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-height: 48px;
  width: 50%;
  height: 48px;
  padding: 0 18px;
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.language-flag-button:hover {
  background: var(--primary-soft);
}

.language-flag-button:first-child {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.language-flag-button:last-child {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.language-flag-button.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card-strong);
  color: var(--foreground);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: all 200ms ease;
  overflow: hidden;
  position: relative;
}

.theme-toggle:hover {
  background: var(--card-strong);
  border-color: var(--primary-soft);
  transform: translateY(-1px);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--background-alt);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
}

/* Toggle Logic Icons */
[data-theme="light"] .theme-toggle .sun-icon { transform: translateY(0) rotate(0); opacity: 1; }
[data-theme="light"] .theme-toggle .moon-icon { transform: translateY(30px) rotate(45deg); opacity: 0; }
[data-theme="dark"] .theme-toggle .sun-icon { transform: translateY(-30px) rotate(-45deg); opacity: 0; }
[data-theme="dark"] .theme-toggle .moon-icon { transform: translateY(0) rotate(0); opacity: 1; }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.headline {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 6.6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.headline .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subheadline {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.hero-highlights {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--foreground);
  line-height: 1.5;
}

.hero-highlights li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 0.42em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px var(--primary-soft);
}

.hero-panel {
  display: grid;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  transition: min-height 0.4s ease;
}

.waitlist-content,
.waitlist-success-panel {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 0;
}

.hero-panel.is-submitting .waitlist-content {
  opacity: 0.6;
  pointer-events: none;
}

.hero-panel.is-success .waitlist-content {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  visibility: hidden;
  position: absolute;
}

.waitlist-success-panel[hidden] {
  display: none;
}

.waitlist-success-panel:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: waitlist-success-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes waitlist-success-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.waitlist-success-panel h3 {
  margin: 16px 0 12px !important;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--foreground);
}

.waitlist-success-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 !important;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.panel-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.85;
}

.trust-signal::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.launch-date {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--foreground);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.waitlist-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 10px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--foreground);
}

.note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--muted);
}

.privacy-note {
  margin: 6px 0 0;
  text-align: center;
}

.privacy-link {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.7;
  transition: opacity 180ms ease;
}

.privacy-link:hover {
  opacity: 1;
}

.privacy-link--footer {
  margin-left: 0;
}

/* Modal System */
.modal,
.modal:modal {
  padding: 0 !important;
  border: 0 !important;
  border-width: 0 !important;
  outline: 0 !important;
  background: none !important;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: 85vh;
  margin: auto;
  overflow: visible;
  box-shadow: none !important;
}

.modal::backdrop {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: modal-fade-in 400ms ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  animation: modal-zoom-in 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-zoom-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-shell {
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: rgba(15, 23, 42, 0.02);
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
}

.modal-close-icon {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  border-radius: 50%;
  transition: background 180ms ease;
}

.modal-close-icon:hover {
  background: var(--primary-soft);
  color: var(--foreground);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  max-height: 50vh;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--foreground);
}

.modal-section p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}

.modal-footer {
  padding: 24px 32px;
  background: rgba(15, 23, 42, 0.02);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }
}

/* Success Modal Specifics */
.success-body {
  padding: 56px 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.success-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
  margin: 0 !important;
}

.success-body h3 {
  margin: 0 !important;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.03em;
}

.success-body p {
  margin: 0 0 8px !important;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.success-body .action-button {
  width: 100%;
  margin-top: 8px;
}

.success-body .action-button {
  width: 100%;
  justify-content: center;
}

.field input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-size: 0.92rem;
  font-weight: 600;
}

.field input::placeholder {
  color: rgba(71, 85, 105, 0.8);
}

.field input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.submit-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 240px;
  height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.24);
  margin-inline: auto;
  flex: 0 0 auto;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.action-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(37, 99, 235, 0.28);
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.status.is-success {
  background: var(--success);
  color: white;
}

.status.is-error {
  color: #b91c1c;
}

.signal-grid,
.section-grid {
  display: grid;
  gap: 18px;
}

.signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 22px;
}

.signal-card,
.section-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

.signal-card {
  padding: 22px;
}

.signal-card .eyebrow-small {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-section {
  padding: 26px 0 10px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-card {
  padding: 24px;
  min-height: 100%;
}

.section-card .eyebrow-small {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}

.section-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--foreground);
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.dialog-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dialog {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-strong);
}

.dialog strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.dialog p {
  margin: 0;
  color: var(--foreground);
  line-height: 1.55;
}

.dialog.bot {
  background: rgba(37, 99, 235, 0.08);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.pricing-card .action-button {
  align-self: center;
  margin-top: auto;
}

.pricing-card.is-featured {
  background: linear-gradient(180deg, var(--card-strong), var(--background-alt));
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.12);
}

.pricing-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.pricing-card h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.pricing-card .feature-list {
  flex: 1 1 auto;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: 18px 20px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
}

.section-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--foreground);
}

.section-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.comparison-table tbody th,
.comparison-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tbody th {
  width: 22%;
  color: var(--foreground);
  font-weight: 700;
}

.comparison-table tbody td {
  color: var(--muted);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tbody tr:nth-child(even) td,
.comparison-table tbody tr:nth-child(even) th {
  background: var(--background-alt);
  opacity: 0.95;
}

.comparison-section th {
  padding: 14px 20px;
  background: var(--primary-soft) !important;
  color: var(--primary-dark) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table tbody td:first-of-type {
  color: var(--foreground);
}

.price-period {
  font-size: 0.96rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: normal;
}

.featured-badge {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.faq-stack {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  color: var(--foreground);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover,
.faq-item[open] summary {
  background: var(--primary-soft);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.04);
}

/* Clean Bilingual Toggle: Inactive items are ALWAYS removed from layout flow */
.lang-main,
.lang-alt {
  display: none !important;
  animation: langFadeIn 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Active language selection (Specific enough to override standard display rules) */
html[data-ui-lang="es"] .lang-main,
html[data-ui-lang="en"] .lang-alt {
  display: inline-block !important; /* Adaptable to both block and inline contexts */
}

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

/* Individual component resets to handle specific text-area alignment if needed */
.hero-highlights li,
.pricing-card li {
  display: flex;
}

.faq-item p {
  display: flex;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.96rem;
  background: var(--background-alt);
}

/* Ensure summaries also handle block-level spans correctly if active */
.faq-item summary span {
  display: inline-block;
  vertical-align: middle;
}

.cta-section {
  padding-bottom: 56px;
}

.cta-panel {
  display: grid;
  gap: 18px;
  text-align: left;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-band--tight {
  padding-bottom: 18px;
}

.powered-by {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.trust-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0 68px;
}

.trust-chip {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-size: 0.92rem;
  font-weight: 600;
}

}

/* --- Interactive Tabs --- */

.tab-nav-container {
  margin-top: 14px;
}

.tab-nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Hide scrollbar for Chrome/Safari */
  -ms-overflow-style: none;
  /* Hide scrollbar for IE/Edge */
  width: fit-content;
  max-width: 100%;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-button {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 180ms ease;
}

.tab-button:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--foreground);
}

.tab-button.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.14);
}

.tab-panels {
  position: relative;
  margin-top: 24px;
}

.tab-panel {
  display: none;
  animation: tab-fade-in 320ms ease forwards;
}

.tab-panel.is-active {
  display: block;
}

@keyframes tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tab-panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.tab-panel-grid--tech {
  grid-template-columns: 1fr;
}

.tab-panel-copy {
  display: grid;
  gap: 16px;
}

.feature-list--columns {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

/* --- Expandable Table --- */

.expandable-table-container {
  position: relative;
  overflow: hidden;
}

.expandable-table-container:not(.is-expanded) {
  max-height: 480px;
}

.table-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--background), transparent);
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 5;
}

.is-expanded .table-overlay {
  opacity: 0;
}

.table-actions {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding-bottom: 24px;
  z-index: 10;
}

.expand-button {
  background: var(--card-strong) !important;
  color: var(--primary-dark) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
}

.expand-button:hover {
  background: var(--card-strong) !important;
}

.comparison-selectors {
  display: none;
}

.comparison-selectors select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--foreground);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20256%20256'%3E%3Cpath%20fill%3D'%23475569'%20d%3D'M225.8%2C102.8l-84%2C84c-2.1%2C2.1-4.8%2C3.2-7.8%2C3.2s-5.7-1.1-7.8-3.2l-84-84c-4.3-4.3-4.3-11.3%200-15.6s11.3-4.3%2015.6%2C0L134%2C163.2l76.2-76.2c4.3-4.3%2011.3-4.3%2015.6%2C0S230.1%2C98.5%2C225.8%2C102.8z'%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px top 50%;
  background-size: 14px auto;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.comparison-selectors select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.action-button--secondary {
  max-width: 280px;
  background: var(--card-strong);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.action-button--secondary:hover:not(:disabled) {
  background: #fff;
  border-color: var(--primary-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.92rem;
}

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

.footer-tagline {
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
  font-size: 0.92rem;
  opacity: 0.8;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.build-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 0.02em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0.92;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.footer-contact {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.privacy-link--footer {
  color: var(--muted) !important;
}

.privacy-link--footer:hover {
  color: var(--foreground) !important;
}

/* --- Atmospheric Framing --- */

.ground-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 400px;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(37, 99, 235, 0.08),
    transparent 80%
  );
  pointer-events: none;
  z-index: -1;
}

[data-theme="dark"] .ground-glow {
  background: radial-gradient(
    circle at 50% 100%,
    rgba(37, 99, 235, 0.12),
    transparent 80%
  );
}

.footer strong {
  color: var(--foreground);
}

@media (max-width: 960px) {

  .hero,
  .signal-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .signal-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
  }

  .topbar {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .topbar {
    padding-top: 18px;
  }

  .brand span {
    font-size: 0.85rem;
  }

  .hero {
    gap: 22px;
    padding: 24px 0 36px;
  }

  .hero-panel,
  .signal-card,
  .section-card,
  .pricing-card {
    padding: 20px;
  }

  .headline {
    max-width: 12ch;
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .action-button {
    width: 100%;
  }

  .cta-actions {
    flex-direction: column;
  }

  .expandable-table-container {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .comparison-table-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .comparison-table {
    table-layout: fixed;
    width: 100% !important;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
  }

  /* Universal Column Synchronization */
  .comparison-table th:nth-child(1),
  .comparison-table td:nth-child(1) {
    width: 42% !important;
    text-align: left;
    padding: 8px 10px;
    font-size: 0.65rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    color: var(--muted);
  }

  .comparison-table th:nth-child(2),
  .comparison-table td:nth-child(2),
  .comparison-table th:nth-child(3),
  .comparison-table td:nth-child(3) {
    width: 29% !important;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.68rem;
    font-weight: 600;
  }

  .comparison-table thead tr {
    background: var(--card-strong);
    border-bottom: 2px solid var(--primary);
  }

  .plan-selector-header {
    padding: 0 !important;
    position: relative;
    background: var(--primary-soft);
  }

  /* Integrated Chevron Signifier */
  .plan-selector-header::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
  }

  [data-theme="dark"] .plan-selector-header::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.6;
  }

  .header-plan-select {
    width: 100%;
    height: 100%;
    min-height: 48px;
    padding: 0 12px 0 2px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    text-align: center;
  }

  [data-theme="dark"] .plan-selector-header {
    background: rgba(37, 99, 235, 0.2);
  }

  .comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
  }

  .comparison-table tr.comparison-section th {
    background: var(--background-alt);
    font-size: 0.6rem;
    padding: 6px 10px;
    text-transform: uppercase;
    width: 100% !important;
    color: var(--primary);
    letter-spacing: 0.05em;
  }

}

/* --- Reveal Animations --- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

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

/* --- Magnetic Helper --- */
.action-button,
.theme-toggle,
.language-flag-button,
.brand {
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.action-button:hover,
.theme-toggle:hover,
.language-flag-button:hover,
.brand:hover {
  transition: transform 100ms linear;
}

/* --- Button States (Morphing) --- */

.action-button {
  position: relative;
  overflow: hidden;
}

.action-button.is-loading .lang-main,
.action-button.is-loading .lang-alt {
  opacity: 0 !important;
}

.action-button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

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

.action-button.is-success {
  background: var(--success) !important;
  pointer-events: none;
}

.action-button.is-success::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
}

/* --- Cookie Consent Banner --- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  z-index: 1000;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner:not([hidden]) {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cookie-content {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-content p {
  font-size: 0.92rem;
  color: var(--foreground-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* --- Mobile Hero CTA Logic --- */
.hero-actions--mobile {
  display: none;
}

@media (max-width: 860px) {
  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions--mobile {
    display: flex;
    justify-content: center;
    margin: 12px 0 24px;
    width: 100%;
  }

  .hero-promise {
    border-left: 0;
    border-top: 3px solid rgba(37, 99, 235, 0.4);
    padding: 20px 0 0;
    justify-content: center;
    text-align: center;
  }

  .hero-highlights {
    text-align: left;
    margin: 0 auto;
    width: fit-content;
  }
}