/* V8 — photographic hero + GitHub-like product demo */

/* Hero: one photographic parking-garage background, no constructed geometry. */
.hero-scene{
  background:
    linear-gradient(90deg,rgba(2,4,7,.96) 0%,rgba(2,4,7,.86) 28%,rgba(2,4,7,.42) 48%,rgba(2,4,7,.18) 68%,rgba(2,4,7,.14) 100%),
    linear-gradient(180deg,rgba(2,4,7,.30) 0%,rgba(2,4,7,.05) 48%,rgba(2,4,7,.55) 100%),
    url("assets/garage-wide.jpg") center 54% / cover no-repeat;
}
.hero-scene:before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(3,12,20,.30);
  mix-blend-mode:multiply;
  pointer-events:none;
}
.hero-g30{
  width:min(55vw,1080px);
  right:3.5vw;
  bottom:4%;
  filter:brightness(.96) contrast(1.04) saturate(.84) drop-shadow(0 32px 55px rgba(0,0,0,.62));
  transform:translate3d(calc(var(--hero-scroll)*7px),calc(var(--hero-scroll)*11px),0) scale(calc(1 + var(--hero-scroll)*.01));
}
.hero-vignette{
  background:
    linear-gradient(90deg,rgba(2,4,7,.98) 0%,rgba(2,4,7,.93) 22%,rgba(2,4,7,.70) 36%,rgba(2,4,7,.25) 49%,transparent 61%),
    linear-gradient(180deg,rgba(0,0,0,.22),transparent 24%,transparent 70%,rgba(0,0,0,.50));
}
.hero.hero-cinematic .hero-copy{width:min(610px,43vw);max-width:610px}
.hero.hero-cinematic .hero-copy h1{font-size:clamp(56px,5.25vw,90px);max-width:610px}
.hero.hero-cinematic .hero-copy h1 span{font-size:.82em}

