/* ── Space Palette ── */
:root {
  --bg: #07020e;
  --bg-soft: #0d0a18;
  --bg-card: rgba(14, 10, 28, 0.7);
  --border: rgba(168, 130, 255, 0.1);
  --border-hover: rgba(168, 130, 255, 0.25);
  --text: #eae6f5;
  --text-soft: #c4bedd;
  --text-softer: #9893b0;
  --accent: #a882ff;
  --accent-soft: rgba(168, 130, 255, 0.15);
  --accent-glow: rgba(168, 130, 255, 0.55);
  --purple-deep: #2a1a4e;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1060px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Global grain texture ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

h1, h2, h3, h4 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.page-shell { position: relative; min-height: 100vh; }

.section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 76px;
  padding: 0 48px;
  box-sizing: border-box;
  background: transparent;
  isolation: isolate;
}

/* Background + blur — only this layer fades, text stays fully visible */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(to right,
      rgba(35, 28, 48, 0.97) 0%,
      rgba(36, 25, 63, 0.91) 28%,
      rgba(16,14,14,0.88) 52%,
      #312657 80%,
      #4a5a2a 100%
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 52%, transparent 100%);
  mask-image:         linear-gradient(to bottom, black 0%, black 52%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.logo-img {
  width: 52px; height: 52px;
  filter: drop-shadow(0 0 8px rgba(168,130,255,0.6));
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(168,130,255,0.5)); }
  50%       { filter: drop-shadow(0 0 14px rgba(168,130,255,1)) drop-shadow(0 0 30px rgba(168,130,255,0.5)); }
}

.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #d4b8ff 50%, #a882ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGlow 4s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 48px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.nav-left  { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 200ms;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 1);
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { padding: 0 20px; }
}

/* ── Hero ── */
.hero { padding-top: 140px; padding-bottom: 40px; text-align: center; position: relative; }

.hero-content { max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }

@keyframes heroLabelGlow {
  0%,100% { text-shadow: 0 0 10px rgba(168,130,255,0.5); opacity: 1; }
  50%      { text-shadow: 0 0 22px rgba(168,130,255,0.9), 0 0 44px rgba(168,130,255,0.4); opacity: 0.85; }
}

.hero-label {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 20px;
  animation: heroLabelGlow 4s ease-in-out infinite;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #d4b8ff 55%, #a882ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; color: var(--text-soft); margin: 0;
  max-width: 420px; margin-inline: auto;
  transition: color 300ms, text-shadow 300ms;
}
.hero-sub:hover { color: var(--text); text-shadow: 0 0 24px rgba(168,130,255,0.3); }

/* ── Orbit Animation ── */
.hero-orbit {
  position: absolute;
  width: 500px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1; pointer-events: none;
}

.orbit-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.orbit-ring-1 { width: 200px; height: 200px; border-color: rgba(168,130,255,0.1); }
.orbit-ring-2 { width: 340px; height: 340px; border-color: rgba(168,130,255,0.06); border-style: dashed; }
.orbit-ring-3 { width: 480px; height: 480px; border-color: rgba(168,130,255,0.03); }

.orbit-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
  top: 50%; left: 50%;
}
.orbit-dot-1 { animation: orbitAnim1 12s linear infinite; }
.orbit-dot-2 { animation: orbitAnim2 18s linear infinite; }
.orbit-dot-3 { animation: orbitAnim3 25s linear infinite; width: 4px; height: 4px; opacity: 0.6; }

@keyframes orbitAnim1 {
  from { transform: translate(-50%,-50%) rotate(0deg) translateX(100px) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(100px) rotate(-360deg); }
}
@keyframes orbitAnim2 {
  from { transform: translate(-50%,-50%) rotate(0deg) translateX(170px) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(170px) rotate(-360deg); }
}
@keyframes orbitAnim3 {
  from { transform: translate(-50%,-50%) rotate(0deg) translateX(240px) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(240px) rotate(-360deg); }
}

/* ════════════════════════════════════════
   BOARDING PASS
   ════════════════════════════════════════ */
.boarding-section { padding-top: 20px; padding-bottom: 80px; }

.boarding-pass-wrapper {
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}

.bp-flipper {
  position: relative;
  width: 100%;
  height: 300px;
}

.boarding-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

/* ── FRONT: exact olive gradient from reference ── */
.boarding-front {
  background: linear-gradient(135deg, #3d4a25 0%, #4a5a2a 40%, #3a4820 100%);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1fr 320px;
  color: #ffffff;
  position: relative;
}

/* Noise texture */
.bp-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; border-radius: inherit;
}

