/* REGWAY — Automation landing */

:root {
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --header-h: 72px;
  --container: min(1120px, 92vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b12;
  --bg-elevated: #0d1420;
  --bg-card: #111a28;
  --border: rgba(148, 163, 184, 0.12);
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --accent: #5eb3ff;
  --accent-2: #2d7dd2;
  --accent-glow: rgba(94, 179, 255, 0.45);
  --gradient: linear-gradient(135deg, #7ec8ff 0%, #4da3e8 45%, #2b7fd4 100%);
  --gradient-btn: linear-gradient(135deg, #8ed4ff 0%, #52adf0 38%, #3b9aea 100%);
  --header-bg: rgba(7, 11, 18, 0.72);
  --header-bg-scrolled: rgba(7, 11, 18, 0.92);
  --header-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --grid-line: rgba(148, 163, 184, 0.04);
  --glow-1: rgba(59, 143, 217, 0.14);
  --glow-2: rgba(30, 74, 122, 0.12);
  --logo-plate-bg: rgba(22, 48, 82, 0.55);
  --logo-plate-border: rgba(94, 179, 255, 0.32);
  --logo-plate-border-hover: rgba(126, 200, 255, 0.5);
  --logo-plate-glow: 0 0 28px rgba(59, 143, 217, 0.22);
  --logo-icon-bg: rgba(94, 179, 255, 0.12);
  --logo-icon-border: rgba(126, 200, 255, 0.22);
  --logo-icon-filter: drop-shadow(0 0 10px rgba(94, 179, 255, 0.65)) brightness(1.2);
  --logo-name-color: #f0f7ff;
  --logo-name-shadow: 0 0 24px rgba(94, 179, 255, 0.35);
  --section-alt-bg: rgba(13, 20, 32, 0.6);
  --code-bar-bg: rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.3);
  --case-card-end: rgba(17, 26, 40, 0.5);
  --cta-band-bg: linear-gradient(135deg, rgba(59, 143, 217, 0.08) 0%, rgba(30, 74, 122, 0.08) 100%);
  --cta-band-border: rgba(59, 143, 217, 0.2);
  --ghost-bg: rgba(94, 179, 255, 0.08);
  --ghost-color: #e8f4ff;
  --ghost-border: rgba(94, 179, 255, 0.4);
  --ghost-hover-bg: rgba(94, 179, 255, 0.18);
  --input-placeholder: rgba(148, 163, 184, 0.4);
  --logos-muted: rgba(148, 163, 184, 0.5);
  --toggle-bg: var(--bg-card);
  --toggle-hover: rgba(94, 179, 255, 0.12);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3f9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --border: rgba(30, 74, 122, 0.14);
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  --gradient-btn: linear-gradient(135deg, #60a5fa 0%, #3b82f6 45%, #2563eb 100%);
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-bg-scrolled: rgba(255, 255, 255, 0.96);
  --header-shadow: 0 8px 30px rgba(30, 74, 122, 0.1);
  --grid-line: rgba(30, 74, 122, 0.07);
  --glow-1: rgba(59, 130, 246, 0.1);
  --glow-2: rgba(37, 99, 235, 0.08);
  --logo-plate-bg: rgba(255, 255, 255, 0.95);
  --logo-plate-border: rgba(37, 99, 235, 0.28);
  --logo-plate-border-hover: rgba(37, 99, 235, 0.45);
  --logo-plate-glow: 0 4px 20px rgba(37, 99, 235, 0.12);
  --logo-icon-bg: rgba(37, 99, 235, 0.08);
  --logo-icon-border: rgba(37, 99, 235, 0.2);
  --logo-icon-filter: none;
  --logo-name-color: #153a63;
  --logo-name-shadow: none;
  --section-alt-bg: rgba(219, 234, 254, 0.45);
  --code-bar-bg: #f1f5f9;
  --card-shadow-hover: 0 12px 36px rgba(30, 74, 122, 0.12);
  --case-card-end: rgba(241, 245, 249, 0.9);
  --cta-band-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.06) 100%);
  --cta-band-border: rgba(37, 99, 235, 0.22);
  --ghost-bg: rgba(37, 99, 235, 0.06);
  --ghost-color: #1e40af;
  --ghost-border: rgba(37, 99, 235, 0.35);
  --ghost-hover-bg: rgba(37, 99, 235, 0.12);
  --input-placeholder: rgba(100, 116, 139, 0.55);
  --logos-muted: rgba(100, 116, 139, 0.55);
  --toggle-bg: #ffffff;
  --toggle-hover: rgba(37, 99, 235, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -80px;
  background: var(--glow-1);
}

.bg-glow--2 {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: -100px;
  background: var(--glow-2);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header--scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: var(--header-shadow);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.theme-toggle:hover {
  background: var(--toggle-hover);
  border-color: var(--logo-plate-border);
  transform: translateY(-1px);
}

.theme-toggle__sun,
.theme-toggle__moon {
  grid-area: 1 / 1;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: block;
}

html[data-theme="light"] .theme-toggle__sun {
  display: block;
}

html[data-theme="light"] .theme-toggle__moon {
  display: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  background: var(--logo-plate-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid var(--logo-plate-border);
  box-shadow: var(--logo-plate-glow);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.35s var(--ease);
}

.logo:hover .logo__plate {
  border-color: var(--logo-plate-border-hover);
}

.logo__plate--footer {
  padding: 0.3rem 0.7rem 0.3rem 0.4rem;
}

.logo__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--logo-icon-bg);
  border: 1px solid var(--logo-icon-border);
  flex-shrink: 0;
}

.logo__icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: var(--logo-icon-filter);
}

.logo__name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--logo-name-color);
  line-height: 1;
  white-space: nowrap;
  text-shadow: var(--logo-name-shadow);
  transition: color 0.35s var(--ease);
}

