:root {
  --ink: #090b10;
  --muted: #6d7380;
  --paper: #f7f8fb;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(9, 11, 16, 0.1);
  --shadow: 0 24px 70px rgba(24, 31, 44, 0.12);
  --accent: #111827;
  --page-bg:
    linear-gradient(132deg, #ffffff 0%, #edf6ff 28%, #f5efff 56%, #eafbf5 78%, #f7f8fb 100%);
  --ambient-bg:
    linear-gradient(118deg, rgba(91, 141, 239, 0.34) 0%, rgba(91, 141, 239, 0) 32%, rgba(99, 230, 190, 0.28) 62%, rgba(99, 230, 190, 0) 100%),
    linear-gradient(236deg, rgba(244, 114, 182, 0.24) 0%, rgba(244, 114, 182, 0) 38%, rgba(139, 92, 246, 0.3) 72%, rgba(139, 92, 246, 0) 100%),
    linear-gradient(18deg, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 44%, rgba(255, 255, 255, 0) 100%);
  --soft-panel: rgba(255, 255, 255, 0.62);
  --card-hover: #ffffff;
  --body-copy: #3f4652;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"], [data-theme="default-dark"],
[data-theme="default-dark"] {
  --ink: #f8fafc;
  --muted: #9aa4b2;
  --paper: #0b0f17;
  --panel: rgba(18, 24, 35, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --accent: #ffffff;
  --page-bg:
    linear-gradient(132deg, #070a10 0%, #10182a 30%, #171123 56%, #0e241f 78%, #111827 100%);
  --ambient-bg:
    linear-gradient(118deg, rgba(91, 141, 239, 0.36) 0%, rgba(91, 141, 239, 0) 32%, rgba(99, 230, 190, 0.24) 62%, rgba(99, 230, 190, 0) 100%),
    linear-gradient(236deg, rgba(244, 114, 182, 0.22) 0%, rgba(244, 114, 182, 0) 38%, rgba(139, 92, 246, 0.34) 72%, rgba(139, 92, 246, 0) 100%),
    linear-gradient(18deg, rgba(14, 165, 233, 0.26) 0%, rgba(14, 165, 233, 0) 44%, rgba(7, 10, 16, 0) 100%);
  --soft-panel: rgba(18, 24, 35, 0.62);
  --card-hover: rgba(24, 32, 46, 0.96);
  --body-copy: #c5ccd8;
}

[data-theme="ocean"] {
  --ink: #f4faff;
  --muted: #93b3c9;
  --paper: #061826;
  --panel: rgba(10, 36, 56, 0.82);
  --line: rgba(180, 220, 255, 0.16);
  --shadow: 0 24px 70px rgba(2, 12, 22, 0.45);
  --accent: #5fd6ff;
  --page-bg: linear-gradient(135deg, #021126 0%, #052b4a 35%, #0a4a6e 65%, #0e6a8a 100%);
  --ambient-bg:
    radial-gradient(circle at 20% 15%, rgba(95, 214, 255, 0.32), transparent 38%),
    radial-gradient(circle at 80% 90%, rgba(50, 168, 200, 0.28), transparent 42%);
  --soft-panel: rgba(8, 28, 46, 0.62);
  --card-hover: rgba(12, 42, 64, 0.96);
  --body-copy: #cfe3f2;
}

[data-theme="sunset"] {
  --ink: #fff5ec;
  --muted: #d8a896;
  --paper: #1a0a10;
  --panel: rgba(60, 18, 26, 0.82);
  --line: rgba(255, 200, 160, 0.16);
  --shadow: 0 24px 70px rgba(40, 8, 12, 0.5);
  --accent: #ffb15c;
  --page-bg: linear-gradient(135deg, #1a0a10 0%, #4a1024 30%, #8c2c4a 60%, #c45a4a 85%, #e8a35a 100%);
  --ambient-bg:
    radial-gradient(circle at 15% 25%, rgba(255, 130, 100, 0.34), transparent 38%),
    radial-gradient(circle at 85% 80%, rgba(244, 114, 182, 0.3), transparent 42%);
  --soft-panel: rgba(58, 16, 28, 0.6);
  --card-hover: rgba(72, 22, 36, 0.96);
  --body-copy: #f1cdb8;
}

[data-theme="forest"] {
  --ink: #f0fff4;
  --muted: #a3c4a9;
  --paper: #07140d;
  --panel: rgba(12, 36, 22, 0.82);
  --line: rgba(190, 230, 200, 0.16);
  --shadow: 0 24px 70px rgba(4, 14, 8, 0.45);
  --accent: #6be29a;
  --page-bg: linear-gradient(135deg, #051410 0%, #0a2a1e 30%, #134634 55%, #1c6446 80%, #2a8a5e 100%);
  --ambient-bg:
    radial-gradient(circle at 25% 20%, rgba(99, 230, 168, 0.3), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(80, 200, 140, 0.26), transparent 42%);
  --soft-panel: rgba(10, 32, 20, 0.6);
  --card-hover: rgba(18, 46, 30, 0.96);
  --body-copy: #cce5d3;
}

[data-theme="mono"] {
  --ink: #0d1117;
  --muted: #6b7280;
  --paper: #f5f5f5;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(13, 17, 23, 0.12);
  --shadow: 0 24px 70px rgba(13, 17, 23, 0.1);
  --accent: #111827;
  --page-bg: linear-gradient(180deg, #f5f5f5 0%, #ececec 50%, #e2e2e2 100%);
  --ambient-bg:
    radial-gradient(circle at 30% 20%, rgba(13, 17, 23, 0.04), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(13, 17, 23, 0.06), transparent 50%);
  --soft-panel: rgba(255, 255, 255, 0.7);
  --card-hover: #ffffff;
  --body-copy: #1f2937;
}

[data-theme="dark"], [data-theme="default-dark"] body,
[data-theme="dark"], [data-theme="default-dark"] .brand,
[data-theme="dark"], [data-theme="default-dark"] .hero h1,
[data-theme="dark"], [data-theme="default-dark"] .section-heading h2,
[data-theme="dark"], [data-theme="default-dark"] .brand-card strong {
  color: #f8fafc;
}

[data-theme="dark"], [data-theme="default-dark"] .brand-card {
  background: rgba(18, 24, 35, 0.82);
}

[data-theme="dark"], [data-theme="default-dark"] .brand-card small {
  background: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition:
    background 180ms ease,
    color 180ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: -42%;
  z-index: 0;
  pointer-events: none;
  background: var(--ambient-bg);
  background-size: 120% 120%, 190% 190%, 210% 210%;
  filter: saturate(1.42);
  opacity: 1;
  mix-blend-mode: multiply;
  animation: klvrGradientDrift 14s ease-in-out infinite alternate;
}

[data-theme="dark"], [data-theme="default-dark"] body::before {
  mix-blend-mode: screen;
  opacity: 0.86;
}

body > * {
  position: relative;
  z-index: 1;
}

@keyframes klvrGradientDrift {
  0% {
    background-position: 0% 42%, 100% 58%, 24% 50%;
    transform: translate3d(-3%, -2%, 0) scale(1);
  }

  50% {
    background-position: 72% 28%, 28% 76%, 80% 38%;
    transform: translate3d(2%, 3%, 0) scale(1.04);
  }

  100% {
    background-position: 100% 66%, 0% 34%, 42% 74%;
    transform: translate3d(3%, -2%, 0) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

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

.brand,
.contact-link {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.brand {
  gap: 10px;
}

.brand-logo {
  width: 168px;
  height: 168px;
  object-fit: contain;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: scale(1.1);
}

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

.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--soft-panel);
}

.theme-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--paper);
}

[data-theme="dark"], [data-theme="default-dark"] .theme-toggle button[aria-pressed="true"] {
  color: #090b10;
}

.contact-link {
  cursor: pointer;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--soft-panel);
  color: var(--ink);
}

.contact-link:hover {
  background: var(--card-hover);
}

.hero {
  display: grid;
  min-height: auto;
  align-content: center;
  padding: 54px 0 44px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 900;
  padding-bottom: 0.08em;
}

.hero-accent {
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.01em;
  background: linear-gradient(95deg, #7cbeff 0%, #a5a4ff 30%, #c79bff 55%, #8de4c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-prefix {
  font-size: 0.7em;
  vertical-align: baseline;
  margin-right: 0.15em;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--body-copy);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.solutions {
  display: grid;
  grid-template-columns: minmax(380px, 0.52fr) minmax(0, 0.48fr);
  gap: 18px;
  align-items: center;
  padding: 12px 0 54px;
}

.solutions-copy {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(24, 31, 44, 0.08);
  backdrop-filter: blur(16px);
}

.solutions-copy h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.solutions-copy p:not(.eyebrow) {
  max-width: none;
  margin: 14px 0 0;
  color: var(--body-copy);
  font-size: 0.98rem;
}

.solution-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.solution-logos div {
  position: relative;
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(24, 31, 44, 0.04);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.solution-logos div::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(91, 141, 239, 0.14), transparent 34%),
    radial-gradient(circle at 76% 86%, rgba(99, 230, 190, 0.12), transparent 36%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.solution-logos img {
  position: relative;
  z-index: 1;
  max-width: 132px;
  max-height: 36px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.35);
  opacity: 0.92;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.solution-logos div:hover {
  border-color: rgba(91, 141, 239, 0.36);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(24, 31, 44, 0.12);
  transform: translateY(-3px);
}

.solution-logos div:hover::before {
  opacity: 1;
}

.solution-logos div:hover img {
  filter: grayscale(0.15) contrast(1.08);
  opacity: 1;
  transform: scale(1.04);
}

[data-theme="dark"], [data-theme="default-dark"] .solution-logos div {
  background: rgba(255, 255, 255, 0.94);
}

[data-theme="dark"], [data-theme="default-dark"] .solution-logos img {
  filter: grayscale(1) contrast(1.35);
  opacity: 0.94;
}

.brands {
  padding: 28px 0 92px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 0.72fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.carousel-wrap {
  display: block;
  background: transparent;
}

.carousel {
  display: grid;
  grid-auto-columns: minmax(230px, 280px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 10px 2px 22px;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.brand-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  scroll-snap-align: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(24, 31, 44, 0.08);
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 11, 16, 0.2);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}

[data-theme="dark"], [data-theme="default-dark"] .brand-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.brand-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(9, 11, 16, 0.94), rgba(37, 45, 60, 0.92)),
    #111827;
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
}

.brand-card:nth-child(3n + 2) .brand-icon {
  background: linear-gradient(135deg, #446cff, #8b5cf6);
}

.brand-card:nth-child(3n) .brand-icon {
  background: linear-gradient(135deg, #10b981, #84cc16);
}

.brand-card strong {
  display: block;
  margin-top: 0;
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-card small {
  display: inline-flex;
  width: fit-content;
  margin-top: -10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.footer-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 140ms ease;
}

.site-footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.error-shell {
  width: min(760px, 100%);
}

/* ----- Legal pages (privacy / terms) ----- */
.legal-shell {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 64px;
  color: var(--ink);
}

.legal-header {
  margin-bottom: 32px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.legal-brand .brand-logo {
  width: 56px;
  height: 56px;
}

.legal-header h1 {
  margin: 8px 0 8px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-toc {
  margin: 0 0 36px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-panel);
}

.legal-toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 18px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-toc a {
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease;
}

.legal-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal-article {
  display: grid;
  gap: 32px;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-article section {
  scroll-margin-top: 24px;
}

.legal-article h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal-article h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-article p,
.legal-article ul,
.legal-article ol {
  margin: 0 0 12px;
  color: var(--body-copy, var(--ink));
}

.legal-article p:last-child,
.legal-article ul:last-child,
.legal-article ol:last-child {
  margin-bottom: 0;
}

.legal-article ul,
.legal-article ol {
  padding-left: 24px;
}

.legal-article li {
  margin-bottom: 6px;
}

.legal-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  filter: brightness(1.15);
}

.legal-article code {
  padding: 1px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.legal-property-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.legal-property-list li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-panel);
}

.legal-property-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-contact,
.legal-contact-block {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-panel);
}

.legal-contact {
  list-style: none;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.legal-disclaimer {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.legal-footer a {
  color: var(--ink);
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-footer-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .legal-shell {
    padding: 32px 0 48px;
  }
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}

.error-brand {
  width: fit-content;
  margin: 0 auto 18px;
}

.error-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.error-panel h1 {
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.error-panel p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--body-copy);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.error-actions .submit-button {
  min-height: 46px;
}

.error-actions .submit-button {
  display: inline-flex;
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(94, 123, 255, 0.22), transparent 28%),
    rgba(9, 11, 16, 0.64);
  backdrop-filter: blur(16px);
}

.modal-backdrop.is-open {
  display: grid;
}

.contact-modal {
  width: 50vw;
  min-height: 0;
  height: auto;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(136, 255, 195, 0.12), transparent 32%),
    var(--card-hover);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.modal-header h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .modal-header h2 {
    font-size: clamp(1.2rem, 5vw, 1.75rem);
    white-space: normal;
  }
}

.modal-intro {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--body-copy);
  font-size: 0.95rem;
}

.modal-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.modal-close:hover {
  transform: rotate(8deg);
  background: var(--panel);
}

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

.form-section {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.form-section div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--soft-panel);
}

.form-section span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 900;
}

[data-theme="dark"], [data-theme="default-dark"] .form-section span {
  color: #090b10;
}

.form-section strong {
  font-size: 0.86rem;
  font-weight: 900;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-form label span small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--soft-panel) 72%, transparent);
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.contact-form textarea {
  min-height: 94px;
  resize: vertical;
}

.contact-form select {
  appearance: none;
  border-radius: 999px;
  padding-right: 42px;
  cursor: pointer;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 20px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 15px) 50% / 7px 7px no-repeat,
    color-mix(in srgb, var(--soft-panel) 72%, transparent);
}

.contact-form select:focus {
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 20px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 15px) 50% / 7px 7px no-repeat,
    var(--panel);
}

.contact-form select option {
  background: var(--card-hover);
  color: var(--ink);
}

.custom-select {
  position: relative;
}

.custom-select.is-placeholder .custom-select-trigger > span {
  color: var(--muted);
  font-weight: 500;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 42px 10px 12px;
  background: color-mix(in srgb, var(--soft-panel) 72%, transparent);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-color: rgba(94, 123, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(94, 123, 255, 0.14);
  background: var(--panel);
  outline: none;
}

.custom-select.is-open .custom-select-trigger::after {
  transform: translateY(-35%) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 65;
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent));
  border-radius: 18px;
  padding: 6px;
  background: color-mix(in srgb, var(--card-hover) 96%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  backdrop-filter: blur(18px);
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-menu button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.custom-select-menu button:hover,
.custom-select-menu button:focus-visible,
.custom-select-menu button[aria-selected="true"] {
  background: color-mix(in srgb, rgba(94, 123, 255, 0.18) 72%, var(--soft-panel));
  color: var(--ink);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(94, 123, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(94, 123, 255, 0.14);
  background: var(--panel);
}

.contact-form.was-validated input:invalid,
.contact-form.was-validated select:invalid,
.contact-form.was-validated textarea:invalid {
  border-color: rgba(236, 72, 153, 0.74);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.13);
}

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

.file-field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.file-field-label small {
  color: var(--muted);
  font-weight: 500;
}

.file-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 2px dashed color-mix(in srgb, var(--muted) 38%, transparent);
  border-radius: 18px;
  padding: 22px 18px;
  background: color-mix(in srgb, var(--soft-panel) 50%, transparent);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.file-dropzone:hover,
.file-dropzone:focus-within {
  border-color: color-mix(in srgb, var(--muted) 70%, transparent);
  background: color-mix(in srgb, var(--soft-panel) 80%, transparent);
}

.file-dropzone.is-dragover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, var(--soft-panel));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-1px);
}

.file-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-panel);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.file-dropzone.is-dragover .dropzone-icon {
  background: var(--ink);
  color: var(--paper);
}

