/* ENRIVIA landing — dark theme, no build step. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --surface: #0e1628;
  --surface-2: #121c33;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e7edf7;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-2: #22d3ee;
  --warn: #f59e0b;
  --ok: #34d399;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Decorative glows and rotated sheets must never cause sideways scrolling. */
main {
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 750;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.wrap.narrow {
  width: min(820px, 100% - 32px);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* Light, solid primary button: the calm high-contrast look of premium dark sites. */
.btn-primary {
  background: #f1f5f9;
  color: #0b1220;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 28px -12px rgba(148, 163, 184, 0.35);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.93rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  display: grid;
  gap: 6px;
  padding: 12px 16px 20px;
  background: rgba(7, 11, 20, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a:not(.btn) {
  padding: 10px 4px;
  color: var(--muted);
}

/* Language: the current one as text, the other one as a link. */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-switch > * {
  padding: 4px 10px;
  border-radius: 999px;
}

.lang-switch [aria-current] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.lang-switch a {
  color: var(--muted);
  transition: color 0.2s;
}

.lang-switch a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background: radial-gradient(600px 400px at 75% 30%, rgba(59, 130, 246, 0.28), transparent 70%),
    radial-gradient(500px 360px at 15% 10%, rgba(34, 211, 238, 0.14), transparent 70%);
  filter: blur(10px);
  animation: glow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glow {
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.05);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.grad {
  background: linear-gradient(100deg, #93c5fd, var(--primary-2) 45%, #60a5fa 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.lead {
  margin-top: 22px;
  max-width: 34rem;
  color: #b4c1d6;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-points li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--ok);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  perspective: 1400px;
}

.frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px rgba(59, 130, 246, 0.08), 0 0 120px rgba(59, 130, 246, 0.18);
  transform: rotateY(-8deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #0b1222;
}

.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #273349;
}

.frame-bar span {
  margin-left: 10px;
  color: #5b6b85;
  font-size: 0.75rem;
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(14, 22, 40, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.85rem;
  animation: bob 6s ease-in-out infinite;
}

.float strong {
  display: block;
  font-size: 1.05rem;
}

.f-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.float.f1 {
  left: -28px;
  bottom: 18%;
  display: block;
}

.float.f1 strong {
  font-size: 1.6rem;
  color: #93c5fd;
}

.float.f2 {
  right: -18px;
  top: 14%;
  animation-delay: -2s;
}

.float.f3 {
  right: 8%;
  bottom: -22px;
  display: block;
  animation-delay: -4s;
}

.f-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-weight: 800;
}

.f-icon.warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Marquee strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
  overflow: hidden;
}

.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "◆";
  margin-right: 14px;
  color: var(--primary);
  font-size: 0.6rem;
  vertical-align: middle;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 110px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.kicker {
  margin-bottom: 14px;
  color: var(--primary-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sub {
  margin-top: 18px;
  color: #b4c1d6;
  font-size: 1.06rem;
}

/* Problem */

.problem {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.problem-cards {
  display: grid;
  gap: 16px;
}

.pcard {
  position: relative;
  padding: 24px 26px 24px 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.pcard:hover {
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateX(4px);
}

.pnum {
  position: absolute;
  left: 24px;
  top: 24px;
  color: var(--warn);
  font-weight: 800;
  font-size: 1.1rem;
}

.pcard p {
  margin-top: 6px;
  color: var(--muted);
}

/* Features */

.feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding: 44px 0;
}

.feature.reverse .feature-copy {
  order: 2;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
}

.feature h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.feature-copy > p {
  margin-top: 14px;
  color: #b4c1d6;
}

.checks {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2334d399' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.feature-shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}

.feature-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), transparent 40%);
  pointer-events: none;
}

.feature-shot:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--shadow), 0 0 80px rgba(59, 130, 246, 0.2);
}

/* Simulations */

.sims {
  background: radial-gradient(900px 520px at 50% 0%, rgba(34, 211, 238, 0.09), transparent 70%), var(--bg);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.sim-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sim-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px 0;
}

.sim-head .tag {
  margin: 0;
}

.sim-stat {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.sim-card svg {
  display: block;
  width: calc(100% - 40px);
  margin: 14px 20px 0;
  border-radius: 12px;
  background: #050912;
}

.sim-card figcaption {
  padding: 18px 20px 22px;
}

.sim-card h3 {
  font-size: 1.15rem;
}

.sim-card figcaption p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.sim-sheet {
  fill: #0d1526;
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 3;
}

.sim-part {
  fill: transparent;
  transition: fill 0.6s;
}

.sim-part.done {
  fill: rgba(59, 130, 246, 0.22);
}

.sim-plan {
  fill: none;
  stroke: rgba(148, 163, 184, 0.28);
  stroke-width: 3;
  stroke-dasharray: 10 8;
}

.sim-cut {
  fill: none;
  stroke: #9fb4d8;
  stroke-width: 4;
  stroke-linejoin: round;
}

.sim-cut.hot {
  stroke: #ff8a2a;
}

.sim-rapid {
  stroke: rgba(34, 211, 238, 0.55);
  stroke-width: 3;
  stroke-dasharray: 12 10;
}

.sim-tool {
  fill: #fff7e6;
}

.sim-glow {
  fill: #ff9f43;
  filter: blur(8px);
}

.sim-die {
  fill: #1c2740;
  stroke: rgba(148, 163, 184, 0.5);
  stroke-width: 1;
}

.sim-strip {
  fill: none;
  stroke: #b8c4d4;
  stroke-linejoin: round;
}

.sim-punch {
  fill: rgba(59, 130, 246, 0.35);
  stroke: #60a5fa;
  stroke-width: 1;
}

.sim-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Drawings */

.drawings {
  background: radial-gradient(900px 500px at 50% 0%, rgba(59, 130, 246, 0.12), transparent 70%), var(--bg-2);
  border-block: 1px solid var(--line);
}

.sheets {
  position: relative;
  height: clamp(320px, 52vw, 600px);
  max-width: 1000px;
  margin: 0 auto;
}

.sheet {
  position: absolute;
  width: 72%;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
  transition: transform 0.7s var(--ease), z-index 0s;
}

.sheet.s1 {
  left: 0;
  top: 6%;
  transform: rotate(-6deg);
}

.sheet.s2 {
  right: 0;
  top: 2%;
  transform: rotate(5deg);
}

.sheet.s3 {
  left: 14%;
  top: 16%;
  z-index: 2;
  transform: rotate(-1deg);
}

.sheets.in .sheet.s1 {
  transform: rotate(-8deg) translateX(-4%);
}

.sheets.in .sheet.s2 {
  transform: rotate(7deg) translateX(4%);
}

.sheet:hover {
  z-index: 3;
  transform: rotate(0deg) scale(1.04) !important;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #b4c1d6;
  font-size: 0.88rem;
}

/* Steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-2), transparent);
  opacity: 0.5;
}

.step {
  position: relative;
  padding: 0 10px;
  text-align: center;
}

.step-n {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 20px;
  background: linear-gradient(160deg, #13213f, #0c1529);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 1.4rem;
  font-weight: 800;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */

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

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s;
}

.faq details[open] {
  border-color: rgba(59, 130, 246, 0.45);
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  color: var(--primary-2);
  font-size: 1.4rem;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* Contact */

.contact {
  background: radial-gradient(700px 400px at 20% 30%, rgba(59, 130, 246, 0.14), transparent 70%), var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 28, 51, 0.9), rgba(14, 22, 40, 0.9));
  box-shadow: var(--shadow);
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 7px;
  color: #b4c1d6;
  font-size: 0.86rem;
  font-weight: 600;
}

.form small {
  color: var(--muted);
  font-weight: 400;
}

.form input,
.form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.form .invalid {
  border-color: #f87171;
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11, 18, 32, 0.25);
  border-top-color: #0b1220;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form.sending .spinner {
  display: inline-block;
}

