:root {
  --bg: #080808;
  --surface: #101010;
  --surface-2: #151515;
  --text: #f5f5f3;
  --muted: #9a9a96;
  --line: rgba(255,255,255,.11);
  --red: #f51b25;
  --red-soft: #ff3a43;
  --max: 1240px;
  --radius: 24px;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -20%, rgba(245,27,37,.12), transparent 38%),
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  z-index: -3;
}

::selection { background: var(--red); color: #fff; }

/* Branded scrollbar */
html {
  scrollbar-color: var(--red) #171717;
  scrollbar-width: auto;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #171717; }
::-webkit-scrollbar-thumb {
  background: var(--red);
  border: 3px solid #171717;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red-soft); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.cursor-glow {
  width: 420px;
  height: 420px;
  position: fixed;
  left: var(--x, 50%);
  top: var(--y, 25%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,27,37,.08), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.section-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 118px 0; }

.site-header {
  width: min(calc(100% - 48px), var(--max));
  height: 78px;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  z-index: 20;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(12,12,12,.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-weight: 850; font-size: 15px; letter-spacing: -.02em; }
.brand-name span { color: var(--red); font-weight: 700; margin-left: 5px; }
.desktop-nav { display: flex; align-items: center; gap: 34px; }
.desktop-nav a { color: #b8b8b4; font-size: 13px; transition: color .2s ease; }
.desktop-nav a:hover { color: #fff; }
.header-cta { justify-self: end; }
.menu-toggle, .mobile-menu { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: #fff; box-shadow: 0 12px 38px rgba(245,27,37,.17); }
.button-primary:hover { background: var(--red-soft); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.025); color: #e6e6e3; }
.button-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.button-small { min-height: 40px; padding: 0 15px; font-size: 12px; border-radius: 10px; }
.button-light { background: #fff; color: #0b0b0b; }

.hero {
  min-height: 860px;
  padding-top: 214px;
  padding-bottom: 100px;
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); z-index: -1; }
.orb-one {
  width: 540px; height: 540px; right: -190px; top: 115px;
  background: radial-gradient(circle at 35% 35%, rgba(245,27,37,.30), rgba(245,27,37,.02) 55%, transparent 70%);
  border: 1px solid rgba(245,27,37,.08);
}
.orb-two {
  width: 240px; height: 240px; right: 160px; top: 330px;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 68%);
  border: 1px solid rgba(255,255,255,.05);
}
.eyebrow, .section-kicker {
  color: #b7b7b3;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.hero-title {
  max-width: 930px;
  margin: 25px 0 22px;
  font-size: clamp(70px, 9.2vw, 132px);
  line-height: .86;
  letter-spacing: -.067em;
  font-weight: 820;
}
.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #f5f5f5 20%, #b3b3ae 72%, #777 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-copy {
  width: min(100%, 690px);
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.58;
  letter-spacing: -.02em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 720px);
  margin-top: 88px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta div { padding: 19px 22px 20px 0; }
.hero-meta div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.hero-meta strong, .hero-meta span { display: block; }
.hero-meta strong { font-size: 13px; margin-bottom: 5px; }
.hero-meta span { color: var(--muted); font-size: 12px; }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0b0b; }
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 17px 0;
  animation: marquee 28s linear infinite;
}
.marquee-track span { font-size: 11px; letter-spacing: .17em; color: #858581; white-space: nowrap; }
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.section-heading h2 {
  margin: 15px 0 0;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 760;
}
.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 510px;
  justify-self: end;
}

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.tool-card {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.016));
  transition: border-color .3s ease, transform .3s var(--ease), background .3s ease;
}
.tool-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.24); }
.tool-card-featured {
  background: linear-gradient(155deg, rgba(245,27,37,.25), rgba(245,27,37,.09) 45%, rgba(255,255,255,.02));
  border-color: rgba(245,27,37,.36);
}
.tool-card-muted { background: #0d0d0d; }
.card-topline { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.status { display: inline-flex; align-items: center; gap: 8px; color: #dbdbd7; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.status i { width: 7px; height: 7px; background: #42e17b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(66,225,123,.09); }
.status-muted { color: #777773; }
.card-arrow { font-size: 19px; color: #979793; transition: transform .25s ease; }
.tool-card:hover .card-arrow { transform: translate(2px,-2px); color: #fff; }
.tool-icon {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  margin-top: auto;
  margin-bottom: 38px;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.03em;
  box-shadow: 0 20px 50px rgba(245,27,37,.22);
  position: relative; z-index: 2;
}
.tool-icon-dark { background: #202020; box-shadow: none; border: 1px solid rgba(255,255,255,.09); }
.tool-icon-outline { background: transparent; border: 1px solid rgba(255,255,255,.12); box-shadow: none; font-size: 26px; }
.tool-copy { position: relative; z-index: 2; }
.tool-domain { color: #8c8c87; font-size: 11px; }
.tool-copy h3 { font-size: 34px; letter-spacing: -.04em; margin: 8px 0 9px; }
.tool-copy p { color: #9c9c97; font-size: 14px; line-height: 1.58; margin: 0; }
.card-grid-pattern {
  position: absolute; width: 330px; height: 330px; right: -95px; top: 60px; opacity: .23;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: rotate(12deg);
  mask-image: radial-gradient(circle, #000, transparent 70%);
}

.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.solution-card {
  min-height: 280px;
  padding: 34px 38px 34px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.solution-card:nth-child(even) { border-left: 1px solid var(--line); padding-left: 38px; }
.solution-index { color: var(--red); font-size: 11px; font-weight: 800; }
.solution-card h3 { font-size: 29px; letter-spacing: -.035em; margin: 72px 0 11px; }
.solution-card p { color: var(--muted); max-width: 460px; line-height: 1.65; margin: 0; font-size: 14px; }
.solution-card::after {
  content: "+"; position: absolute; top: 29px; right: 20px; color: #444; font-size: 24px; font-weight: 200;
}

.clients-section { padding-top: 80px; }
.client-placeholder {
  min-height: 260px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  background: linear-gradient(120deg, #111, #0b0b0b);
}
.client-placeholder-mark { width: 88px; height: 88px; opacity: .9; }
.client-placeholder span { display: block; color: #70706c; font-size: 10px; letter-spacing: .18em; margin-bottom: 10px; }
.client-placeholder strong { font-size: clamp(24px, 3vw, 38px); letter-spacing: -.035em; }
.client-lines { display: flex; align-items: end; gap: 8px; height: 70px; }
.client-lines i { display: block; width: 7px; background: #242424; border-radius: 6px; }
.client-lines i:nth-child(1) { height: 34%; } .client-lines i:nth-child(2) { height: 70%; background: #3a1719; } .client-lines i:nth-child(3) { height: 100%; background: var(--red); }

.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.roadmap-card {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.roadmap-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.23); }
.roadmap-card > span { color: #555; font-size: 11px; }
.roadmap-card h3 { margin: auto 0 10px; font-size: 24px; letter-spacing: -.03em; }
.roadmap-card p { color: var(--muted); font-size: 13px; line-height: 1.6; min-height: 83px; margin: 0; }
.roadmap-card em { margin-top: 20px; font-style: normal; color: #c2c2bd; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.roadmap-card em::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 7px; }

.custom-section { padding-top: 65px; padding-bottom: 110px; }
.custom-panel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 30px;
  background: var(--red);
  color: #fff;
  padding: 58px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: end;
  gap: 42px;
}
.custom-panel .section-kicker { color: rgba(255,255,255,.68); }
.custom-copy h2 { margin: 18px 0; font-size: clamp(42px, 5.6vw, 72px); line-height: .96; letter-spacing: -.055em; }
.custom-copy p { margin: 0; max-width: 630px; color: rgba(255,255,255,.77); line-height: 1.65; }
.custom-action { justify-self: end; position: relative; z-index: 3; }
.custom-action small { display: block; text-align: center; margin-top: 12px; color: rgba(255,255,255,.58); font-size: 10px; }
.custom-orbit { position: absolute; width: 450px; height: 450px; right: 5%; top: -180px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.custom-orbit i { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); inset: 50px; }
.custom-orbit i:nth-child(2) { inset: 100px; }
.custom-orbit i:nth-child(3) { inset: 160px; background: rgba(255,255,255,.07); }

.site-footer { padding: 48px 0 34px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 280px; height: auto; }
.footer-brand > span { color: var(--red); font-weight: 850; font-size: 14px; margin-left: -2px; }
.footer-links { display: flex; gap: 26px; margin-top: 36px; }
.footer-links a { color: #858581; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--line); color: #565653; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }

.footer-company {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 34px;
  color: #666660;
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.footer-company span:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: rgba(128,128,122,.5);
}
.footer-company-name { color: #8c8c87; font-weight: 750; }
html[data-theme="light"] .footer-company { color: #74726c; }
html[data-theme="light"] .footer-company-name { color: #4c4b47; }

@media (max-width: 720px) {
  .footer-company { display: grid; gap: 5px; margin-top: 28px; }
  .footer-company span:not(:last-child)::after { content: none; }
}


/* Legal pages */
.legal-page .site-header {
  background: rgba(12,12,12,.82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.legal-main {
  min-height: 70vh;
  padding-top: 170px;
  padding-bottom: 110px;
}
.legal-hero {
  max-width: 860px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .94;
  letter-spacing: -.06em;
}
.legal-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 70px;
  align-items: start;
  padding-top: 54px;
}
.legal-aside {
  position: sticky;
  top: 126px;
  color: #6f6f6b;
  font-size: 11px;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.legal-content section + section { margin-top: 42px; }
.legal-content h2 {
  margin: 0 0 13px;
  font-size: 24px;
  letter-spacing: -.035em;
}
.legal-content p,
.legal-content li {
  color: #aaa9a4;
  font-size: 14px;
  line-height: 1.8;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul { margin: 10px 0 0; padding-left: 20px; }
.legal-content a { color: #fff; text-decoration: underline; text-decoration-color: rgba(245,27,37,.75); text-underline-offset: 4px; }
.legal-note {
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid rgba(245,27,37,.22);
  border-radius: 14px;
  background: rgba(245,27,37,.055);
  color: #bcbcb7;
  font-size: 13px;
  line-height: 1.7;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle {
    display: grid; width: 42px; height: 42px; place-items: center; justify-self: end; border: 1px solid var(--line); background: #111; border-radius: 10px; padding: 11px; gap: 5px;
  }
  .menu-toggle span { width: 100%; height: 1px; background: #fff; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-menu {
    position: absolute; top: 68px; left: 0; right: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(10,10,10,.97); backdrop-filter: blur(20px);
  }
  .mobile-menu:not([hidden]) { display: grid; gap: 6px; }
  .mobile-menu > a:not(.button) { padding: 13px 10px; color: #c1c1bd; font-size: 14px; }
  .hero { min-height: 760px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 42px; }
}

@media (max-width: 720px) {
  .section-shell, .site-header { width: min(calc(100% - 28px), var(--max)); }
  .site-header { top: 10px; height: 64px; padding: 0 11px; }
  .brand-mark { width: 32px; height: 32px; }
  .section { padding: 82px 0; }
  .hero { min-height: 760px; padding-top: 170px; padding-bottom: 78px; }
  .hero-title { font-size: clamp(58px, 17vw, 86px); margin-top: 20px; }
  .hero-copy { font-size: 17px; }
  .hero-meta { grid-template-columns: 1fr; margin-top: 64px; }
  .hero-meta div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .section-heading > p { justify-self: start; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card, .tool-card-featured { min-height: 410px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card, .solution-card:nth-child(even) { border-left: 0; padding: 28px 0; }
  .solution-card h3 { margin-top: 55px; }
  .client-placeholder { grid-template-columns: auto 1fr; padding: 24px; }
  .client-placeholder-mark { width: 64px; height: 64px; }
  .client-lines { display: none; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-card { min-height: 260px; }
  .custom-panel { grid-template-columns: 1fr; padding: 32px 24px; min-height: 520px; }
  .custom-action { justify-self: start; }
  .custom-orbit { width: 350px; height: 350px; right: -150px; top: -120px; }
  .footer-brand img { width: 220px; }
  .footer-links { flex-wrap: wrap; gap: 18px 24px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
  .cursor-glow { display: none; }
  .legal-main { padding-top: 130px; padding-bottom: 80px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-aside { position: static; }
}

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

/* Theme switch + privacy notice */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #eceae5;
  --text: #151515;
  --muted: #65645f;
  --line: rgba(20,20,20,.12);
  scrollbar-color: var(--red) #e5e3de;
}

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

.theme-toggle {
  min-width: 82px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.055); }
.theme-toggle-icon { width: 13px; font-size: 13px; line-height: 1; opacity: .48; transition: opacity .2s ease; }
.theme-toggle-sun { font-size: 12px; }
.theme-toggle-track {
  width: 28px;
  height: 16px;
  position: relative;
  border-radius: 999px;
  background: #292929;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .25s ease;
}
.theme-toggle-knob {
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #f5f5f3;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transform: translateX(12px);
  transition: transform .28s var(--ease), background .25s ease;
}
html[data-theme="dark"] .theme-toggle-moon,
html[data-theme="light"] .theme-toggle-sun { opacity: 1; color: var(--red); }
html[data-theme="light"] .theme-toggle-track { background: rgba(245,27,37,.16); box-shadow: inset 0 0 0 1px rgba(245,27,37,.22); }
html[data-theme="light"] .theme-toggle-knob { transform: translateX(0); background: var(--red); }

.privacy-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: min(440px, calc(100% - 48px));
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15,15,15,.94);
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .32s ease, transform .32s var(--ease);
}
.privacy-notice[hidden] { display: none; }
.privacy-notice.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.privacy-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.privacy-notice-close:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.privacy-notice-kicker {
  display: block;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.privacy-notice h2 {
  max-width: 340px;
  margin: 0 44px 10px 0;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.privacy-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.privacy-notice-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.privacy-notice-links a { font-size: 12px; color: var(--text); text-decoration: underline; text-decoration-color: rgba(245,27,37,.7); text-underline-offset: 4px; }
.privacy-notice-action { min-height: 42px; width: 100%; margin-top: 20px; border-radius: 11px; }
.footer-privacy-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #858581;
  font-size: 12px;
  cursor: pointer;
}
.footer-privacy-button:hover { color: #fff; }

/* Light theme */
html[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 50% -20%, rgba(245,27,37,.11), transparent 38%),
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
}
html[data-theme="light"] .noise { opacity: .018; mix-blend-mode: multiply; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #e5e3de; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { border-color: #e5e3de; }
html[data-theme="light"] .site-header.scrolled,
html[data-theme="light"] .legal-page .site-header { background: rgba(248,247,244,.86); }
html[data-theme="light"] .desktop-nav a { color: #66645f; }
html[data-theme="light"] .desktop-nav a:hover { color: #111; }
html[data-theme="light"] .button-ghost { background: rgba(0,0,0,.025); color: #222; }
html[data-theme="light"] .button-ghost:hover { background: rgba(0,0,0,.055); border-color: rgba(0,0,0,.2); }
html[data-theme="light"] .theme-toggle { background: rgba(255,255,255,.72); }
html[data-theme="light"] .theme-toggle:hover { border-color: rgba(0,0,0,.2); background: #fff; }
html[data-theme="light"] .hero::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,.14), transparent); }
html[data-theme="light"] .orb-two { background: radial-gradient(circle, rgba(0,0,0,.045), transparent 68%); border-color: rgba(0,0,0,.055); }
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .section-kicker { color: #696862; }
html[data-theme="light"] .gradient-text { background: linear-gradient(90deg, #111 0%, #2a2927 28%, #66645f 72%, #8c8982 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .marquee { background: #eceae5; }
html[data-theme="light"] .marquee-track span { color: #706e68; }
html[data-theme="light"] .tool-card { background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(238,236,231,.74)); }
html[data-theme="light"] .tool-card:hover { border-color: rgba(0,0,0,.22); }
html[data-theme="light"] .tool-card-featured { background: linear-gradient(155deg, rgba(245,27,37,.15), rgba(245,27,37,.055) 48%, rgba(255,255,255,.82)); }
html[data-theme="light"] .tool-card-muted { background: #eeece7; }
html[data-theme="light"] .status { color: #393834; }
html[data-theme="light"] .status-muted { color: #74716a; }
html[data-theme="light"] .card-arrow { color: #74716a; }
html[data-theme="light"] .tool-card:hover .card-arrow { color: #111; }
html[data-theme="light"] .tool-icon-dark { background: #dedbd5; color: #191919; border-color: rgba(0,0,0,.09); }
html[data-theme="light"] .tool-icon-outline { color: #2e2d2a; border-color: rgba(0,0,0,.14); }
html[data-theme="light"] .tool-domain { color: #716f69; }
html[data-theme="light"] .tool-copy p { color: #66645f; }
html[data-theme="light"] .card-grid-pattern { background-image: linear-gradient(rgba(0,0,0,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.07) 1px, transparent 1px); }
html[data-theme="light"] .solution-card::after { color: #b5b2ab; }
html[data-theme="light"] .client-placeholder { background: linear-gradient(120deg, #fff, #eceae5); }
html[data-theme="light"] .client-placeholder span { color: #77746e; }
html[data-theme="light"] .client-lines i { background: #d8d5cf; }
html[data-theme="light"] .client-lines i:nth-child(2) { background: #efc7c9; }
html[data-theme="light"] .roadmap-card { background: #efede8; }
html[data-theme="light"] .roadmap-card:hover { border-color: rgba(0,0,0,.22); }
html[data-theme="light"] .roadmap-card > span { color: #85817a; }
html[data-theme="light"] .roadmap-card em { color: #5f5d58; }
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-privacy-button { color: #706e68; }
html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .footer-privacy-button:hover { color: #111; }
html[data-theme="light"] .footer-bottom { color: #85817a; }
html[data-theme="light"] .legal-aside { color: #77746e; }
html[data-theme="light"] .legal-content p,
html[data-theme="light"] .legal-content li { color: #625f59; }
html[data-theme="light"] .legal-content a { color: #141414; }
html[data-theme="light"] .legal-note { color: #5f5d58; background: rgba(245,27,37,.045); }
html[data-theme="light"] .privacy-notice { background: rgba(252,251,248,.95); box-shadow: 0 28px 80px rgba(40,35,30,.18); }
html[data-theme="light"] .privacy-notice-close:hover { border-color: rgba(0,0,0,.22); }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 8px; }
  .header-actions { justify-self: end; }
  .header-actions .header-cta { display: none; }
  html[data-theme="light"] .menu-toggle { background: #fff; }
  html[data-theme="light"] .menu-toggle span { background: #111; }
  html[data-theme="light"] .mobile-menu { background: rgba(250,249,246,.97); }
  html[data-theme="light"] .mobile-menu > a:not(.button) { color: #55534f; }
}

@media (max-width: 720px) {
  .theme-toggle { min-width: 74px; height: 40px; padding-inline: 7px; gap: 5px; }
  .privacy-notice { right: 14px; bottom: 14px; width: calc(100% - 28px); padding: 22px; border-radius: 18px; }
  .privacy-notice h2 { font-size: 21px; }
}
.footer-logo-light { display: none; }
html[data-theme="light"] .footer-logo-dark { display: none; }
html[data-theme="light"] .footer-logo-light { display: block; }

/* Language selector */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.language-picker { position: relative; display: inline-flex; }
.language-picker select {
  height: 40px;
  min-width: 58px;
  padding: 0 25px 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: rgba(255,255,255,.025);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 17px, calc(100% - 9px) 17px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.language-picker select:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); background-color: rgba(255,255,255,.055); }
.language-picker select:focus-visible { border-color: rgba(245,27,37,.68); box-shadow: 0 0 0 3px rgba(245,27,37,.12); }
.language-picker option { background: #111; color: #fff; }

/* Request form */
.custom-panel {
  min-height: 650px;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .92fr);
  align-items: center;
}
.custom-copy { position: relative; z-index: 3; }
.custom-contact { margin-top: 30px; display: flex; flex-direction: column; gap: 6px; }
.custom-contact span { color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.custom-contact a { width: fit-content; color: #fff; font-size: 16px; font-weight: 750; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 3px; }

.request-form {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: rgba(10,10,10,.88);
  color: #fff;
  box-shadow: 0 25px 70px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-field > span { color: rgba(255,255,255,.74); font-size: 11px; font-weight: 700; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  background: rgba(255,255,255,.075);
  color: #fff;
  outline: none;
  padding: 12px 13px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.form-field input,
.form-field select { min-height: 46px; }
.form-field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.38); }
.form-field select { appearance: auto; }
.form-field select option { background: #151515; color: #fff; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.11); box-shadow: 0 0 0 3px rgba(255,255,255,.07); }
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) { border-color: rgba(255,176,181,.68); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 16px; cursor: pointer; }
.form-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #fff; }
.form-consent span { color: rgba(255,255,255,.62); font-size: 10.5px; line-height: 1.55; }
.form-consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form-footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; margin-top: 20px; }
.form-submit { min-width: 150px; border: 0; }
.form-submit[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-status { margin: 0; min-height: 18px; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.45; }
.form-status.is-success { color: #d8ffe4; }
.form-status.is-error { color: #ffe2e4; }

html[data-theme="light"] .language-picker select { background-color: rgba(255,255,255,.72); color: #222; }
html[data-theme="light"] .language-picker select:hover { border-color: rgba(0,0,0,.2); background-color: #fff; }
html[data-theme="light"] .language-picker option { background: #fff; color: #111; }

@media (max-width: 1000px) {
  .custom-panel { grid-template-columns: 1fr; min-height: auto; padding: 40px; }
  .request-form { margin-top: 10px; }
}

@media (max-width: 720px) {
  .language-picker select { min-width: 52px; width: 52px; height: 40px; padding-left: 8px; padding-right: 20px; background-position: calc(100% - 11px) 17px, calc(100% - 7px) 17px; }
  .header-actions { gap: 6px; }
  .custom-panel { padding: 30px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .request-form { padding: 20px; border-radius: 18px; }
  .form-footer { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }
}

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