/* LED IQ — LED screen RENTAL landing (rental only — no sales/manufacturing pitch)
   Dark LED-glow theme over the Wix 2898 "AI Company" skeleton:
   Montserrat, hairline rules, big numbers, generous whitespace. */

:root {
  --bg: #0a0a0b;
  --bg2: #121214;
  --tx: #f5f5f4;
  --mut: #9d9d9a;
  --ac: #ff7a1a;   /* template's E15F09 family, tuned for dark */
  --ac2: #22d3ee;
  --line: rgba(255, 255, 255, .14);
  --line-soft: rgba(255, 255, 255, .07);
  --wrap: 1120px;
  --nav-h: 60px;
  --radius: 8px 0 0 8px; /* template's asymmetric radius */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ac); color: #0a0a0b; }

/* ---------- layers ---------- */
/* 3D layer sits ABOVE content (pointer-transparent): objects park only in
   text-free gutters, so nothing legible is ever covered. Nav (z20) stays on top. */
#webgl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.fx-layer {
  position: fixed; inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- typography ---------- */
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 64px); }   /* template H1 = 64px */
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(21px, 2.2vw, 27px); }
h1 em { font-style: normal; color: var(--ac); }

.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 18px;
}
.sub, .body { color: var(--mut); font-size: clamp(15px, 1.3vw, 17px); max-width: 52ch; }

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

section { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: .12em;
  color: var(--tx); text-decoration: none;
}
.logo-tile {
  display: grid;
  grid-template-columns: repeat(4, 4px);
  grid-auto-rows: 4px;
  gap: 2px;
}
.logo-tile i {
  width: 4px; height: 4px; border-radius: 1px;
  background: var(--ac);
  transition: background .3s;
}
.logo-tile i:nth-child(even) { background: var(--ac2); }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  position: relative;
  color: var(--mut); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 6px 0;
  transition: color .25s;
}
/* LED-dot underline: "loads" left→right on hover, stays lit on active */
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 4px;
  background-image: radial-gradient(circle 1.6px, var(--ac) 92%, transparent);
  background-size: 7px 4px;
  background-repeat: repeat-x;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .35s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--tx); }
.nav-links a:hover::after, .nav-links a.active::after { clip-path: inset(0 0 0 0); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--mut); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.nav-phone:hover { color: var(--tx); }

.burger { display: none; }

