/* ============================================================
   灵动计算机视觉 · LINGDONG VISION
   Deep-space cosmos × Soviet-Concorde eclipse poster × future-tech
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Deep-space cosmos */
  --bg-space:    #05060f;
  --bg-space-2:  #0a0e1f;
  --bg-card:     rgba(236,227,208,0.04);
  --bg-card-hover: rgba(236,227,208,0.08);

  --text:        #ECE3D0;
  --text-2:      rgba(236,227,208,0.66);
  --text-3:      rgba(236,227,208,0.42);

  /* Soviet red + tech cyan */
  --red:         #D8231E;
  --red-bright:  #ff5a3c;
  --cyan:        #2EA8C9;
  --blue:        #4f8fff;

  --border:      rgba(236,227,208,0.12);
  --border-glow: rgba(216,35,30,0.45);
  --gradient-main: linear-gradient(120deg, var(--red-bright), var(--red));

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Oswald', 'Noto Sans SC', sans-serif;
  --font-cn: 'Noto Sans SC', 'Oswald', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;

  --nav-height: 72px;
  --section-padding: 120px;
  --maxw: 1200px;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --t-smooth: 0.6s var(--ease-smooth);
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-height); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--bg-space);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
/* Remove 300ms tap delay and accidental zoom on touch targets (mobile UX) */
a, button { touch-action: manipulation; }

/* ============================================================
   Robustness: no-JS fallback + accessibility
   ============================================================ */
