/* ===== PALAVEN — Premium Light Design ===== */
:root {
  --bg-deep: #f4f6f9;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-section-alt: #eef1f6;
  --asphalt-dark: #2a2e34;
  --asphalt: #3f444c;
  --asphalt-mid: #4d535c;
  --asphalt-light: #5a6069;
  --shoulder: #9ca3ad;
  --shoulder-dark: #7a808a;
  --marking-white: #f8f8f6;
  --marking-yellow: #e5c04a;
  --grass: #c5d4b8;
  --accent-navy: #0c2340;
  --accent-teal: #0d6e6e;
  --accent-blue: #1a4d8c;
  --accent-gold: #b8942e;
  --accent-orange: #d4622a;
  --text-primary: #0f172a;
  --text-muted: #5c6578;
  --border: rgba(12, 35, 64, 0.1);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --shadow-premium: 0 32px 80px rgba(12, 35, 64, 0.14);
  --glow-teal: 0 8px 32px rgba(13, 110, 110, 0.2);
  --glow-blue: 0 8px 40px rgba(26, 77, 140, 0.15);
  --font-main: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Manrope', sans-serif;
  --header-h: 80px;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius-lg: 24px;
  --radius-md: 16px;
}

[dir="rtl"] {
  --font-main: var(--font-ar);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body,
[dir="rtl"] .header,
[dir="rtl"] .section__text {
  font-family: var(--font-ar);
}

/* Background effects */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.gradient-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13, 110, 110, 0.06) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  animation: orbFloat 20s ease-in-out infinite;
}

.gradient-orb--2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(184, 148, 46, 0.05) 0%, transparent 70%);
  bottom: 10%;
  left: -120px;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.1); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo__icon {
  width: 36px;
  height: 36px;
}

.logo__text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--accent-navy), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent-teal);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-section-alt);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-navy), var(--accent-teal));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-navy) 0%, var(--accent-teal) 100%);
  color: #fff;
  box-shadow: var(--glow-teal);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(13, 110, 110, 0.35);
}

.btn--ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2rem) clamp(1.5rem, 5vw, 4rem) var(--section-pad);
  z-index: 1;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.section__inner--reverse {
  direction: ltr;
}

[dir="rtl"] .section__inner--reverse {
  direction: rtl;
}

.section__text {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.section__text.visible {
  opacity: 1;
  transform: translateY(0);
}

.section__step {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--accent-navy);
  letter-spacing: -0.025em;
}

.section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

[dir="rtl"] .feature-list li {
  padding-left: 0;
  padding-right: 1.5rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(184, 148, 46, 0.2);
}

[dir="rtl"] .feature-list li::before {
  left: auto;
  right: 0;
}

/* ===== HERO ===== */
.section--hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: calc(var(--header-h) + 3rem);
  overflow: hidden;
  background: linear-gradient(180deg, #fafbfc 0%, var(--bg-deep) 100%);
}

.hero__content {
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(30px); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1.1rem 0.45rem 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.18);
  animation: hudPulse 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 1.25rem;
  color: var(--accent-navy);
  letter-spacing: -0.035em;
}

.hero__title span {
  display: block;
}

.hero__title--accent {
  background: linear-gradient(120deg, var(--accent-navy) 0%, var(--accent-teal) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

[dir="rtl"] .scroll-hint {
  align-items: flex-end;
}

.scroll-hint__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
 * 3D scenes (Three.js canvas containers)
 * ============================================ */
.hero__scene {
  position: relative;
  height: 76vh;
  min-height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  border: none;
  background: linear-gradient(180deg, #fafbfc 0%, var(--bg-deep) 100%);
}

.hero__scene .scene3d {
  border-radius: inherit;
}

.scene3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Hero & scan: без маски и виньетки — фон канваса = фон секции */
.scene3d--hero,
.scene3d--scan {
  -webkit-mask-image: none;
  mask-image: none;
}

.scene3d--soft {
  -webkit-mask-image: radial-gradient(
    ellipse 88% 90% at 50% 50%,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.75) 65%,
    rgba(0, 0, 0, 0.35) 80%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 88% 90% at 50% 50%,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.75) 65%,
    rgba(0, 0, 0, 0.35) 80%,
    transparent 100%
  );
}

.scene3d__vignette {
  display: none;
}

.scene3d__hud {
  position: absolute;
  inset: 1.25rem;
  z-index: 3;
  pointer-events: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.7rem;
}

.hud-tag {
  grid-column: 1; grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border-radius: 100px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hud-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2);
  animation: hudPulse 1.4s ease-in-out infinite;
}