/* Cutout notch */
.bp-cutout {
  position: absolute;
  right: 318px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--bg);
  border-radius: 50%;
  z-index: 10;
}

/* ── Left panel ── */
.bp-lp {
  padding: 28px 32px;
  position: relative; z-index: 2;
  display: flex; flex-direction: column; height: 100%;
}

.bp-lp::after {
  content: '';
  position: absolute;
  right: 0; top: 5%; height: 90%;
  border-right: 2px dashed rgba(255,255,255,0.15);
}

.bp-hdr {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.bp-route-sec {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bp-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 4px;
}

/* ★ Exact Playfair Display 52px — matches the reference screenshot */
.bp-city {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px; font-weight: 400;
  color: rgba(255,255,255,0.92);
  line-height: 1; letter-spacing: -0.02em;
}

.bp-plane { align-self: center; margin: 0 16px; flex-shrink: 0; }

.bp-dest  { text-align: right; }

.bp-rule {
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  margin-bottom: 12px;
}

.bp-desc-sec { flex: 1; }

.bp-desc-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; font-weight: 400;
  color: rgba(255,255,255,0.78);
  line-height: 1.6; max-width: 440px;
  margin: 4px 0 0;
}

.bp-meta {
  display: flex; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  padding-top: 12px;
}

.bp-mi { display: flex; flex-direction: column; gap: 2px; }

.bp-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.bp-qr { margin-left: auto; }

/* ── Right panel ── */
.bp-rp { position: relative; z-index: 2; padding: 12px; }

.bp-frame {
  width: 100%; height: 100%;
  border-radius: 10px; overflow: hidden; background: #000;
}

.bp-scene {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 40% 55%, #06102a 0%, #030810 60%, #000005 100%);
  position: relative; overflow: hidden;
}

.bp-nebula {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 100% 70% at 20% 70%, rgba(100,20,220,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 80%  55% at 80% 25%, rgba(10,90,220,0.22)  0%, transparent 55%),
    radial-gradient(ellipse 55%  45% at 60% 80%, rgba(220,50,90,0.14)  0%, transparent 55%),
    radial-gradient(ellipse 40%  35% at 50% 45%, rgba(0,200,255,0.09)  0%, transparent 50%);
}

.bp-grid-ov {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(0,210,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,210,255,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}

#bpassCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; z-index: 3;
}

.bp-hud {
  position: absolute; bottom: 12px; left: 10px; right: 10px;
  z-index: 6;
  font-family: 'DM Sans', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  color: rgba(0,220,255,0.7);
  display: flex; justify-content: space-between;
}

.bp-hud-col { line-height: 1.7; }
.bp-hud-lbl { color: rgba(0,220,255,0.4); }

.bp-corner { position: absolute; width: 14px; height: 14px; z-index: 6; opacity: 0.5; }
.bp-tl { top:10px;    left:10px;  border-top:1.5px    solid #00d4ff; border-left:1.5px   solid #00d4ff; }
.bp-tr { top:10px;    right:10px; border-top:1.5px    solid #00d4ff; border-right:1.5px  solid #00d4ff; }
.bp-bl { bottom:10px; left:10px;  border-bottom:1.5px solid #00d4ff; border-left:1.5px   solid #00d4ff; }
.bp-br { bottom:10px; right:10px; border-bottom:1.5px solid #00d4ff; border-right:1.5px  solid #00d4ff; }

.bp-reticle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -62%);
  width: 36px; height: 36px; z-index: 5; opacity: 0.3;
}

.bp-flipper:hover .boarding-front {
  box-shadow: 0 18px 60px rgba(0,0,0,0.55), 0 0 40px rgba(80,100,40,0.2);
}

/* ── BACK ── */
.boarding-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(25,18,50,0.98), rgba(14,10,28,0.98));
  border: 1px solid rgba(168,130,255,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 60px rgba(168,130,255,0.08);
  display: flex; align-items: center; justify-content: center;
}

.boarding-back-content { text-align: center; padding: 32px; }

.boarding-barcode { margin: 0 auto 20px; width: 200px; height: 48px; display: flex; align-items: center; justify-content: center; }

.barcode-lines {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px, var(--accent) 2px,
    transparent 2px, transparent 4px,
    rgba(168,130,255,0.5) 4px, rgba(168,130,255,0.5) 5px,
    transparent 5px, transparent 8px,
    var(--accent) 8px, var(--accent) 9px,
    transparent 9px, transparent 11px,
    rgba(168,130,255,0.7) 11px, rgba(168,130,255,0.7) 14px,
    transparent 14px, transparent 16px
  );
  opacity: 0.7; border-radius: 2px;
}