.form.sending .btn-text {
  opacity: 0.7;
}

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

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.err {
  color: #f87171;
}

.fine {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Footer */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer .brand {
  color: var(--text);
}

.muted {
  color: #5f6f88;
}

/* Lightbox */

.lightbox {
  max-width: min(1400px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(3, 6, 12, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-height: 92vh;
  width: auto;
  margin: auto;
}

.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(7, 11, 20, 0.8);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Live model ---------- */

.live {
  background: radial-gradient(1000px 500px at 50% 0%, rgba(34, 211, 238, 0.07), transparent 70%), var(--bg);
}

.proof {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: -24px 0 40px;
  padding: 0;
  list-style: none;
}

.proof li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.proof strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.proof li > span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.live-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.live-tabs {
  display: none;
  gap: 6px;
  padding: 12px 12px 0;
}

.live-ready .live-tabs {
  display: flex;
  flex-wrap: wrap;
}

.live-tabs button {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: #b4c1d6;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.live-tabs button:hover {
  border-color: var(--primary);
}

.live-tabs button[aria-selected="true"] {
  border-color: transparent;
  background: #f1f5f9;
  color: #0b1220;
}

.live-body {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  min-height: 520px;
}

.live-stage {
  position: relative;
  min-height: 520px;
  margin: 12px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #16223a, #070b14 75%);
  overflow: hidden;
}

.live-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  /* sideways drag turns the model, up and down still scrolls the page */
  touch-action: pan-y;
  transition: opacity 0.6s var(--ease);
}

.live-stage canvas:active {
  cursor: grabbing;
}

.live-stage canvas.is-pointing {
  cursor: pointer;
}

/* Faded in once the model is drawn; without JavaScript the drawing below stays visible. */
.js .live-stage canvas {
  opacity: 0;
}

.live-ready .live-stage canvas {
  opacity: 1;
}

.live-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  background: #f8fafc;
}

.live-ready .live-fallback {
  display: none;
}

.live-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.7);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
}