/* ---------- 3D buttons (the client's specific ask) ---------- */
.btn {
  display: inline-block;
  font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  border-radius: var(--radius);
  padding: 13px 26px;
  border: .8px solid var(--tx); /* template hairline */
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn3d {
  transform-style: preserve-3d;
  transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) scale(var(--sc, 1));
  transition: transform .18s ease, background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn3d.pressed { --tz: -6px; --sc: .96; }

.btn-primary { background: var(--ac); border-color: var(--ac); color: #0a0a0b; }
.btn-primary:hover { background: #ff8f3d; }
.btn-ghost { background: transparent; color: var(--tx); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }

/* perimeter light sweep on hover */
.btn::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--sweep, 0deg), transparent 0 70%, rgba(255,255,255,.9) 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover::before { opacity: 1; animation: sweep 1.6s linear infinite; }
@keyframes sweep { to { --sweep: 360deg; } }
@property --sweep { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* LED-dot texture fading in behind the label */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle 1px, rgba(255,255,255,.5) 92%, transparent);
  background-size: 6px 6px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.btn:hover::after { opacity: .28; }
.btn span { position: relative; z-index: 1; }

/* scan-line on the primary CTA: content playing on a panel */
.btn-primary span::after {
  content: '';
  position: absolute; top: -160%; left: -30%;
  width: 40%; height: 400%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: rotate(12deg);
  animation: scanline 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanline {
  0%, 55% { left: -45%; }
  85%, 100% { left: 130%; }
}

/* pixel-burst particles (spawned by main.js into .fx-layer) */
.fx-px {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--ac);
  pointer-events: none;
}

/* focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ac2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(60px, 9vw, 120px)); min-height: 92vh; display: flex; align-items: center; border-top: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-wall { min-height: 440px; }  /* 3D wall parks here; kept free of text */

/* ---------- vision ---------- */
.vision { position: relative; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.stat-rail { list-style: none; display: flex; gap: clamp(20px, 3vw, 48px); margin-top: 36px; flex-wrap: wrap; }
.stat-rail b { display: block; font-size: 22px; font-weight: 800; color: var(--ac); }
.stat-rail span { font-size: 13px; color: var(--mut); }
.vision-slot { position: absolute; left: 0; bottom: 0; width: 120px; height: 70%; pointer-events: none; }

/* ---------- formats ---------- */
.formats h2 { margin-bottom: clamp(40px, 5vw, 70px); }
.format-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.format-card.alt { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); }
.format-card.alt .format-copy { order: 2; }
.format-card.alt .obj-slot { order: 1; }
.format-copy h3 { margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.format-copy p { color: var(--mut); max-width: 48ch; }
.specs { list-style: none; margin: 20px 0 26px; }
.specs li {
  font-size: 14px; color: var(--tx);
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.specs li::before {
  content: '';
  position: absolute; left: 2px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  background: var(--ac);
}
.link-more {
  display: inline-block;
  color: var(--tx); text-decoration: none;
  font-size: 14px; font-weight: 700;
  border: .8px solid var(--tx);
  border-radius: var(--radius);
  padding: 11px 22px;
  background: transparent;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) scale(var(--sc, 1));
  transition: transform .18s ease, background .3s, color .3s;
}
.link-more:hover { background: var(--tx); color: var(--bg); }
.link-more.pressed { --tz: -6px; --sc: .96; }
.obj-slot { min-height: 260px; }       /* 3D object parks here */
.obj-slot.tall { min-height: 380px; }

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.why-rows { list-style: none; margin-top: 40px; }
.why-rows li {
  display: grid; grid-template-columns: 240px 1fr; gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.why-rows li:last-child { border-bottom: 1px solid var(--line); }
.why-rows b { font-weight: 700; font-size: 16px; }
.why-rows span { color: var(--mut); font-size: 14px; }

/* ---------- stats ---------- */
.stats { background: var(--bg2); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-right: clamp(0px, 18vw, 280px); /* right gutter reserved for the parked LED wall */
}
.stat b {
  display: block;
  font-size: clamp(36px, 4.4vw, 62px); font-weight: 800;
  letter-spacing: -.02em;
  color: var(--tx);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat b i { font-style: normal; font-size: .48em; margin-left: .12em; color: var(--mut); }
.stat span { color: var(--mut); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- cases ---------- */
.cases h2 { margin-bottom: 44px; }
.logo-row {
  display: flex; gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.logo-row canvas { height: 40px; width: auto; opacity: .85; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  border: 1px solid var(--line);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .3s, transform .3s;
}
.case-card:hover { border-color: var(--ac); transform: translateY(-4px); }
.case-card b { font-size: 16.5px; line-height: 1.35; }
.case-card p { color: var(--mut); font-size: 14px; flex: 1; }
.case-tag { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }

/* ---------- how ---------- */
.how h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
  counter-reset: step;
}
.step { position: relative; padding-top: 66px; }
.step-dot {
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px;   /* LED cube docks onto this marker */
  border: 1px solid var(--line);
  border-radius: 4px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 54px; left: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--ac);
}
.step b { display: block; margin: 14px 0 8px; font-size: 17px; }
.step p { color: var(--mut); font-size: 14px; }
.step.active .step-dot { border-color: var(--ac); box-shadow: 0 0 18px rgba(255, 122, 26, .35); }

/* ---------- contact ---------- */
.contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-list { list-style: none; margin-top: 30px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--mut); }
.contact-list a { color: var(--tx); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--ac); }

.calc-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.field-row { display: flex; gap: 18px; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.field input {
  background: transparent;
  border: none; border-bottom: 1px solid var(--line);
  color: var(--tx);
  font-family: inherit; font-size: 16px;
  padding: 10px 2px;
  transition: border-color .3s;
}
.field input:focus { outline: none; border-bottom-color: var(--ac); }
.field input.err { border-bottom-color: #e11d48; }
.field input::-webkit-calendar-picker-indicator { filter: invert(.7); }
.btn-submit { margin-top: 8px; align-self: flex-start; }
.btn-submit[disabled] { opacity: .55; cursor: wait; }
.form-note { font-size: 14px; color: var(--ac2); min-height: 22px; }
.form-note.err { color: #f87171; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 26px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mut); font-size: 13px; }
.footer-row a { color: var(--mut); text-decoration: none; }
.footer-row a:hover { color: var(--tx); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-wall { min-height: 320px; order: -1; }
  .vision-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .obj-slot.tall { min-height: 300px; }
  .stats-grid { padding-right: 0; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .case-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { gap: 10px; }
  .nav-logo { font-size: 14px; letter-spacing: .08em; white-space: nowrap; gap: 7px; }
  .nav-right { gap: 10px; margin-left: auto; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 10, 11, .97);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 16px; }
  .nav-phone { display: none; }
  .nav-right .btn { padding: 9px 12px; font-size: 12px; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    align-items: center;
  }
  .burger i { display: block; width: 20px; height: 2px; background: var(--tx); transition: transform .3s, opacity .3s; }
  .nav.open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .burger i:nth-child(2) { opacity: 0; }
  .nav.open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .format-card, .format-card.alt { grid-template-columns: 1fr; }
  .format-card.alt .format-copy { order: 2; }
  .format-card.alt .obj-slot { order: 1; }
  .obj-slot { min-height: 210px; }
  .why-rows li { grid-template-columns: 1fr; gap: 4px; }
  .field-row { flex-direction: column; gap: 18px; }
  .vision-slot { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn::before, .btn-primary span::after { animation: none !important; }
  .btn3d { transition: background .3s, color .3s; }
  .case-card:hover { transform: none; }
}