@keyframes hudPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hud-stat {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.hud-stat__label {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
}

.hud-stat__value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-navy);
  font-variant-numeric: tabular-nums;
}

/* ===== SCAN SECTION ===== */
.section--scan {
  background: var(--bg-section-alt);
}

.scan__visual {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s var(--ease-out-expo);
}

.scan__visual.visible {
  opacity: 1;
  transform: scale(1);
}

.scan-scene {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-section-alt);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
}

.scene3d--scan {
  z-index: 1;
}

.scan-beam {
  display: none;
}

.scan-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.scan-scene.active .scan-flash {
  animation: flash 6s ease-in-out infinite;
}

@keyframes flash {
  0%, 92%, 100% { opacity: 0; }
  93%, 95% { opacity: 0.15; }
}

.gps-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-teal);
  box-shadow: var(--shadow-md);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gps-coords {
  color: var(--text-muted);
}

/* ===== PROCESS SECTION ===== */
.section--process {
  background: var(--bg-card);
}

.process__visual {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

[dir="rtl"] .process__visual {
  transform: translateX(-30px);
}

.process__visual.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slim progress breadcrumb */
.data-steps {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.data-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.data-steps li > span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.data-steps .is-done {
  color: var(--accent-navy);
}

.data-steps .is-done > span:first-child {
  background: var(--accent-navy);
  color: #fff;
  border-color: var(--accent-navy);
}

.data-steps .is-current {
  background: rgba(13, 110, 110, 0.08);
  color: var(--accent-teal);
  border-color: rgba(13, 110, 110, 0.25);
}

.data-steps .is-current > span:first-child {
  background: var(--accent-teal);
  color: #fff;
  border-color: var(--accent-teal);
}

/* Data card frames (3D mesh + orthophoto) */
.data-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1f2228;
  aspect-ratio: 16 / 9;
  margin: 0;
  box-shadow: var(--shadow-md);
}

.data-card--flat {
  aspect-ratio: 24 / 7;
  background: var(--asphalt-dark);
}

.data-card .scene3d {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.data-card .height-map {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  background: transparent;
  opacity: 1;
  transform: none;
  transition: none;
}

.data-card__caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border-radius: 8px;
  font-size: 0.78rem;
  z-index: 2;
  backdrop-filter: blur(10px);
  max-width: calc(100% - 1.5rem);
}

.data-card__label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.data-card__meta {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.process-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 90px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.4;
  transition: all 0.5s;
}

.process__visual.visible .pipeline-step--photos {
  animation: stepActivate 0.6s 0.2s forwards;
}

.process__visual.visible .pipeline-step--cloud {
  animation: stepActivate 0.6s 0.8s forwards;
}

.process__visual.visible .pipeline-step--mesh {
  animation: stepActivate 0.6s 1.4s forwards;
}

@keyframes stepActivate {
  to { opacity: 1; border-color: var(--accent-teal); box-shadow: var(--glow-teal); }
}

.pipeline-arrow {
  color: var(--accent-teal);
  font-size: 1.2rem;
  opacity: 0.3;
  transition: opacity 0.5s 0.5s;
}

.process__visual.visible .pipeline-arrow {
  opacity: 1;
}

.pipeline-icon {
  font-size: 1.5rem;
}

.point-cloud {
  position: relative;
  width: 70px;
  height: 50px;
}

.pt {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4px;
  height: 4px;
  background: var(--asphalt-mid);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(63, 68, 76, 0.5);
  opacity: 0;
  animation: ptAppear 0.3s forwards;
}

.process__visual.visible .pt {
  animation: ptAppear 0.4s calc(var(--i) * 0.05s + 0.9s) forwards;
}

@keyframes ptAppear {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 0.9; transform: scale(1); }
}

