/* Vitroo — company site. Design language mirrors the app (docs/design.md):
   near-black canvas, one electric-lime accent, editorial type, subliminal
   aurora motion, restraint over decoration. */

:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #1b1b1f;
  --sep: rgba(255, 255, 255, 0.08);
  --label: #fafafa;
  --label-2: #9c9ca1;
  --label-3: #5c5c61;
  --tint: #d4ff3f;
  --tint-subtle: rgba(212, 255, 63, 0.1);
  --tint-glow: rgba(212, 255, 63, 0.45);
  --on-tint: #0a0a0b;
  --shell: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter',
    'Segoe UI', system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--label);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
.num {
  font-variant-numeric: tabular-nums;
}

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

/* — Engraved micro-type (the brand's chrome voice) — */
.engraved {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tint);
}

/* — Scroll progress hairline — */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--tint);
  z-index: 100;
  opacity: 0.9;
}

/* — Ambient aurora (two slow-orbiting lime blobs) — */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}
.blob--a {
  width: 55vmax;
  height: 55vmax;
  left: -22vmax;
  top: -26vmax;
  background: radial-gradient(circle, var(--tint-glow), transparent 60%);
  animation: orbit-a 48s linear infinite;
}
.blob--b {
  width: 42vmax;
  height: 42vmax;
  right: -16vmax;
  bottom: -14vmax;
  background: radial-gradient(circle, rgba(212, 255, 63, 0.22), transparent 62%);
  opacity: 0.22;
  animation: orbit-b 32s linear infinite;
}
@keyframes orbit-a {
  to {
    transform: translate3d(8vmax, 6vmax, 0) rotate(360deg);
  }
}
@keyframes orbit-b {
  to {
    transform: translate3d(-7vmax, -5vmax, 0) rotate(-360deg);
  }
}

/* — Nav — */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  background: rgba(10, 10, 11, 0.55);
  border-bottom: 1px solid var(--sep);
}
.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
}
.wordmark .text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.nav .links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--label-2);
}
.nav .links a:hover {
  color: var(--label);
}
.lang {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--label-3);
}
.lang .on {
  color: var(--label);
}

/* — Hero — */
.hero {
  position: relative;
  padding: clamp(64px, 12vh, 130px) 0 clamp(56px, 9vh, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin-bottom: 22px;
}
.display {
  font-size: clamp(48px, 8.4vw, 96px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.display .l {
  display: block;
}
.display .accent {
  color: var(--tint);
}
.lead {
  margin-top: 26px;
  max-width: 30ch;
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--label-2);
  line-height: 1.55;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Pill CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.25s var(--ease);
  box-shadow: 0 0 0 rgba(212, 255, 63, 0);
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(212, 255, 63, 0.25);
}
.cta svg {
  width: 18px;
  height: 18px;
}
.cta-ghost {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--sep);
  color: var(--label);
  font-weight: 600;
  font-size: 14px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.cta-ghost:hover {
  border-color: var(--tint);
  color: var(--tint);
}

/* — Hero device visual — */
.visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.visual-glow {
  position: absolute;
  inset: -8% -4%;
  background: radial-gradient(closest-side, var(--tint-glow), transparent 70%);
  filter: blur(34px);
  opacity: 0.55;
  z-index: 0;
}
.device {
  position: relative;
  z-index: 1;
  width: min(330px, 78%);
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  background: linear-gradient(180deg, #161619, #0d0d0f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 16px;
  overflow: hidden;
  will-change: transform;
}
.device svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* — Section frame — */
section {
  position: relative;
}
.band {
  padding: clamp(64px, 11vh, 120px) 0;
  border-top: 1px solid var(--sep);
}
.head .heading {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 16px;
}
.head .sub {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--label-2);
  font-size: 17px;
}

/* — Feature grid — */
.features {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  border: 1px solid var(--sep);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 30px;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 255, 63, 0.35);
}
.card-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--tint);
}
.card-glyph {
  width: 40px;
  height: 40px;
  margin: 22px 0 18px;
  color: var(--tint);
}
.card-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-body {
  margin-top: 10px;
  color: var(--label-2);
  font-size: 15.5px;
  line-height: 1.55;
}

/* — Showcase band (radar visual + copy) — */
.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.radar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.radar-wrap .visual-glow {
  opacity: 0.4;
}
.radar {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  height: auto;
}

/* — Availability — */
.platforms {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  max-width: 560px;
}
.platform {
  border: 1px solid var(--sep);
  border-radius: 14px;
  padding: 18px;
}
.platform .pl {
  font-weight: 700;
  font-size: 15px;
}
.platform .st {
  margin-top: 6px;
  font-size: 12px;
  color: var(--label-2);
  letter-spacing: 0.04em;
}
.platform .st.live {
  color: var(--tint);
}

/* — Footer — */
.footer {
  border-top: 1px solid var(--sep);
  padding: 40px 0 56px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .tagline {
  color: var(--label-2);
  font-size: 13px;
  margin-top: 10px;
}
.footer .rights {
  color: var(--label-3);
  font-size: 12px;
}

/* — Reveal on scroll — */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Hero display cascade */
.display .l {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}
.lead,
.hero-actions {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}
.visual {
  opacity: 0;
  animation: fade 1s var(--ease) 0.3s forwards;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .visual {
    order: -1;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .nav .links {
    display: none;
  }
  .platforms {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .display .l,
  .lead,
  .hero-actions,
  .visual {
    opacity: 1;
    transform: none;
  }
}