.boarding-back-text {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 6px;
}

.boarding-back-sub { font-size: 0.78rem; color: var(--text-softer); margin: 0 0 24px; }

.boarding-qr {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border: 1px solid rgba(168,130,255,0.2);
  border-radius: 6px; padding: 6px;
}

.qr-grid {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(0deg,   rgba(168,130,255,0.3) 0px, rgba(168,130,255,0.3) 4px, transparent 4px, transparent 8px),
    repeating-linear-gradient(90deg,  rgba(168,130,255,0.2) 0px, rgba(168,130,255,0.2) 4px, transparent 4px, transparent 8px);
  border-radius: 3px;
}

.boarding-back-code { font-family: "Inter", sans-serif; font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-softer); margin: 0; }

@media (max-width: 640px) {
  .bp-flipper { height: auto; min-height: 520px; }
  .boarding-front { grid-template-columns: 1fr; }
  .bp-lp::after, .bp-cutout { display: none; }
  .bp-rp { height: 240px; }
  .bp-city { font-size: 38px; }
}

/* ── Section Label ── */
@keyframes labelPulse {
  0%,100% { opacity: 1; text-shadow: 0 0 8px rgba(168,130,255,0.4); }
  50%      { opacity: 0.75; text-shadow: 0 0 18px rgba(168,130,255,0.85), 0 0 36px rgba(168,130,255,0.35); }
}

.section-label {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
  animation: labelPulse 3.5s ease-in-out infinite;
}

/* ── Headings ── */
.section h2, h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 20px; letter-spacing: -0.01em; }

/* ── Split ── */
.split { max-width: 600px; }
.split-text p { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 16px; }

/* ── 3D IMU Sensor ── */
.sensor-section { padding-top: 40px; padding-bottom: 80px; }

.sensor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.sensor-text p { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 24px; }

.sensor-specs { display: flex; gap: 24px; }

.spec { display: flex; flex-direction: column; gap: 4px; cursor: default; }

.spec-key { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-softer); transition: color 300ms; }
.spec-val { font-family: "Inter", sans-serif; font-size: 1.15rem; font-weight: 500; color: var(--text); transition: color 300ms, text-shadow 300ms; }
.spec:hover .spec-key { color: var(--text-soft); }
.spec:hover .spec-val { color: var(--accent); text-shadow: 0 0 14px rgba(168,130,255,0.6); }

.sensor-visual { display: flex; align-items: center; justify-content: center; min-height: 350px; }

.sensor-container { position: relative; width: 200px; height: 200px; perspective: 600px; }

.sensor-cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: cubeFloat 20s ease-in-out infinite; }

@keyframes cubeFloat {
  0%   { transform: rotateX(-20deg) rotateY(0deg); }
  25%  { transform: rotateX(-10deg) rotateY(90deg); }
  50%  { transform: rotateX(-25deg) rotateY(180deg); }
  75%  { transform: rotateX(-15deg) rotateY(270deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}

.cube-face {
  position: absolute; width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(180,200,255,0.35);
  background: linear-gradient(135deg, rgba(200,215,255,0.15), rgba(170,190,255,0.08));
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 30px rgba(180,210,255,0.06), 0 0 40px rgba(160,195,255,0.08);
  font-family: "Inter", sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(200,215,255,0.85);
}

.cube-front  { transform: translateZ(100px); }
.cube-back   { transform: rotateY(180deg) translateZ(100px); }
.cube-right  { transform: rotateY(90deg) translateZ(100px); }
.cube-left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-top    { transform: rotateX(90deg) translateZ(100px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(100px); }

.face-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.face-side { font-size: 0.65rem; color: rgba(180,200,255,0.7); }

.chip-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(160,200,255,0.45); border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(160,200,255,0.2), transparent),
    repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(160,200,255,0.12) 4px, rgba(160,200,255,0.12) 5px),
    repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(160,200,255,0.12) 4px, rgba(160,200,255,0.12) 5px);
  box-shadow: 0 0 24px rgba(160,200,255,0.2);
}