.no-js .reveal { opacity: 1 !important; transform: none !important; }
.no-js .loader { display: none !important; }
/* Keyboard focus visibility (big-company a11y standard) */
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }
/* Skip link */
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 10000; background: var(--red); color: #fff; padding: 10px 18px; border-radius: 8px; font-family: var(--font-cn); font-weight: 700; font-size: 0.9rem; transition: top 0.2s ease; }
.skip-link:focus { top: 16px; }

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #0a0e1f, #05060f 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { width: 64px; height: 64px; color: var(--red-bright); animation: spin 1.4s linear infinite; filter: drop-shadow(0 0 12px rgba(255,90,60,0.6)); }
.loader-mark svg { width: 100%; height: 100%; }
.loader-text { color: var(--text); font-family: var(--font-cn); letter-spacing: 2px; font-size: 0.9rem; }
.loader-bar { width: 160px; height: 3px; background: rgba(236,227,208,0.15); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); animation: load 1s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-120%);} 100% { transform: translateX(360%);} }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height);
  background: rgba(5,6,15,0.6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled { background: rgba(5,6,15,0.92); border-bottom-color: rgba(216,35,30,0.5); }

.nav-content { max-width: var(--maxw); margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.logo-icon { width: 30px; height: 30px; color: var(--text); flex-shrink: 0; transition: color var(--t-fast); }
.nav-logo:hover .logo-icon { color: var(--red-bright); }
.nav-logo span { font-family: var(--font-cn); font-weight: 900; font-size: 1.15rem; letter-spacing: 1px; line-height: 1; display: flex; flex-direction: column; }
.nav-logo span em { font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: 0.62rem; letter-spacing: 3px; color: var(--red-bright); margin-top: 3px; }
.nav-links { display: flex; list-style: none; gap: 34px; margin: 0 auto; flex-shrink: 1; min-width: 0; }
.nav-link { font-family: var(--font-cn); font-size: 0.92rem; font-weight: 500; color: var(--text-2); position: relative; padding: 4px 0; transition: color var(--t-fast); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; background: var(--red-bright); box-shadow: 0 0 8px var(--red-bright); transition: width var(--t-smooth); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }

.nav-cta {
  font-family: var(--font-cn); font-weight: 700; font-size: 0.9rem; padding: 10px 22px;
  border-radius: 100px; background: var(--gradient-main); color: #fff; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(216,35,30,0.4); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,90,60,0.55); }
.nav-cta--mobile { display: none; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--text); transition: var(--t-fast); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 999;
  background: rgba(5,6,15,0.97); border-bottom: 1px solid rgba(216,35,30,0.5);
  padding: 24px; transform: translateY(-110%); opacity: 0; visibility: hidden; transition: var(--t-smooth);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.mobile-menu a { font-family: var(--font-cn); font-size: 1.2rem; font-weight: 700; color: var(--text); }

/* ============================================================
   HERO — deep space / eclipse / Concorde
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  padding: calc(var(--nav-height) + 40px) 24px 70px;
  background: radial-gradient(circle at 70% 30%, rgba(12,20,48,0.72), rgba(5,6,15,0.86) 55%);
}
.stars-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.poster-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* eclipse corona sunburst rays */
.eclipse-rays {
  position: absolute; right: 6%; top: 22%; width: 70vmin; height: 70vmin; transform: translate(0,-10%);
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255,90,60,0.10) 0deg 6deg, transparent 6deg 14deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 8%, transparent 60%);
  mask-image: radial-gradient(circle at 50% 50%, #000 8%, transparent 60%);
  animation: rayspin 120s linear infinite;
}
@keyframes rayspin { to { transform: translate(0,-10%) rotate(360deg); } }
/* halftone (light dots on dark) */
.halftone {
  position: absolute; left: 4%; bottom: 10%; width: 240px; height: 240px;
  background-image: radial-gradient(rgba(236,227,208,0.5) 22%, transparent 23%);
  background-size: 13px 13px; opacity: 0.07;
}
/* Soviet red diagonal band */
.red-band {
  position: absolute; left: -10%; bottom: 0; width: 130%; height: 120px;
  background: linear-gradient(90deg, transparent, rgba(216,35,30,0.18), transparent);
  transform: rotate(-4deg); transform-origin: left;
  border-top: 2px solid rgba(216,35,30,0.4); border-bottom: 2px solid rgba(216,35,30,0.4);
}

.hero-grid {
  position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 30px;
}
.hero-emblem { display: flex; justify-content: center; }
.hero-logo {
  display: flex; align-items: center; justify-content: center;
  width: clamp(180px, 26vw, 300px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,90,60,0.16), transparent 68%);
  border: 1px solid var(--border);
}
.hero-logo-mark { width: 56%; height: 56%; color: var(--text); filter: drop-shadow(0 0 14px rgba(255,90,60,0.35)); }

.hero-kicker { font-family: var(--font-display); font-weight: 600; letter-spacing: 6px; font-size: 0.95rem; color: var(--red-bright); text-transform: uppercase; margin-bottom: 14px; }
.hero-title {
  font-family: var(--font-cn); font-weight: 900; font-size: clamp(3rem, 9vw, 6.5rem); line-height: 0.98; letter-spacing: -1px; color: var(--text);
  text-shadow: 0 0 40px rgba(79,143,255,0.25);
}
.hero-title .line-1 { display: block; }
.hero-title .line-2 {
  display: block; margin-top: 6px;
  background: linear-gradient(100deg, var(--red-bright) 0%, #ffd27a 32%, #fff3d6 50%, #ffd27a 68%, var(--red-bright) 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,90,60,0.45));
  animation: titleShimmer 7s linear infinite;
}
@keyframes titleShimmer { to { background-position: 220% center; } }
/* First screen comes alive only once the loader lifts */
.is-ready .hero-logo { animation: emblemFloat 8s ease-in-out infinite; }
@keyframes emblemFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-en { font-family: var(--font-display); font-weight: 500; letter-spacing: 5px; font-size: clamp(0.9rem, 2vw, 1.2rem); color: var(--text-3); margin: 22px 0 18px; }
.hero-subtitle { font-family: var(--font-cn); font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-2); line-height: 1.85; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stamp {
  position: absolute; right: 26px; bottom: 26px; z-index: 3;
  border: 2px solid var(--red-bright); border-radius: 50%; width: 96px; height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transform: rotate(-12deg); opacity: 0.9; box-shadow: 0 0 20px rgba(216,35,30,0.4);
}
.hero-stamp span { font-family: var(--font-display); font-weight: 600; font-size: 0.62rem; letter-spacing: 1px; line-height: 1.25; color: var(--red-bright); }



/* ============================================================
   Buttons
   ============================================================ */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 34px; border-radius: 100px; font-family: var(--font-cn);
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all var(--t-fast); border: 2px solid transparent; letter-spacing: 0.5px;
}
.btn-primary { background: var(--gradient-main); color: #fff; box-shadow: 0 6px 24px rgba(216,35,30,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(255,90,60,0.55); }
.btn-primary:active { transform: translateY(2px); }
.btn-secondary { background: rgba(236,227,208,0.06); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: rgba(236,227,208,0.12); border-color: var(--text-3); }
.btn-outline { background: transparent; color: var(--red-bright); border-color: var(--red-bright); }
.btn-outline:hover { background: var(--red); color: #fff; box-shadow: 0 0 22px rgba(216,35,30,0.5); }
.btn-full { width: 100%; }

/* ============================================================
   Sections (common)
   ============================================================ */
.section { padding: var(--section-padding) 24px; position: relative; scroll-margin-top: var(--nav-height); }
.section .container { position: relative; z-index: 1; }
.container { max-width: var(--maxw); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag { font-family: var(--font-display); font-weight: 600; letter-spacing: 5px; font-size: 0.82rem; color: var(--red-bright); text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-family: var(--font-cn); font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.15; color: var(--text); }
.accent-red { color: var(--red-bright); }
.accent-cyan { color: var(--cyan); }
.section-desc { font-family: var(--font-cn); font-size: 1.05rem; color: var(--text-2); max-width: 620px; margin: 18px auto 0; line-height: 1.85; }

/* ============================================================
   About — stats (cosmic framed)
   ============================================================ */
.about { background: linear-gradient(180deg, rgba(5,6,15,0.82), rgba(10,14,31,0.82)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  position: relative; text-align: center; padding: 44px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient-main); opacity: 0.9; }
.stat-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: 0 16px 40px rgba(216,35,30,0.18); }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; display: inline-block; color: var(--red-bright); text-shadow: 0 0 20px rgba(255,90,60,0.35); }
.stat-unit { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1; color: var(--red-bright); margin-left: 3px; }
.stat-label { margin-top: 12px; font-family: var(--font-cn); font-size: 0.9rem; color: var(--text-2); font-weight: 500; }

/* ============================================================
   Products
   ============================================================ */
.products { background: rgba(5,6,15,0.82); }
.products-band { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--red-bright) 40px 80px); opacity: 0.8; }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.product-card:hover { transform: translateY(-8px); border-color: var(--border-glow); box-shadow: 0 22px 60px rgba(79,143,255,0.14); }
.product-visual {
  padding: 34px; position: relative;
  background:
    radial-gradient(circle at 50% 40%, rgba(79,143,255,0.12), transparent 70%),
    repeating-linear-gradient(45deg, rgba(236,227,208,0.03) 0 10px, transparent 10px 20px);
  border-bottom: 1px solid var(--border);
}
.prod-art { width: 100%; height: auto; max-height: 150px; margin: 0 auto; filter: drop-shadow(0 0 12px rgba(46,168,201,0.25)); }
.product-info { padding: 30px; }
.product-badge {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 2px; font-size: 0.72rem;
  background: var(--gradient-main); color: #fff; margin-bottom: 16px; text-transform: uppercase;
  box-shadow: 0 0 14px rgba(216,35,30,0.4);
}
.badge-compact { background: rgba(46,168,201,0.18); color: var(--cyan); box-shadow: none; border: 1px solid var(--cyan); }
.badge-industrial { background: rgba(236,227,208,0.1); color: var(--text); box-shadow: none; border: 1px solid var(--text-3); }
.product-name { font-family: var(--font-cn); font-weight: 900; font-size: 1.35rem; margin-bottom: 10px; }
.product-desc { font-family: var(--font-cn); color: var(--text-2); font-size: 0.94rem; margin-bottom: 18px; line-height: 1.75; }
.product-specs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.product-specs li { font-family: var(--font-cn); font-size: 0.8rem; color: var(--text-3); padding: 7px 0; border-bottom: 1px solid var(--border); }