.logo--footer .logo__icon-wrap {
  width: 30px;
  height: 30px;
}

.logo--footer .logo__icon {
  width: 22px;
  height: 22px;
}

.logo--footer .logo__name {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.btn--primary {
  background: var(--gradient-btn);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 48, 96, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 22px rgba(94, 179, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a3ddff 0%, #6bb8f5 40%, #4da3e8 100%);
  box-shadow:
    0 8px 36px rgba(94, 179, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--ghost {
  background: var(--ghost-bg);
  color: var(--ghost-color);
  border: 1px solid var(--ghost-border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--ghost-hover-bg);
  color: var(--text);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero__stats li strong {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero__stats li span {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
}

.hero__stats li small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 8rem;
}

/* Hero visual */
.hero__visual {
  position: relative;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.flow-node {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.flow-node--input {
  background: rgba(59, 143, 217, 0.15);
  color: var(--accent);
  border: 1px solid rgba(59, 143, 217, 0.3);
}

.flow-node--process {
  background: rgba(129, 140, 248, 0.15);
  color: var(--accent-2);
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.flow-node--integrate {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.flow-node--output {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.flow-line {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.5;
  flex-shrink: 0;
}

.flow-pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  animation: flowMove 3s ease-in-out infinite;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

@keyframes flowMove {
  0% { left: 8%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 88%; opacity: 0; }
}

.code-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--code-bar-bg);
  border-bottom: 1px solid var(--border);
}

.code-card__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
}

.code-card__bar span:nth-child(1) { background: #f87171; }
.code-card__bar span:nth-child(2) { background: #fbbf24; }
.code-card__bar span:nth-child(3) { background: #34d399; }

.code-card__bar code {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.code-card__body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
}

.tok-kw { color: #c084fc; }
.tok-fn { color: #3b8fd9; }

/* Logos strip */
.logos {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.logos__label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.logos__row span {
  font-weight: 600;
  font-size: 1rem;
  color: var(--logos-muted);
  transition: color 0.2s;
}

.logos__row span:hover {
  color: var(--text-muted);
}

.logos__highlight {
  font-size: 1.5rem;
  color: var(--accent) !important;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section--alt {
  background: var(--section-alt-bg);
  border-block: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3.5rem;
}

.section__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s, background 0.35s var(--ease);
}

.card:hover {
  border-color: rgba(59, 143, 217, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card__icon {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Timeline */
.timeline {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline__item:last-child {
  border-bottom: none;
}

.timeline__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-btn);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(94, 179, 255, 0.3);
}

.timeline__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.timeline__item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--case-card-end) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.case:hover::before {
  opacity: 1;
}

.case__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent);
  margin-bottom: 1rem;
}

.case h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.case p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.cta-band__inner {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--cta-band-bg);
  border: 1px solid var(--cta-band-border);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* Contact */
.section--contact {
  padding-bottom: 6rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__single {
  max-width: 520px;
  margin-inline: auto;
}

.form--centered {
  width: 100%;
}

.contact__info {
  list-style: none;
  margin-top: 2rem;
}

.contact__info li {
  margin-bottom: 1.25rem;
}

.contact__info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact__info a {
  font-size: 1.1rem;
  color: var(--accent);
  transition: opacity 0.2s;
}

.contact__info a:hover {
  opacity: 0.8;
}

/* Form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.form__row {
  margin-bottom: 1.25rem;
}

.form__row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form__row input,
.form__row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: rgba(59, 143, 217, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 143, 217, 0.1);
}

.form__row input::placeholder,
.form__row textarea::placeholder {
  color: var(--input-placeholder);
}

.form__row--checkbox {
  margin-bottom: 1rem;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
}

.form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__checkbox a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__checkbox a:hover {
  opacity: 0.85;
}

.form__status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.form__status--success {
  color: #34d399;
}

.form__status--error {
  color: #f87171;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer p a:hover {
  opacity: 0.85;
}


/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  padding: 1rem 0;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.cookie-visible {
  padding-bottom: 5rem;
}

/* Legal placeholder page */
.legal-page {
  min-height: 100vh;
  padding: 6rem 0 3rem;
}

.legal-page__inner {
  max-width: 760px;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.legal-page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 2rem;
  line-height: 1.25;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.legal-page p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-page ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-muted);
}

.legal-page li {
  line-height: 1.65;
  margin-bottom: 0.45rem;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
}

.legal-table th {
  width: 34%;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}

.legal-table td {
  color: var(--text-muted);
}

.legal-table ul {
  margin: 0;
  padding-left: 1.1rem;
}

@media (max-width: 600px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: none;
    padding-bottom: 0.35rem;
  }

  .legal-table td {
    border-top: none;
    padding-top: 0;
    margin-bottom: 1rem;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 3rem;
  }

  .hero__visual--desktop {
    display: none;
  }

  .cards,
  .cases {
    grid-template-columns: 1fr;
  }

  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero__stats {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .hero__stats li {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .hero__stats li strong {
    font-size: 1.5rem;
  }

  .hero__stats li span {
    font-size: 1rem;
  }

  .hero__stats li small {
    font-size: 0.7rem;
    max-width: none;
    line-height: 1.3;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