.live-ready .live-hint {
  display: block;
}

.live-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 22px 10px;
  min-width: 0;
}

.live-eyebrow {
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-title {
  margin-top: -8px;
  font-size: 1.5rem;
}

.live-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.live-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.live-stat,
.live-price {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.live-stat strong {
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.live-stat-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-price {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.07);
}

.live-price strong {
  font-size: 1.9rem;
  line-height: 1.2;
}

.live-list {
  display: grid;
  gap: 6px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.live-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 4px 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.live-row:hover,
.live-row[aria-pressed="true"] {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.08);
}

.live-row.is-static {
  cursor: default;
}

.live-row.is-muted {
  opacity: 0.75;
}

.live-row.is-bad,
.live-row.is-removed {
  border-left-color: #f87171;
}

.live-row.is-changed {
  border-left-color: var(--warn);
}

.live-row.is-added {
  border-left-color: var(--ok);
}

.live-mark {
  color: var(--muted);
  font-size: 0.8rem;
}

.live-prof {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.live-qty {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.live-why {
  grid-column: 2 / -1;
  color: #cbd5e1;
  font-size: 0.84rem;
}

.live-switch {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.live-switch button,
.live-back {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #b4c1d6;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.live-switch button[aria-pressed="true"] {
  background: #f1f5f9;
  color: #0b1220;
}

.live-back {
  align-self: flex-start;
  padding-left: 0;
  color: var(--primary-2);
}

/* ---------- Sample downloads ---------- */

.samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}

.sample {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.sample:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.sample img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  padding: 6px;
}

.sample-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.sample-copy .tag {
  align-self: flex-start;
  margin: 0;
}

.sample-copy strong {
  color: var(--text);
  font-size: 1.12rem;
}

.sample-cta {
  margin-top: 4px;
  color: var(--primary-2);
  font-weight: 600;
}

/* ---------- Standards ---------- */

.standards {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.std-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.std {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s;
}

.std:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.std-code {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-2);
  font-size: 1rem;
  font-weight: 700;
}

.std p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Savings calculator ---------- */

.roi {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.roi-inputs {
  display: grid;
  gap: 22px;
}

.roi-inputs label {
  display: grid;
  gap: 8px;
}

.roi-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #b4c1d6;
  font-size: 0.92rem;
  font-weight: 600;
}

.roi-label output {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.roi input[type="range"] {
  width: 100%;
  accent-color: var(--primary-2);
  cursor: pointer;
}

.roi .fine {
  color: var(--muted);
  font-size: 0.82rem;
}

.roi-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.1), rgba(59, 130, 246, 0.06));
}

.roi-big {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.roi-big strong {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.roi-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #b4c1d6;
  font-size: 0.95rem;
}

.roi-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.roi-result .btn {
  margin-top: 8px;
}

/* ---------- Scroll reveal ----------
   Hidden only when has-js.js ran: without JavaScript nothing would add .in,
   and the page would stay empty. */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .proof {
    grid-template-columns: repeat(3, 1fr);
  }

  .live-body,
  .roi,
  .samples {
    grid-template-columns: 1fr;
  }

  .live-stage {
    min-height: 420px;
  }

  .live-panel {
    padding: 4px 18px 22px;
  }

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

  .hero-inner,
  .problem-grid,
  .contact-grid,
  .sim-grid {
    grid-template-columns: 1fr;
  }

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

  .feature {
    gap: 28px;
  }

  .feature.reverse .feature-copy {
    order: 0;
  }

  .hero {
    padding-top: 120px;
  }

  .float.f1 {
    left: 8px;
  }

  .float.f2 {
    right: 8px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .proof {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -32px;
  }

  .live-stage {
    min-height: 340px;
    margin: 8px;
  }

  .hint-zoom {
    display: none;
  }

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

  .sample {
    grid-template-columns: 96px 1fr;
    gap: 14px;
  }

  .roi {
    padding: 18px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
    margin-left: 0;
  }

  .section {
    padding: 80px 0;
  }

  .float {
    display: none !important;
  }

  .frame {
    transform: none;
  }

  .form {
    padding: 22px;
  }

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

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

  .sheets {
    height: 72vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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