/* ---- Live product demos (animated, not static art) ---- */
.product-visual .prod-art { transform-box: fill-box; }
/* Industrial inspection: beam sweep + defect highlight */
.demo-inspect .insp-beam { animation: inspSweep 3.2s ease-in-out infinite; }
.demo-inspect .insp-defect { animation: inspPulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.demo-inspect .insp-cross { animation: inspBlink 1.6s steps(1) infinite; }
@keyframes inspSweep {
  0%   { transform: translateX(0); }
  100% { transform: translateX(82px); }
}
@keyframes inspPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes inspBlink { 0%,60% { opacity: 0.55; } 61%,100% { opacity: 0; } }
/* Retail analytics: moving shopper + heat pulses */
.demo-retail .ret-track { animation: retMove 5s ease-in-out infinite; }
.demo-retail .ret-heat { transform-box: fill-box; transform-origin: center; animation: retHeat 2.6s ease-out infinite; }
.demo-retail .ret-heat2 { animation-delay: 1.3s; }
.demo-retail .ret-trail { stroke-dasharray: 3 4; animation: retDash 1.4s linear infinite; }
@keyframes retMove {
  0%   { transform: translate(24px, 62px); }
  45%  { transform: translate(64px, 56px); }
  100% { transform: translate(104px, 30px); }
}
@keyframes retHeat { 0% { transform: scale(0.5); opacity: 0; } 30% { opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes retDash { to { stroke-dashoffset: -14; } }
/* City eye: traffic flow + detection box */
.demo-city .city-car { animation: cityFlow 3.4s linear infinite; }
.demo-city .city-car2 { animation-duration: 4.6s; animation-delay: 1.2s; }
.demo-city .city-box { animation: cityBox 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.demo-city .city-cross { animation: inspBlink 3.4s steps(1) infinite; }
@keyframes cityFlow { 0% { transform: translateX(0); } 100% { transform: translateX(108px); } }
@keyframes cityBox { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
/* Depth camera: scanning plane + depth wave + point cloud */
.demo-depth .depth-scan { animation: depthScan 3s ease-in-out infinite; }
.demo-depth .depth-wave { animation: depthWave 3s ease-in-out infinite; }
.demo-depth .depth-dots circle { animation: depthDot 1.8s ease-in-out infinite; }
.demo-depth .depth-dots circle:nth-child(2) { animation-delay: 0.4s; }
.demo-depth .depth-dots circle:nth-child(3) { animation-delay: 0.8s; }
.demo-depth .depth-dots circle:nth-child(4) { animation-delay: 1.2s; }
@keyframes depthScan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.9; } 85% { opacity: 0.9; } 100% { transform: translateY(51px); opacity: 0; } }
@keyframes depthWave { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes depthDot { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
/* Pause all decorative motion when the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .demo-inspect .insp-beam, .demo-inspect .insp-defect, .demo-inspect .insp-cross,
  .demo-retail .ret-track, .demo-retail .ret-heat, .demo-retail .ret-trail,
  .demo-city .city-car, .demo-city .city-box, .demo-city .city-cross,
  .demo-depth .depth-scan, .demo-depth .depth-wave, .demo-depth .depth-dots circle { animation: none !important; }
}

/* ============================================================
   Tech
   ============================================================ */
.tech { background: linear-gradient(180deg, rgba(10,14,31,0.82), rgba(5,6,15,0.82)); }
.tech .section-tag { color: var(--cyan); }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 72px; }
.tech-card {
  padding: 36px 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.tech-card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 16px 40px rgba(46,168,201,0.16); }
.tech-icon { width: 50px; height: 50px; color: var(--cyan); margin-bottom: 18px; filter: drop-shadow(0 0 8px rgba(46,168,201,0.4)); }
.tech-icon svg { width: 100%; height: 100%; }
.tech-card h3 { font-family: var(--font-cn); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.tech-card p { font-family: var(--font-cn); color: var(--text-2); font-size: 0.92rem; line-height: 1.75; }

.tech-showcase {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 48px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.showcase-visual { position: relative; aspect-ratio: 4/3; background: radial-gradient(circle at 50% 50%, rgba(46,168,201,0.08), #04050c 70%); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.depth-canvas { width: 100%; height: 100%; display: block; }
.depth-legend { position: absolute; right: 14px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; font-family: var(--font-cn); font-size: 0.7rem; color: var(--text-2); pointer-events: none; }
.depth-legend i { width: 92px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(255,112,66), rgb(120,150,150), rgb(34,92,150)); box-shadow: 0 0 8px rgba(0,0,0,0.45); }
.showcase-info h3 { font-family: var(--font-cn); font-weight: 900; font-size: 1.5rem; margin-bottom: 14px; }
.showcase-info p { font-family: var(--font-cn); color: var(--text-2); line-height: 1.85; margin-bottom: 26px; }
.demo-controls { display: flex; gap: 12px; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: rgba(5,6,15,0.82); }
.contact-band { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(216,35,30,0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(46,168,201,0.14), transparent 45%);
}
.contact-wrapper { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-info .section-tag, .contact-info .section-title { text-align: left; }
.contact-info > p { font-family: var(--font-cn); color: var(--text-2); margin-top: 14px; line-height: 1.85; }
.contact-details { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; font-family: var(--font-cn); color: var(--text-2); font-size: 0.95rem; }
.contact-item svg { width: 22px; height: 22px; color: var(--red-bright); flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(255,90,60,0.4)); }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; backdrop-filter: blur(8px); }
.form-group { position: relative; margin-bottom: 22px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 16px 18px; background: rgba(5,6,15,0.6);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.95rem; font-family: var(--font-cn); transition: all var(--t-fast); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(216,35,30,0.18); }
.form-group label { position: absolute; left: 18px; top: 16px; color: var(--text-3); font-family: var(--font-cn); font-size: 0.95rem; transition: all var(--t-fast); pointer-events: none; }
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label {
  top: -10px; left: 14px; font-size: 0.75rem; background: var(--bg-space-2); padding: 0 6px; color: var(--red-bright); font-weight: 500;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 14px; font-family: var(--font-cn); font-size: 0.88rem; text-align: center; min-height: 22px; }
.form-status.success { color: #34d399; }
.form-status.error { color: #ff6a5a; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 60px max(24px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background: rgba(4,5,12,0.9); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .nav-logo { color: var(--text); }
.footer .nav-logo span em { color: var(--red-bright); }
.footer-desc { font-family: var(--font-cn); color: var(--text-3); margin-top: 14px; font-size: 0.9rem; }
.footer-links h4 { font-family: var(--font-cn); font-size: 0.85rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; color: var(--cyan); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-family: var(--font-cn); color: var(--text-3); font-size: 0.88rem; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid var(--border); font-family: var(--font-cn); color: var(--text-3); font-size: 0.82rem; }

/* ============================================================
   Clients / Trusted-by strip
   ============================================================ */
.clients { background: rgba(5,6,15,0.82); padding-top: 48px; padding-bottom: 48px; }
.clients-eyebrow { text-align: center; font-family: var(--font-display); font-weight: 600; letter-spacing: 5px; font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; margin-bottom: 30px; }
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; }
.client-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 2px; color: var(--text-3); opacity: 0.7; transition: color var(--t-fast), opacity var(--t-fast); }
.client-logo:hover { color: var(--text); opacity: 1; }
.clients-note { text-align: center; margin-top: 28px; font-family: var(--font-cn); font-size: 0.9rem; color: var(--text-3); line-height: 1.8; }

/* ============================================================
   Back-to-top
   ============================================================ */
.to-top {
  position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 900; width: 48px; height: 48px;
  border-radius: 50%; border: none; background: var(--gradient-main); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(216,35,30,0.45);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { box-shadow: 0 10px 30px rgba(255,90,60,0.6); }

/* ============================================================
   Meteor motif — runs through every section (decorative streaks)
   ============================================================ */
.meteor-deco {
  position: absolute; width: 120px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,210,122,0) 0%, rgba(255,90,60,0.5) 75%, #fff 100%);
  filter: drop-shadow(0 0 5px rgba(255,90,60,0.4));
  opacity: 0; pointer-events: none; z-index: 0; will-change: transform, opacity;
}
@keyframes meteorFly {
  0%   { transform: translate3d(0, 0, 0) rotate(24deg); opacity: 0; }
  14%  { opacity: 0.85; }
  82%  { opacity: 0.85; }
  100% { transform: translate3d(var(--mx, 55vw), var(--my, 32vh), 0) rotate(24deg); opacity: 0; }
}

/* ============================================================
   Auto-scroll control (self-scrolling presentation mode)
   ============================================================ */
.auto-scroll-toggle {
  position: fixed; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(5,6,15,0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.auto-scroll-toggle.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.auto-scroll-toggle:hover { border-color: var(--red-bright); color: #fff; }
.auto-scroll-toggle svg { width: 20px; height: 20px; }
.auto-scroll-toggle .ic-play { display: none; }
.auto-scroll-toggle.paused .ic-pause { display: none; }
.auto-scroll-toggle.paused .ic-play { display: block; }
.auto-scroll-toggle:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* ============================================================
   Footer social + legal
   ============================================================ */
.footer-social { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; }
.social-link { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text-2); transition: all var(--t-fast); }
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { color: #fff; border-color: var(--red-bright); background: rgba(216,35,30,0.15); transform: translateY(-2px); }
.footer-legal { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.footer-legal a { font-family: var(--font-cn); font-size: 0.8rem; color: var(--text-3); transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(42px); will-change: opacity, transform; transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); will-change: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }
  .nav-links { gap: 20px; }
  .nav-cta { padding: 9px 16px; font-size: 0.85rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero-emblem { order: -1; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stamp { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-showcase { grid-template-columns: 1fr; padding: 32px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .product-visual { padding: 28px; }
  .product-info { padding: 26px; }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-padding: 60px; --nav-height: 60px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-cta--mobile { display: block; text-align: center; margin-top: 10px; }
  .stats-grid { gap: 14px; }
  .stat-card { padding: 30px 14px; }
  .stat-number { font-size: 2.4rem; }
  .products-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 28px 20px; }
  .section-header { margin-bottom: 48px; }
}
@media (max-width: 480px) {
  .hero-subtitle br { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary, .btn-outline { width: 100%; max-width: 280px; }
  .product-specs { grid-template-columns: 1fr; }
  .demo-controls { flex-direction: column; }
}

/* ============================================================
   Platform self-recognition — adaptive to device class
   ============================================================ */
.is-coarse .btn-primary,
.is-coarse .btn-secondary,
.is-coarse .btn-outline { padding-top: 16px; padding-bottom: 16px; }   /* larger tap targets on touch */
.is-coarse .nav-cta { padding: 12px 22px; }
.is-coarse .social-link { width: 42px; height: 42px; }
.is-touch .hero-emblem { transition: none; }   /* no hover/parallax dependency on touch */
.is-portrait .hero-title { font-size: clamp(2.6rem, 13vw, 4.6rem); }

/* ============================================================
   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; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .navbar, .mobile-menu, .loader, .scroll-indicator, .stars-canvas, .poster-bg, .hero-stamp, .eclipse-rays { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 40px 0; }
}
