:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #38bdf8;
  --accent: #06b6d4;
  --navy: #0f172a;
  --navy-soft: #172554;
  --green: #10b981;
  --amber: #f59e0b;
  --rose: #fb7185;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.18);
  --radius: 28px;
  --radius-md: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.22), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.18), transparent 34rem),
    linear-gradient(180deg, #eef4ff 0%, var(--bg) 380px);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.65), transparent 35rem);
}

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

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

input, textarea, select {
  width: 100%;
}

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

p {
  margin: 0 0 16px;
}

ul {
  margin-top: 8px;
  margin-bottom: 18px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(246, 248, 251, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.55);
}

.nav-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.03em;
  min-width: max-content;
}

.brand-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.brand-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  color: #0f172a;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.footer-logo {
  width: fit-content;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.nav-list a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active {
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.28);
}

.btn-with-icon .btn-icon,
.btn-login .btn-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  line-height: 1;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
  transition: transform .2s ease, background .2s ease;
}

.btn-with-icon .btn-icon {
  color: var(--primary);
  background: rgba(255, 255, 255, .92);
}

.btn-with-icon:hover .btn-icon,
.btn-with-icon:focus-visible .btn-icon {
  transform: translateX(2px);
}

.btn-login {
  position: relative;
  isolation: isolate;
  min-height: 43px;
  padding: 9px 12px 9px 17px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 56%, #06b6d4 100%);
  border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .23), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.btn-login::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 44%);
}

.btn-login::after {
  content: "";
  position: absolute;
  top: -65%;
  left: -55%;
  z-index: -1;
  width: 58%;
  height: 230%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .30), transparent);
  transform: rotate(18deg);
  transition: left .55s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .48);
  box-shadow: 0 20px 45px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn-login:hover::after,
.btn-login:focus-visible::after {
  left: 120%;
}

.btn-login .btn-icon {
  color: #0f172a;
  background: rgba(255, 255, 255, .94);
}

.btn-login:hover .btn-icon,
.btn-login:focus-visible .btn-icon {
  transform: translate(2px, -2px);
}

.btn-ghost {
  color: #e0f2fe;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.badge,
.hero span,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.kicker {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.14);
  padding: 7px 13px;
  margin-bottom: 16px;
}

.section {
  padding: 86px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  margin-bottom: 10px;
}

.section-title,
.home-hero h1,
.cta-panel h2 {
  color: var(--navy);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 56px);
}

.section-text {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.home-hero {
  position: relative;
  padding: 74px 0 54px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 26px 0 auto 0;
  height: 580px;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 35%, rgba(56, 189, 248, .22), transparent 22rem),
    radial-gradient(circle at 72% 20%, rgba(37, 99, 235, .20), transparent 28rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  position: relative;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  max-width: 760px;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 46%, #0f172a 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #475569;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-bullets span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(203, 213, 225, .76);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  font-weight: 750;
  font-size: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .12);
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .95), rgba(37, 99, 235, .84), rgba(56, 189, 248, .72));
  box-shadow: var(--shadow-lg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -160px -90px auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .30);
  filter: blur(8px);
}

.hero-card img {
  position: relative;
  border-radius: 24px;
  box-shadow: 0 22px 65px rgba(15, 23, 42, .22);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 186px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, .14);
}

.float-card strong {
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.float-card span {
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}

.float-card.one {
  left: -28px;
  bottom: 34px;
}

.float-card.two {
  right: -24px;
  top: 42px;
}

.integrations-strip {
  padding: 18px 0 42px;
}

.strip-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.strip-title {
  margin: 0;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.strip-text {
  margin: 2px 0 0;
  color: var(--muted);
}

.logo-cloud {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, .8);
  background: rgba(248, 250, 252, .9);
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}

.logo-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

.feature-card,
.solution-card,
.legal-card,
.metric-card,
.contact-card,
.timeline-step,
.mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .78);
  background: rgba(255, 255, 255, .78);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
  backdrop-filter: blur(14px);
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .24);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .12);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 32px rgba(37, 99, 235, .22);
  font-weight: 900;
}

.feature-card h3,
.solution-card h3,
.legal-card h3,
.contact-card h3,
.mini-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-size: 22px;
}

.feature-card p,
.solution-card p,
.legal-card p,
.contact-card p,
.mini-card p,
.timeline-step p {
  color: var(--muted);
  margin: 0;
}

.feature-card ul,
.solution-card ul {
  color: #475569;
  padding-left: 18px;
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(320px, 1.06fr);
  gap: 34px;
  align-items: center;
}