[data-theme="dark"], [data-theme="default-dark"] .file-dropzone.is-dragover .dropzone-icon {
  color: #090b10;
}

.dropzone-title {
  font-size: 0.98rem;
}

.dropzone-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.dropzone-file-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropzone-file-list:empty {
  display: none;
}

.dropzone-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--soft-panel);
  font-size: 0.9rem;
}

.dropzone-file-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dropzone-file-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dropzone-file-size {
  color: var(--muted);
  font-size: 0.82rem;
}

.dropzone-file-remove {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.dropzone-file-remove:hover {
  background: var(--panel);
  transform: rotate(8deg);
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
}

.upload-progress {
  flex: 1 1 220px;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 22%, transparent);
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #4ea1ff);
  transition: width 160ms ease;
}

.upload-progress-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.antispam-question {
  display: grid;
  gap: 6px;
}

.antispam-question span {
  font-weight: 700;
}

.antispam-question input {
  max-width: 220px;
}

.antispam-question em {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
}

/* Honeypot — hidden from real users via positioning, not display:none
   so screen readers and dumb bots still see it as a real input. */
.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ----- Alert modal (form validation errors / server errors) ----- */
/* Alert sits above the contact form modal so users always see errors clearly. */
.modal-backdrop[data-alert-modal] {
  z-index: 120;
}