.circuit-lines {
  width: 50px; height: 50px;
  background: linear-gradient(0deg, rgba(160,200,255,0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(160,200,255,0.2) 1px, transparent 1px);
  background-size: 10px 10px; border-radius: 4px;
}

.axis-indicator { display: flex; gap: 16px; }
.axis-indicator span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; }
.axis-x { color: #ff6b8a; }
.axis-y { color: #66ffb5; }
.axis-z { color: #6bb5ff; }

.connector-dots { display: grid; grid-template-columns: repeat(4, 6px); grid-template-rows: repeat(4, 6px); gap: 6px; }
.connector-dots::before, .connector-dots::after { content: ""; grid-column: 1/-1; grid-row: 1/-1; background: radial-gradient(circle, rgba(160,200,255,0.4) 2px, transparent 2px); background-size: 12px 12px; }

.pin-grid { width: 48px; height: 48px; background: radial-gradient(circle, rgba(160,200,255,0.35) 1.5px, transparent 1.5px); background-size: 8px 8px; }

.sensor-readout { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 8px; background: rgba(14,10,28,0.8); border: 1px solid rgba(160,200,255,0.2); backdrop-filter: blur(8px); pointer-events: none; box-shadow: 0 0 16px rgba(160,200,255,0.06); }

.readout-label { font-family: "Inter", sans-serif; font-size: 0.55rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(180,215,255,0.75); }
.readout-value { font-family: "Inter", sans-serif; font-size: 0.88rem; font-weight: 500; color: rgba(210,235,255,1); font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(160,200,255,0.4); }

.readout-1 { top: 10px; right: -20px; }
.readout-2 { bottom: 20px; right: -30px; }
.readout-3 { top: 40px; left: -30px; }

@media (max-width: 768px) {
  .sensor-layout { grid-template-columns: 1fr; gap: 40px; }
  .sensor-visual { min-height: 280px; }
  .sensor-container { width: 160px; height: 160px; }
  .cube-face { width: 160px; height: 160px; }
  .cube-front  { transform: translateZ(80px); }
  .cube-back   { transform: rotateY(180deg) translateZ(80px); }
  .cube-right  { transform: rotateY(90deg) translateZ(80px); }
  .cube-left   { transform: rotateY(-90deg) translateZ(80px); }
  .cube-top    { transform: rotateX(90deg) translateZ(80px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(80px); }
}

/* ── Cards ── */
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }

.card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: border-color 350ms, box-shadow 350ms, transform 350ms; }
.card:hover { border-color: rgba(168,130,255,0.45); box-shadow: 0 20px 64px rgba(168,130,255,0.18), 0 0 0 1px rgba(168,130,255,0.12), inset 0 0 60px rgba(168,130,255,0.04); transform: translateY(-6px); }

.card-icon { margin-bottom: 16px; transition: filter 350ms; }
.card:hover .card-icon { filter: drop-shadow(0 0 10px rgba(168,130,255,0.6)); }

.card h3 { font-size: 1.3rem; margin: 0 0 10px; font-weight: 400; transition: color 300ms, text-shadow 300ms; }
.card:hover h3 { color: #ffffff; text-shadow: 0 0 20px rgba(168,130,255,0.7), 0 0 48px rgba(168,130,255,0.3); }

.card p { font-size: 0.88rem; color: var(--text-soft); margin: 0; line-height: 1.6; transition: color 300ms; }
.card:hover p { color: var(--text); }

.card-pill { display: inline-block; font-family: "Inter", sans-serif; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; transition: text-shadow 300ms; }
.card:hover .card-pill { text-shadow: 0 0 12px rgba(168,130,255,0.8); }

/* ── Stat cards ── */
.stat-label {
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  opacity: 0.8;
}

.stat-number {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #d4b8ff 55%, #a882ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 300ms;
}
.stat-card:hover .stat-number {
  filter: drop-shadow(0 0 14px rgba(168,130,255,0.7));
}
.stat-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
}

/* ── Approach cards ── */
.approach-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 12px;
}
.approach-card p {
  font-size: 0.85rem;
  line-height: 1.75;
}

@media (max-width: 768px) { .card-row { grid-template-columns: 1fr; } }

/* ── Feature List ── */
.feature-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }

.feature { padding-left: 0; border-left: 2px solid transparent; transition: padding-left 300ms ease, border-color 300ms ease; cursor: default; }
.feature:hover { padding-left: 14px; border-color: var(--accent); }