.dark-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: clamp(26px, 4vw, 44px);
  color: #e2e8f0;
  background:
    radial-gradient(circle at 10% 15%, rgba(56, 189, 248, .28), transparent 18rem),
    linear-gradient(135deg, #0f172a, #172554 58%, #2563eb);
  box-shadow: var(--shadow-lg);
}

.dark-panel::after {
  content: "";
  position: absolute;
  inset: auto -120px -130px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(56, 189, 248, .24);
  filter: blur(10px);
}

.dark-panel h2,
.dark-panel h3 {
  color: #fff;
}

.dark-panel .section-title {
  color: #fff;
}

.dark-panel .section-text {
  color: rgba(226, 232, 240, .78);
}

.timeline {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  color: #dbeafe;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
}

.timeline-step p {
  color: rgba(226, 232, 240, .76);
}

.timeline-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0f172a;
  background: #e0f2fe;
  font-weight: 900;
}

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

.solution-card {
  padding: 24px;
}

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

.metric-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 8px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 750;
}

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

.legal-card {
  min-height: 218px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.legal-card:hover,
.legal-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 28px 65px rgba(15, 23, 42, .12);
  outline: none;
}

.legal-card .arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: rgba(37, 99, 235, .10);
  font-weight: 900;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: 36px;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 82% 10%, rgba(56, 189, 248, .32), transparent 20rem),
    linear-gradient(135deg, #0f172a, #1e3a8a 58%, #2563eb);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 62px);
}

.cta-panel p {
  color: rgba(226, 232, 240, .82);
  font-size: 18px;
  max-width: 720px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.contact-card {
  padding: 26px;
}

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

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #475569;
  margin: 0;
}

.check {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 12px;
  font-weight: 900;
}

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

.field label {
  display: block;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 16px;
  background: rgba(248, 250, 252, .92);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(37, 99, 235, .62);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
  background: #fff;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.developer-card {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, .16);
  background:
    radial-gradient(circle at 90% 0%, rgba(56, 189, 248, .28), transparent 12rem),
    rgba(255, 255, 255, .72);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
  display: grid;
  gap: 2px;
}

.developer-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.developer-card strong {
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -0.035em;
}

.developer-card a,
.form-note a,
.contact-box a,
.developer-credit a {
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
}

.developer-card a:hover,
.form-note a:hover,
.contact-box a:hover,
.developer-credit a:hover {
  text-decoration: underline;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.form-status.is-success {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.form-status.is-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}

.site-footer {
  margin-top: 80px;
  padding: 42px 0;
  color: #475569;
  border-top: 1px solid rgba(203, 213, 225, .68);
  background: rgba(255, 255, 255, .48);
}

.footer-grid {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 12px;
  max-width: 490px;
}

.footer-brand .brand-logo {
  width: 48px;
  height: 48px;
}

.footer-brand .brand-logo img {
  width: 36px;
  height: 36px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px 24px;
  font-weight: 750;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
  outline: none;
}

.footer-bottom {
  width: min(var(--container), calc(100% - 40px));
  margin: 26px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(203, 213, 225, .72);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.developer-credit strong {
  color: var(--navy);
}

/* Legal pages: preservan la base visual original y comparten el mismo CSS */
.page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 48px 20px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(56, 189, 248, 0.55), transparent 16rem),
    linear-gradient(135deg, #0f172a, #2563eb, #38bdf8);
  color: #ffffff;
  padding: 48px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.hero span {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.content {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.content h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 24px;
  color: #111827;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.025em;
}

.content h2:first-of-type {
  margin-top: 26px;
}

.content h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 18px;
  color: #1f2937;
  letter-spacing: -0.018em;
}

.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 18px 20px;
  border-radius: 18px;
  margin: 24px 0;
}

.box,
.meta-box,
.contact-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin: 18px 0;
}