.alert-modal {
  width: min(520px, 100%);
}

.alert-modal .modal-header {
  align-items: flex-start;
  gap: 14px;
}

.alert-modal-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(220, 38, 60, 0.15);
  color: #b91c2c;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

[data-theme="dark"] .alert-modal-icon,
[data-theme="default-dark"] .alert-modal-icon,
[data-theme="ocean"] .alert-modal-icon,
[data-theme="sunset"] .alert-modal-icon,
[data-theme="forest"] .alert-modal-icon {
  background: rgba(255, 93, 125, 0.2);
  color: #fecdd3;
}

.alert-modal h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.15;
}

.alert-modal .modal-intro[hidden] {
  display: none;
}

.alert-issue-list {
  margin: 0 0 14px;
  padding: 0 0 0 22px;
  list-style: disc;
  color: var(--body-copy, var(--ink));
}

.alert-issue-list:empty,
.alert-issue-list[hidden] {
  display: none;
}

.alert-issue-list li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.alert-issue-list li:last-child {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.submit-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--accent);
  color: var(--paper);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(24, 31, 44, 0.16);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

[data-theme="dark"], [data-theme="default-dark"] .submit-button {
  color: #090b10;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 780px) {
  .hero {
    min-height: auto;
    padding: 40px 0 42px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .solution-logos {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .carousel {
    grid-auto-columns: minmax(235px, 78vw);
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .contact-modal {
    width: min(100%, 720px);
    min-height: 76vh;
  }

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

@media (max-width: 460px) {
  .page-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px 0;
  }

  .brand-logo {
    width: 130px;
    height: 130px;
  }

  .header-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  .theme-toggle button {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 17vw, 4.35rem);
  }

  .hero p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .brand-card {
    min-height: 230px;
  }

  .solutions {
    padding-bottom: 40px;
  }

  .solutions-copy {
    padding: 18px;
  }

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

  .solution-logos div {
    min-height: 76px;
    padding: 12px;
  }

  .solution-logos img {
    max-width: 118px;
    max-height: 34px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .contact-modal {
    width: 100%;
    min-height: 82vh;
    border-radius: 22px;
    padding: 20px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
