/* =========================================================
   OPTANAR LANDING PAGE
   ========================================================= */

:root {
  --bg: #05070c;
  --bg-2: #090d15;
  --surface: rgba(13, 18, 29, 0.78);
  --surface-solid: #0d121d;
  --text: #f4f7fb;
  --muted: #9aa7bb;
  --accent: #64e9ff;
  --accent-2: #9d7cff;
  --line: rgba(255,255,255,0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(100,233,255,.08), transparent 25%),
    radial-gradient(circle at 20% 40%, rgba(157,124,255,.07), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

#xr-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .65;
}

a { text-decoration: none; }

.section-space {
  padding: 120px 0;
  position: relative;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
}

.opta-nav {
  background: rgba(5,7,12,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.navbar-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  margin-right: 7px;
}

.nav-link { color: #cbd4e3 !important; }
.nav-link:hover { color: var(--accent) !important; }

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: .94;
  margin: 18px 0 25px;
  max-width: 800px;
}

h1 span, h2 span { color: var(--accent); }

h2 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1;
  margin: 12px 0 22px;
}

h3 { letter-spacing: -.025em; }

.eyebrow {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .19em;
}

.hero-lead, .section-heading p, .architecture-section p, .privacy-panel p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.hero-lead { max-width: 650px; }

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

.btn-primary {
  background: var(--accent);
  color: #041016;
  border-color: var(--accent);
  font-weight: 700;
}

.btn-primary:hover {
  background: #a9f4ff;
  border-color: #a9f4ff;
  color: #041016;
}

.hero-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  color: #c8d2e1;
  font-size: .9rem;
}

.hero-points span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  margin-right: 8px;
}

.three-stage {
  min-height: 560px;
  border: 1px solid rgba(100,233,255,.18);
  background:
    linear-gradient(180deg, rgba(14,21,35,.75), rgba(5,8,14,.88));
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}

.three-stage::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  pointer-events: none;
}

.stage-label {
  position: absolute;
  top: 27px;
  left: 30px;
  z-index: 3;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .16em;
}

#three-scene {
  position: absolute;
  inset: 0;
}

#three-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.stage-caption {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 25px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: #8e9bb0;
  font-size: .7rem;
  letter-spacing: .13em;
}

.stage-caption strong { color: var(--accent); }

.section-heading {
  max-width: 760px;
  margin-bottom: 55px;
}

.feature-card {
  height: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  transition: transform .3s ease, border-color .3s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(100,233,255,.35);
}

.feature-number {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: .8rem;
  letter-spacing: .12em;
  margin-bottom: 45px;
}

.feature-card p, .application-card p, .video-info {
  color: var(--muted);
  line-height: 1.7;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 13px;
}

.architecture-node {
  min-height: 170px;
  border: 1px solid var(--line);
  background: rgba(13,18,29,.8);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.architecture-node.active {
  border-color: rgba(100,233,255,.6);
  box-shadow: 0 0 40px rgba(100,233,255,.10);
}

.node-kicker {
  color: var(--accent);
  font-size: .7rem;
  margin-bottom: 12px;
}

.architecture-node strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.architecture-node small {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.4rem;
}

.result-box {
  margin-top: 18px;
  border: 1px solid rgba(157,124,255,.25);
  border-radius: 18px;
  padding: 20px;
  background: rgba(157,124,255,.06);
  display: flex;
  gap: 15px;
}

.result-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  flex: 0 0 auto;
}

.result-box p {
  margin: 5px 0 0;
  font-size: .9rem;
}

.application-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.application-card img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  opacity: .72;
}

.application-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 45px 35px 32px;
  background: linear-gradient(transparent, rgba(3,5,9,.97));
}

.badge {
  border: 1px solid rgba(100,233,255,.4);
  color: var(--accent);
  background: transparent;
  padding: 7px 9px;
  font-size: .65rem;
  letter-spacing: .12em;
}

.application-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(100,233,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,233,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(58deg) scale(1.4);
  transform-origin: center bottom;
}

.application-card-secondary::after {
  content: "AI  /  SENSOR  /  XR";
  position: absolute;
  top: 28px;
  left: 30px;
  color: var(--accent);
  letter-spacing: .17em;
  font-size: .68rem;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10,14,23,.85);
}

.video-card iframe {
  border: 0;
}

.video-info {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.video-info span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
}

.video-info h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.image-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: transform .35s ease, filter .35s ease;
}

.image-gallery img:hover {
  transform: scale(1.015);
  filter: brightness(1.1);
}

.privacy-panel {
  border: 1px solid rgba(100,233,255,.18);
  border-radius: 30px;
  padding: 70px;
  background:
    radial-gradient(circle at 80% 30%, rgba(100,233,255,.09), transparent 30%),
    rgba(10,15,24,.82);
}

.small-note {
  font-size: .82rem !important;
  color: #748196 !important;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.privacy-grid div {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

.privacy-grid strong {
  display: block;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.privacy-grid span {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

.cta-panel {
  text-align: center;
  padding: 100px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-panel p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

.site-footer {
  padding: 30px 0;
  color: #718096;
  font-size: .78rem;
  border-top: 1px solid var(--line);
}

/* Mobile */
@media (max-width: 991px) {
  .section-space { padding: 85px 0; }
  .hero-section { padding-top: 130px; }
  .three-stage { min-height: 480px; }
  .architecture-flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    text-align: center;
    transform: rotate(90deg);
  }
  .privacy-panel { padding: 40px 25px; }
}

@media (max-width: 575px) {
  h1 { font-size: 3.2rem; }
  .hero-points { grid-template-columns: 1fr; }
  .stage-caption { gap: 7px; font-size: .55rem; }
  .privacy-grid { grid-template-columns: 1fr; }
}