#meshCanvas {
  border-radius: 10px;
  background: #eceef2;
  display: block;
  border: 1px solid var(--border);
}

.height-map-preview { display: none; }
.height-map__label  { display: none; }
.process-pipeline   { display: none; }

/* ===== AI SECTION ===== */
.section--ai {
  background: var(--bg-section-alt);
}

.ai__visual {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s var(--ease-out-expo);
}

.ai__visual.visible {
  opacity: 1;
  transform: scale(1);
}

.ai-scene {
  position: relative;
  aspect-ratio: 4/3;
  background: transparent;
  border-radius: 0;
  border: none;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0;
  box-shadow: none;
}

.ai-map {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--asphalt);
  min-height: 200px;
  border: none;
  box-shadow: var(--shadow-md);
  -webkit-mask-image: radial-gradient(ellipse 96% 98% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 96% 98% at 50% 50%, #000 70%, transparent 100%);
}

.ai-map__asphalt {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--asphalt-mid) 0%, var(--asphalt) 40%, var(--asphalt-dark) 100%);
}

.ai-map__lane {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8%;
  background: repeating-linear-gradient(
    180deg,
    var(--marking-yellow) 0,
    var(--marking-yellow) 16px,
    transparent 16px,
    transparent 32px
  );
  opacity: 0.9;
  z-index: 2;
}

.ai-map__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.06) 24px, rgba(255,255,255,0.06) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,0.06) 24px, rgba(255,255,255,0.06) 25px);
  pointer-events: none;
}

.defect-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.defect-mask {
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-origin: center;
}

.ai-scene.active .defect-mask {
  animation: maskReveal 0.7s var(--ease-out-expo) forwards;
}

.defect-mask--crack {
  fill: none;
  stroke: #ff453a;
  stroke-width: 0.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 0.35px rgba(255, 69, 58, 0.9));
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
}

.ai-scene.active .defect-mask--crack {
  animation: crackDraw 1.1s var(--ease-out-expo) forwards;
}

.defect-mask--crack:nth-of-type(2) {
  animation-delay: 0.35s;
}

.defect-mask--pothole {
  fill: rgba(255, 107, 53, 0.42);
  stroke: #ff6b35;
  stroke-width: 0.45;
  filter: drop-shadow(0 0 0.5px rgba(255, 107, 53, 0.75));
  animation-delay: 0.55s;
}

.defect-mask--wear {
  fill: rgba(255, 193, 7, 0.32);
  stroke: #ffc107;
  stroke-width: 0.4;
  stroke-dasharray: 4 2;
  animation-delay: 0.85s;
}

@keyframes crackDraw {
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes maskReveal {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ai-scene.active .defect-mask--pothole,
.ai-scene.active .defect-mask--wear {
  animation: maskReveal 0.65s var(--ease-out-expo) forwards,
             maskPulse 2.4s ease-in-out 0.8s infinite;
}

@keyframes maskPulse {
  0%, 100% { filter: drop-shadow(0 0 0.35px rgba(255, 107, 53, 0.6)); }
  50%      { filter: drop-shadow(0 0 1px rgba(255, 107, 53, 0.95)); }
}

.neural-net {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem;
}

.nn-layer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nn-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.ai-scene.active .nn-node {
  animation: nnPulse 1.5s ease-in-out infinite;
}

.ai-scene.active .nn-layer--hidden .nn-node:nth-child(odd) {
  animation-delay: 0.2s;
}

.ai-scene.active .nn-node--active {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  box-shadow: 0 0 12px var(--accent-teal);
}

@keyframes nnPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.nn-connections {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-teal));
  opacity: 0.5;
}

.ai-results {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.ai-result {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-10px);
}

[dir="rtl"] .ai-result {
  transform: translateX(10px);
}

.ai-scene.active .ai-result--detected {
  animation: resultSlide 0.5s forwards;
}

.ai-scene.active .ai-result--detected:nth-child(2) {
  animation-delay: 1.2s;
}

.ai-scene.active .ai-result--pending {
  animation: resultSlide 0.5s 1.8s forwards;
}

@keyframes resultSlide {
  to { opacity: 1; transform: translateX(0); }
}