.contact-box {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #164e63;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.step {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px 18px 58px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.security-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.security-card strong {
  display: block;
  color: #111827;
  margin-bottom: 8px;
  font-size: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .two-col,
  .contact-wrap,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 720px;
    margin: 0 auto;
  }

  .feature-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .logo-cloud {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(203, 213, 225, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

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

  .nav-list a {
    width: 100%;
    border-radius: 14px;
  }

  .header-actions .btn-login {
    display: inline-flex;
    min-height: 40px;
    padding: 9px 14px;
  }
}

@media (max-width: 700px) {
  .container,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding: 10px 0;
  }

  .nav-shell {
    width: min(100% - 24px, var(--container));
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand-logo img {
    width: 30px;
    height: 30px;
  }

  .brand-text {
    font-size: 20px;
  }

  .home-hero {
    padding-top: 42px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero-actions,
  .cta-panel .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-panel .btn {
    width: 100%;
  }

  .float-card {
    position: static;
    margin-top: 12px;
  }

  .feature-grid,
  .solution-grid,
  .metric-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 28px 14px 0;
  }

  .hero,
  .content {
    padding: 28px;
    border-radius: 22px;
  }

  .step {
    padding-left: 20px;
    padding-top: 58px;
  }

  .step::before {
    top: 18px;
    left: 20px;
  }

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


@media (max-width: 420px) {
  .nav-shell {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand-logo img {
    width: 27px;
    height: 27px;
  }

  .brand-text {
    font-size: 18px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .btn-login {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}


/* =========================================================
   Responsive hardening: desktop, laptop, tablet and phone
   ========================================================= */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main,
section,
header,
footer,
.container,
.nav-shell,
.footer-grid,
.footer-bottom,
.hero-grid,
.two-col,
.contact-wrap,
.cta-panel,
.strip-panel,
.feature-grid,
.solution-grid,
.metric-grid,
.legal-grid,
.security-grid,
.contact-card,
.feature-card,
.solution-card,
.legal-card,
.metric-card,
.content,
.hero,
.dark-panel,
.hero-card {
  min-width: 0;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.content,
.contact-card,
.legal-card,
.feature-card,
.solution-card,
.metric-card,
.footer-bottom,
.footer-links,
.developer-card,
.form-note,
.contact-box,
.notice,
.box,
.meta-box {
  overflow-wrap: anywhere;
}

.btn {
  text-align: center;
}

.field-full {
  grid-column: 1 / -1;
}

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

.form-grid .btn,
.form-grid .form-note,
.form-grid .form-status {
  grid-column: 1 / -1;
}

.form-status.is-info {
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

@media (max-width: 1180px) {
  .nav-shell {
    gap: 14px;
  }

  .nav-list {
    gap: 2px;
    font-size: 13px;
  }

  .nav-list a {
    padding-inline: 10px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, .92fr);
    gap: 34px;
  }
}

@media (max-width: 1040px) {
  .home-hero {
    padding-top: 58px;
  }

  .hero-copy,
  .section-header,
  .contact-card,
  .dark-panel {
    text-align: left;
  }

  .hero-card {
    width: 100%;
  }

  .cta-panel .btn {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav-list {
    z-index: 60;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-header {
    backdrop-filter: blur(20px);
  }

  .strip-panel,
  .cta-panel {
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --radius: 24px;
    --radius-md: 18px;
  }

  .container,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .home-hero {
    padding: 44px 0 34px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 11vw, 58px);
    letter-spacing: -0.06em;
  }

  .hero-lead,
  .section-text,
  .cta-panel p {
    font-size: 16px;
  }

  .section-title {
    font-size: clamp(30px, 8.5vw, 44px);
  }

  .hero-actions,
  .cta-panel .hero-actions {
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn,
  .cta-panel .btn,
  .form-grid .btn {
    width: 100%;
  }

  .hero-bullets {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-bullets span {
    width: 100%;
    border-radius: 16px;
  }

  .strip-panel,
  .feature-card,
  .solution-card,
  .metric-card,
  .legal-card,
  .contact-card,
  .timeline-step,
  .mini-card {
    padding: 20px;
  }

  .dark-panel,
  .cta-panel {
    border-radius: 26px;
  }

  .hero-card {
    border-radius: 24px;
    padding: 10px;
  }

  .hero-card img {
    border-radius: 18px;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .timeline-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .logo-cloud {
    justify-content: flex-start;
  }

  .logo-pill {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }

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

  .page {
    padding-inline: 14px;
  }

  .hero,
  .content {
    padding: 26px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero p {
    font-size: 16px;
  }

  .content h2 {
    font-size: 22px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .nav-shell {
    width: min(100% - 20px, var(--container));
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .btn-login {
    min-height: 38px;
    padding: 8px 10px 8px 13px;
    font-size: 13px;
  }

  .btn-login .btn-icon {
    width: 22px;
    height: 22px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-list {
    left: 10px;
    right: 10px;
    top: 66px;
    border-radius: 18px;
  }

  .container,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, var(--container));
  }

  .home-hero h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .kicker {
    border-radius: 16px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .strip-panel,
  .feature-card,
  .solution-card,
  .metric-card,
  .legal-card,
  .contact-card,
  .dark-panel,
  .cta-panel {
    padding: 18px;
  }

  .logo-pill {
    flex-basis: 100%;
  }

  .float-card {
    min-width: 0;
    width: 100%;
  }

  .field input,
  .field textarea,
  .field select {
    border-radius: 14px;
    padding: 12px 13px;
  }

  .content {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .hero {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .notice,
  .box,
  .meta-box,
  .contact-box,
  .security-card,
  .step {
    padding: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 390px) {
  .brand-text {
    font-size: 17px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .brand-logo img {
    width: 25px;
    height: 25px;
  }

  .header-actions .btn-login span:first-child {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-hero h1 {
    font-size: clamp(31px, 12vw, 40px);
  }

  .section-title {
    font-size: clamp(28px, 9vw, 38px);
  }

  .btn {
    min-height: 42px;
    padding: 11px 14px;
  }

  .footer-links {
    gap: 8px;
  }
}

@media (hover: none) {
  .btn:hover,
  .feature-card:hover,
  .legal-card:hover,
  .btn-login:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}


/* =========================================================
   Language + dark/light mode preferences
   ========================================================= */
[data-lang-panel] {
  display: none;
}

html[data-lang="es"] [data-lang-panel="es"],
html[data-lang="en"] [data-lang-panel="en"] {
  display: block;
}

[data-lang-panel][hidden] {
  display: none !important;
}

.preference-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.pref-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, .78);
  background: rgba(255, 255, 255, .74);
  color: #1e293b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  font-weight: 900;
  font-size: 13px;
  padding: 8px 12px;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.pref-button:hover,
.pref-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(37, 99, 235, .32);
  color: var(--primary);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
}

.lang-toggle {
  min-width: 74px;
}

.lang-option {
  opacity: .45;
  transition: opacity .2s ease, color .2s ease;
}

.lang-option.is-active {
  opacity: 1;
  color: var(--primary);
}

.toggle-divider {
  color: var(--muted);
  opacity: .7;
}

.theme-toggle {
  min-width: 92px;
}

.theme-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, .10);
  color: var(--primary);
  line-height: 1;
}

html[data-theme="dark"] {
  --bg: #07111f;
  --card: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --secondary: #22d3ee;
  --accent: #06b6d4;
  --navy: #f8fafc;
  --navy-soft: #1e3a8a;
  --border: #1e293b;
  --border-strong: #334155;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 30px 95px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.22), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(34, 211, 238, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, var(--bg) 420px);
  color: var(--text);
}

html[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .78), transparent 72%);
}

html[data-theme="dark"] body::after {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.22), transparent 35rem);
}

html[data-theme="dark"] .site-header {
  background: rgba(2, 6, 23, 0.78);
  border-bottom-color: rgba(51, 65, 85, 0.74);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand-text,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .home-hero h1,
html[data-theme="dark"] .cta-panel h2,
html[data-theme="dark"] .strip-title,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .solution-card h3,
html[data-theme="dark"] .legal-card h3,
html[data-theme="dark"] .contact-card h3,
html[data-theme="dark"] .mini-card h3,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .content h2,
html[data-theme="dark"] .content h3,
html[data-theme="dark"] .security-card strong,
html[data-theme="dark"] .developer-card strong,
html[data-theme="dark"] .developer-credit strong,
html[data-theme="dark"] .float-card strong {
  color: var(--navy);
}

html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .pref-button,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .hero-bullets span,
html[data-theme="dark"] .float-card,
html[data-theme="dark"] .strip-panel,
html[data-theme="dark"] .logo-pill,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .solution-card,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .mini-card,
html[data-theme="dark"] .content,
html[data-theme="dark"] .box,
html[data-theme="dark"] .meta-box,
html[data-theme="dark"] .security-card,
html[data-theme="dark"] .step,
html[data-theme="dark"] .developer-card {
  border-color: rgba(71, 85, 105, .74);
  background: rgba(15, 23, 42, .72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .pref-button:hover,
html[data-theme="dark"] .pref-button:focus-visible,
html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-secondary:focus-visible {
  background: rgba(30, 41, 59, .94);
  border-color: rgba(96, 165, 250, .38);
}

html[data-theme="dark"] .nav-list {
  color: #cbd5e1;
}

html[data-theme="dark"] .nav-list a:hover,
html[data-theme="dark"] .nav-list a:focus-visible,
html[data-theme="dark"] .nav-list a.active {
  background: rgba(96, 165, 250, 0.14);
  color: var(--primary);
}

html[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 46%, #f8fafc 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .feature-card ul,
html[data-theme="dark"] .solution-card ul,
html[data-theme="dark"] .contact-list li,
html[data-theme="dark"] .float-card span,
html[data-theme="dark"] .logo-pill,
html[data-theme="dark"] .hero-bullets span,
html[data-theme="dark"] .site-footer {
  color: #cbd5e1;
}

html[data-theme="dark"] .field label {
  color: #dbeafe;
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select {
  background: rgba(2, 6, 23, .64);
  border-color: rgba(71, 85, 105, .92);
  color: var(--text);
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .field select:focus {
  background: rgba(15, 23, 42, .96);
  border-color: rgba(96, 165, 250, .72);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .16);
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder {
  color: rgba(148, 163, 184, .78);
}

html[data-theme="dark"] .notice {
  background: rgba(30, 64, 175, .22);
  border-color: rgba(96, 165, 250, .32);
  color: #dbeafe;
}

html[data-theme="dark"] .contact-box {
  background: rgba(8, 145, 178, .16);
  border-color: rgba(34, 211, 238, .30);
  color: #cffafe;
}

html[data-theme="dark"] .form-status.is-info {
  color: #dbeafe;
  background: rgba(30, 64, 175, .22);
  border-color: rgba(96, 165, 250, .32);
}

html[data-theme="dark"] .form-status.is-success {
  color: #bbf7d0;
  background: rgba(22, 101, 52, .26);
  border-color: rgba(74, 222, 128, .28);
}

html[data-theme="dark"] .form-status.is-error {
  color: #fecaca;
  background: rgba(127, 29, 29, .30);
  border-color: rgba(248, 113, 113, .28);
}

html[data-theme="dark"] .site-footer {
  background: rgba(2, 6, 23, .56);
  border-top-color: rgba(51, 65, 85, .74);
}

html[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(51, 65, 85, .74);
}

@media (max-width: 900px) {
  html[data-theme="dark"] .nav-list {
    background: rgba(15, 23, 42, .98);
    border-color: rgba(71, 85, 105, .92);
  }

  .theme-label {
    display: none;
  }

  .theme-toggle {
    min-width: 42px;
    padding-inline: 9px;
  }
}

@media (max-width: 700px) {
  .preference-controls {
    gap: 6px;
  }

  .pref-button {
    min-height: 38px;
    padding: 8px 10px;
  }

  .lang-toggle {
    min-width: 64px;
  }
}

@media (max-width: 500px) {
  .brand-text {
    display: none;
  }
}

@media (max-width: 390px) {
  .preference-controls {
    gap: 5px;
  }

  .pref-button {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .lang-toggle {
    min-width: 58px;
  }

  .theme-toggle {
    min-width: 38px;
  }
}

/* =========================================================
   Header correction: better responsive actions + dark logo
   ========================================================= */
.site-header {
  overflow: visible;
}

.nav-shell {
  max-width: var(--container);
}

.header-actions {
  flex-shrink: 0;
}

.brand,
.nav-list,
.header-actions,
.preference-controls,
.btn-login,
.pref-button {
  white-space: nowrap;
}

html[data-theme="dark"] .brand-logo img,
html[data-theme="dark"] .footer-brand .brand-logo img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .footer-brand .brand-logo {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .nav-shell {
    width: min(var(--container), calc(100% - 24px));
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-logo img {
    width: 31px;
    height: 31px;
  }

  .brand-text {
    font-size: 21px;
  }

  .nav-list {
    gap: 0;
    font-size: 13px;
  }

  .nav-list a {
    padding: 9px 8px;
  }

  .header-actions {
    gap: 7px;
  }

  .preference-controls {
    gap: 6px;
  }

  .pref-button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .theme-label {
    display: none;
  }

  .theme-toggle {
    min-width: 38px;
    padding-inline: 8px;
  }

  .lang-toggle {
    min-width: 68px;
  }

  .header-actions .btn-login {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 14px;
  }

  .btn-login .btn-icon {
    width: 24px;
    height: 24px;
  }
}

/* Turn the navigation into a clean menu earlier, so the top controls never collide. */
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    z-index: 80;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(203, 213, 225, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

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

  .nav-list a {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 14px;
  }

  .theme-label {
    display: none;
  }

  .theme-toggle {
    min-width: 42px;
    padding-inline: 9px;
  }

  html[data-theme="dark"] .nav-list {
    background: rgba(15, 23, 42, .98);
    border-color: rgba(71, 85, 105, .92);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 0;
  }

  .nav-shell {
    width: min(100% - 18px, var(--container));
    gap: 7px;
  }

  .header-actions {
    gap: 6px;
  }

  .preference-controls {
    gap: 5px;
  }

  .pref-button {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .lang-toggle {
    min-width: 58px;
  }

  .theme-toggle {
    min-width: 36px;
    padding-inline: 7px;
  }

  .theme-icon {
    width: 20px;
    height: 20px;
  }

  .header-actions .btn-login {
    min-height: 36px;
    padding: 7px 9px 7px 11px;
    font-size: 12px;
  }

  .btn-login .btn-icon {
    width: 20px;
    height: 20px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .nav-toggle span {
    width: 18px;
  }

  .nav-list {
    left: 9px;
    right: 9px;
    top: 60px;
  }
}

@media (max-width: 460px) {
  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .brand-logo img {
    width: 25px;
    height: 25px;
  }

  .header-actions .btn-login span:first-child {
    display: none;
  }

  .header-actions .btn-login {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .header-actions .btn-login .btn-icon {
    margin: 0;
  }
}

@media (max-width: 360px) {
  .lang-toggle {
    min-width: 52px;
    font-size: 11px;
  }

  .pref-button {
    padding-inline: 6px;
  }

  .nav-toggle,
  .header-actions .btn-login {
    width: 34px;
    min-width: 34px;
  }
}

/* =========================================================
   FINAL MOBILE FIX: force single-column hero and safe header
   ========================================================= */
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    padding: 8px 0;
  }

  .nav-shell {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
    gap: 7px;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .home-hero {
    padding: 34px 0 38px !important;
  }

  .home-hero::before {
    height: 100%;
    inset: 0;
  }

  .hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
  }

  .hero-copy,
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .home-hero h1 {
    max-width: 100% !important;
    font-size: clamp(38px, 11.5vw, 58px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.055em !important;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  .hero-lead {
    max-width: 100% !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    text-wrap: pretty;
  }

  .kicker {
    max-width: 100% !important;
    width: fit-content !important;
    white-space: normal !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .hero-card {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
  }

  .float-card {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 12px auto 0 !important;
  }
}

@media (max-width: 640px) {
  .container,
  .footer-grid,
  .footer-bottom {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
  }

  .brand-text {
    display: none !important;
  }

  .brand-logo {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .brand-logo img {
    width: 28px !important;
    height: 28px !important;
  }

  .preference-controls {
    gap: 5px !important;
  }

  .pref-button {
    min-height: 38px !important;
    padding: 7px 9px !important;
    font-size: 12px !important;
  }

  .theme-toggle {
    min-width: 38px !important;
    padding-inline: 8px !important;
  }

  .header-actions .btn-login {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
  }

  .header-actions .btn-login > span:first-child {
    display: none !important;
  }

  .header-actions .btn-login .btn-icon {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
  }

  .nav-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
  }

  .nav-list {
    top: 62px !important;
    left: 9px !important;
    right: 9px !important;
  }

  .home-hero {
    padding-top: 30px !important;
  }

  .home-hero h1 {
    font-size: clamp(36px, 12vw, 48px) !important;
  }

  .hero-lead {
    font-size: 16px !important;
  }

  .hero-actions {
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
  }

  .hero-bullets {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .hero-bullets span {
    width: 100% !important;
  }

  .hero-card {
    border-radius: 22px !important;
    padding: 9px !important;
  }

  .hero-card img {
    border-radius: 16px !important;
  }
}

@media (max-width: 390px) {
  .nav-shell {
    width: calc(100% - 14px) !important;
    max-width: calc(100% - 14px) !important;
    gap: 5px !important;
  }

  .container,
  .footer-grid,
  .footer-bottom {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  .pref-button {
    min-width: 36px !important;
    min-height: 36px !important;
    padding-inline: 7px !important;
  }

  .lang-toggle {
    min-width: 56px !important;
  }

  .theme-toggle,
  .nav-toggle,
  .header-actions .btn-login {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .home-hero h1 {
    font-size: clamp(34px, 11.5vw, 44px) !important;
  }

  .kicker {
    font-size: 12px !important;
    padding: 7px 10px !important;
  }
}