/* Product demo */
.product-demo{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 41%,rgba(74,76,187,.28),transparent 38%),
    linear-gradient(180deg,#0d0e36 0%,#11123f 38%,#070812 100%);
  color:#fff;
  padding:130px max(24px,calc((100vw - 1460px)/2 + 24px)) 150px;
}
.product-demo:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(86,92,255,.035),transparent 25%,transparent 78%,rgba(0,0,0,.22));
  pointer-events:none;
}
.demo-intro{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:80px minmax(0,880px);
  gap:38px;
  max-width:1180px;
  margin:0 auto 72px;
}
.demo-intro .section-no{color:#8187ac;padding-top:7px}
.demo-intro .eyebrow{color:#8e95bd;margin-bottom:18px}
.demo-intro h2{
  margin:0;
  font-size:clamp(52px,5.6vw,82px);
  line-height:1.01;
  letter-spacing:-.055em;
  font-weight:600;
}
.demo-intro p{
  margin:22px 0 0;
  max-width:720px;
  color:#a6abc4;
  font-size:15px;
  line-height:1.7;
}

.demo-stage{
  position:relative;
  z-index:2;
  max-width:1320px;
  margin:0 auto;
  padding:26px;
}
.demo-aura{
  position:absolute;
  inset:-7% -5% -10%;
  border-radius:50px;
  background:
    radial-gradient(ellipse at 50% 45%,rgba(126,118,255,.40),rgba(77,88,211,.18) 38%,rgba(49,72,156,.06) 63%,transparent 76%);
  filter:blur(24px);
  pointer-events:none;
}
.demo-window{
  position:relative;
  z-index:3;
  border-radius:24px;
  border-color:rgba(195,205,255,.22);
  box-shadow:
    0 0 0 1px rgba(156,167,255,.10),
    0 0 70px rgba(99,88,255,.24),
    0 48px 120px rgba(0,0,0,.43);
  background:#0b0e14;
}
.demo-window .screen-chrome{
  height:40px;
  background:#11151d;
  border-bottom:1px solid rgba(255,255,255,.055);
}
.demo-screens{
  position:relative;
  aspect-ratio:1.6/1;
  overflow:hidden;
  background:#090c11;
}
.demo-screen{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:translateY(18px) scale(.985);
  filter:blur(2px);
  transition:opacity .36s ease,transform .48s cubic-bezier(.2,.75,.2,1),filter .36s ease;
  pointer-events:none;
}
.demo-screen.active{
  opacity:1;
  transform:none;
  filter:none;
}

.demo-tabs{
  position:relative;
  z-index:5;
  width:max-content;
  max-width:calc(100% - 32px);
  margin:-20px auto 0;
  display:flex;
  gap:4px;
  padding:5px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:999px;
  background:rgba(7,8,16,.92);
  box-shadow:0 20px 45px rgba(0,0,0,.35);
  backdrop-filter:blur(14px);
}
.demo-tabs button{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:160px;
  justify-content:center;
  border:1px solid transparent;
  border-radius:999px;
  padding:12px 20px;
  background:transparent;
  color:#c4c9d8;
  font-size:12px;
  font-weight:700;
  transition:.22s ease;
}
.demo-tabs button span{
  font-family:Manrope,Arial,sans-serif;
  font-size:8px;
  color:#767e9d;
}
.demo-tabs button:hover{color:#fff;background:rgba(255,255,255,.055)}
.demo-tabs button.active{
  color:#fff;
  border-color:rgba(255,255,255,.34);
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
.demo-tabs button.active span{color:#83a7ff}

.demo-copy{
  position:relative;
  z-index:2;
  max-width:820px;
  min-height:180px;
  margin:40px auto 0;
  text-align:center;
}
.demo-copy-item{
  position:absolute;
  left:0;right:0;top:0;
  opacity:0;
  transform:translateY(12px);
  transition:opacity .30s ease,transform .36s ease;
  pointer-events:none;
}
.demo-copy-item.active{opacity:1;transform:none;pointer-events:auto}
.demo-copy-item h3{
  margin:0 0 12px;
  font-size:clamp(27px,2.5vw,38px);
  line-height:1.12;
  letter-spacing:-.04em;
}
.demo-copy-item p{
  margin:0 auto;
  max-width:720px;
  color:#9fa5bd;
  font-size:13px;
  line-height:1.72;
}
.demo-wheel-hint{
  position:absolute;
  left:0;right:0;bottom:0;
  font-family:Manrope,Arial,sans-serif;
  font-size:8px;
  letter-spacing:.09em;
  color:#646b88;
  text-transform:uppercase;
}

/* Keep the next light section visually separate from the demo. */
.positioning{padding-top:125px}

/* Laptop / tablet */
@media(max-width:1180px){
  .hero-g30{width:66vw;right:-10vw}
  .hero-vignette{
    background:
      linear-gradient(90deg,rgba(2,4,7,.98) 0%,rgba(2,4,7,.92) 31%,rgba(2,4,7,.67) 44%,rgba(2,4,7,.22) 59%,transparent 74%),
      linear-gradient(180deg,rgba(0,0,0,.22),transparent 28%,transparent 70%,rgba(0,0,0,.55));
  }
  .demo-intro{grid-template-columns:60px 1fr}
  .demo-stage{padding:18px}
}

/* Portrait tablet */
@media(max-width:900px){
  .hero-scene{
    background:
      linear-gradient(180deg,rgba(2,4,7,.96) 0%,rgba(2,4,7,.87) 44%,rgba(2,4,7,.38) 68%,rgba(2,4,7,.48) 100%),
      url("assets/garage-wide.jpg") center 50% / cover no-repeat;
  }
  .hero-g30{width:112vw;right:-38vw;bottom:0}
  .hero-vignette{
    background:
      linear-gradient(180deg,rgba(2,4,7,.92) 0%,rgba(2,4,7,.77) 45%,rgba(2,4,7,.18) 67%,rgba(2,4,7,.38) 100%),
      linear-gradient(90deg,rgba(2,4,7,.50),transparent 90%);
  }
  .product-demo{padding:100px 18px 120px}
  .demo-intro{grid-template-columns:1fr;gap:12px;margin-bottom:48px}
  .demo-intro h2{font-size:50px}
  .demo-stage{padding:8px}
  .demo-window{border-radius:18px}
  .demo-tabs{margin-top:-14px}
  .demo-tabs button{min-width:130px;padding:10px 15px}
}

/* Phone */
@media(max-width:600px){
  .hero-scene{
    background:
      linear-gradient(180deg,rgba(2,4,7,.985) 0%,rgba(2,4,7,.91) 50%,rgba(2,4,7,.48) 70%,rgba(2,4,7,.50) 100%),
      url("assets/garage-wide.jpg") 53% center / cover no-repeat;
  }
  .hero-g30{width:145vw;right:-69vw;bottom:-1%}
  .hero-vignette{background:linear-gradient(180deg,rgba(2,4,7,.88),transparent 60%,rgba(2,4,7,.28))}
  .product-demo{padding:88px 12px 100px}
  .demo-intro{padding:0 6px}
  .demo-intro h2{font-size:38px}
  .demo-intro p{font-size:13px}
  .demo-stage{padding:0}
  .demo-window{border-radius:14px}
  .demo-window .screen-chrome{height:28px}
  .demo-screens{aspect-ratio:1.52/1}
  .demo-tabs{
    width:calc(100% - 20px);
    max-width:none;
    margin:-10px auto 0;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2px;
  }
  .demo-tabs button{
    min-width:0;
    padding:9px 5px;
    font-size:9px;
    gap:5px;
  }
  .demo-tabs button span{display:none}
  .demo-copy{min-height:185px;margin-top:34px;padding:0 12px}
  .demo-copy-item h3{font-size:25px}
  .demo-copy-item p{font-size:12px}
  .demo-wheel-hint{display:none}
}