.ai-result__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  flex-shrink: 0;
}

.ai-result__dot--orange {
  background: var(--accent-orange);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  opacity: 0;
  top: 0;
}

.ai-scene.active .scan-line {
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== TECH ===== */
.section--tech {
  text-align: center;
  min-height: auto;
  padding-bottom: var(--section-pad);
  background: var(--bg-card);
}

.tech__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s;
}

.tech__title.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.tech-card {
  padding: 2.25rem 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
  text-align: left;
}

.tech-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 110, 110, 0.3);
  box-shadow: var(--shadow-lg);
}

.tech-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 110, 110, 0.08), rgba(12, 35, 64, 0.06));
  color: var(--accent-teal);
}

.tech-card__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-navy);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.tech-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.tech-card__icon {
  margin-left: 0;
}

.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 5rem);
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-navy), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.section--contact {
  min-height: auto;
  padding-bottom: 4rem;
  background: var(--bg-deep);
}

.contact__card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
}

.contact__card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-navy);
  letter-spacing: -0.025em;
}

.contact__card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.contact__card p {
  margin-bottom: 2rem;
}

/* Site Footer */
.site-footer {
  background: var(--accent-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem) 0;
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1.35fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: start;
}

.site-footer .logo__text {
  font-size: 1.25rem;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.75rem;
}

.site-footer__tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
  line-height: 1.5;
}

.site-footer__nav {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  justify-content: flex-end;
}

.site-footer__col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.site-footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.site-footer__col a:hover {
  color: #fff;
}

.site-footer__col--legal {
  max-width: 420px;
}

.company-details__name {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.company-bank {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.company-bank summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent-gold);
  user-select: none;
  padding: 0.2rem 0;
}

.company-bank summary::-webkit-details-marker { display: none; }

.company-bank__chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease-out-expo);
}

.company-bank[open] .company-bank__chevron {
  transform: rotate(180deg);
}

.company-details--bank {
  margin-top: 0.6rem;
  padding-left: 0;
  animation: bankReveal 0.35s var(--ease-out-expo);
}

@keyframes bankReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.company-details--bank dd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

[dir="rtl"] .site-footer__col--legal {
  margin-right: auto;
  margin-left: 0;
}

.company-details {
  margin: 0;
}

.company-details__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.company-details__row--address {
  grid-template-columns: 1fr;
  gap: 0.2rem;
  margin-top: 0.25rem;
}

.company-details dt {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  white-space: nowrap;
}

.company-details__row--address dt {
  white-space: normal;
}

.company-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.company-details__note {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.site-footer__legal:hover {
  color: #fff;
}

[dir="rtl"] .site-footer__nav {
  justify-content: flex-start;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  pointer-events: none;
  transform: translateY(120%);
  transition: transform 0.6s var(--ease-out-expo);
}

.cookie-banner.is-visible {
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner__panel {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
}

.cookie-banner__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--accent-navy);
  margin-bottom: 0.25rem;
}

.cookie-banner__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner__accept {
  white-space: nowrap;
}

.cookie-banner__decline {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}

body.cookie-visible {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .cookie-banner__panel {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__tagline {
    margin: 0 auto;
  }

  .site-footer__nav {
    justify-content: center;
  }

  .site-footer__col--legal {
    max-width: none;
    margin: 0 auto;
    text-align: left;
  }

  [dir="rtl"] .site-footer__col--legal {
    text-align: right;
  }

  .company-details__row {
    grid-template-columns: 1fr;
    text-align: inherit;
  }

  .company-details dt {
    white-space: normal;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section--hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .scroll-hint {
    align-items: center;
  }

  .hero__scene {
    height: 60vh;
    min-height: 400px;
  }

  .section__inner,
  .section__inner--reverse {
    grid-template-columns: 1fr;
  }

  .section__inner--reverse .section__text {
    order: -1;
  }

  .ai-scene {
    grid-template-columns: 1fr;
  }

  .neural-net {
    justify-content: center;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header {
    padding: 0 1rem;
  }

  .process-pipeline {
    flex-direction: column;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }

}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .lang-btn {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