.feature h4 { font-family: "Inter", sans-serif; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 4px; color: var(--text); transition: color 300ms, text-shadow 300ms; }
.feature:hover h4 { color: var(--accent); text-shadow: 0 0 12px rgba(168,130,255,0.6); }

.feature p { font-size: 0.9rem; color: var(--text-soft); margin: 0; transition: color 300ms; }
.feature:hover p { color: var(--text); }

/* ── Overview ── */
.overview-block { max-width: 520px; text-align: center; margin: 0 auto; }
.overview-block p { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 24px; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; border: 1px solid rgb(81,0,180); background: rgb(248,247,247); color: #1a1a1a; font-family: "Inter", sans-serif; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.04em; cursor: pointer; transition: background 200ms, box-shadow 200ms, transform 150ms, border-color 200ms; }
.btn:hover { background: rgba(168,130,255,0.15); border-color: rgba(168,130,255,0.5); box-shadow: 0 6px 32px rgba(168,130,255,0.22), 0 0 0 1px rgba(168,130,255,0.15); transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 500; }
.btn-primary:hover { background: #7c5aff; border-color: #9170ff; box-shadow: 0 6px 36px rgba(168,130,255,0.45), 0 0 0 1px rgba(168,130,255,0.3); color: #ffffff; }

/* ── Contact ── */
.section-contact { padding-bottom: 100px; }
.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-text h2 { margin-top: 0; }
.contact-text p { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 16px; }

.contact-email { font-family: "Inter", sans-serif; font-weight: 400; color: var(--accent); font-size: 0.9rem; transition: text-shadow 300ms, letter-spacing 300ms; display: inline-block; }
.contact-email:hover { text-shadow: 0 0 18px rgba(168,130,255,0.8), 0 0 40px rgba(168,130,255,0.4); letter-spacing: 0.02em; }

.contact-logo-img { width: 72px; height: 72px; margin-top: 28px; opacity: 0.55; filter: drop-shadow(0 0 10px rgba(168,130,255,0.4)); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 0.65rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-softer); }
.field input, .field textarea, .field select { background: rgba(14,10,28,0.8); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.88rem; font-family: inherit; font-weight: 300; color: var(--text); outline: none; transition: border-color 200ms, box-shadow 200ms; }
.field input:focus, .field textarea:focus { border-color: rgba(168,130,255,0.5); box-shadow: 0 0 0 2px rgba(168,130,255,0.1); }
.field textarea { resize: vertical; min-height: 80px; }

@media (max-width: 768px) { .contact-block { grid-template-columns: 1fr; gap: 32px; } .contact-form { grid-template-columns: 1fr; } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 24px 32px; max-width: calc(var(--max-width) + 48px); margin: 0 auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.footer-logo-img { width: 28px; height: 28px; opacity: 0.7; margin-right: 6px; vertical-align: middle; }
.footer-links { display: flex; gap: 20px; font-size: 0.82rem; color: var(--text-soft); }
.footer-links a { transition: color 200ms, text-shadow 200ms; }
.footer-links a:hover { color: var(--accent); text-shadow: 0 0 10px rgba(168,130,255,0.55); }
.nav-logo:hover .logo-name {
  filter: drop-shadow(0 0 18px rgba(168,130,255,1)) drop-shadow(0 0 40px rgba(168,130,255,0.6));
  animation: none;
}
.footer-copy { font-size: 0.72rem; color: var(--text-softer); margin: 0; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease-out, transform 700ms ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Title glow ── */
h1, h2, h3 { transition: text-shadow 350ms ease, filter 350ms ease, color 350ms ease; }
h1.glow, h2.glow, h3.glow { text-shadow: 0 0 16px rgba(168,130,255,0.75), 0 0 48px rgba(168,130,255,0.4), 0 0 90px rgba(140,100,255,0.2); }
.hero h1.glow { text-shadow: none; filter: drop-shadow(0 0 18px rgba(168,130,255,0.75)) drop-shadow(0 0 50px rgba(140,100,255,0.4)); }
h2:hover, h3:hover { text-shadow: 0 0 20px rgba(168,130,255,0.8), 0 0 60px rgba(168,130,255,0.45), 0 0 100px rgba(140,100,255,0.2); cursor: default; }

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(220,200,255,0.18) 10%, rgba(168,130,255,0.14) 25%, rgba(140,100,255,0.06) 45%, transparent 70%);
  pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%); transition: opacity 300ms; mix-blend-mode: screen;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
