/* =====================================================================
   SUMMIT STUDIO — Home page composition (Midnight Summit)
   Builds on glass.css. Layout + hero night-scene extras.
   ===================================================================== */

/* ---------------- HERO ---------------- */
.hero { overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative; z-index: 2;
}
.hero-assure {
  display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; margin-top: 2rem;
}
.hero-assure li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 520; color: var(--ink-soft);
}
.hero-assure svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* parallax mountain ridge along the hero's horizon */
.hero-ridge {
  position: absolute; left: 50%; bottom: -2px; z-index: 0;
  width: max(120%, 1400px); transform: translateX(-50%);
  pointer-events: none;
}
.hero-ridge svg { width: 100%; height: auto; display: block; }
.hero-ridge .ridge-back  { fill: #0b1834; }
.hero-ridge .ridge-mid   { fill: #081124; }
.hero-ridge .ridge-front { fill: #04091a; }
.hero-ridge .ridge-glow  { fill: none; stroke: rgba(233,182,77,.34); stroke-width: 1.6; }

/* Glass browser preview */
.hero-visual { position: relative; perspective: 1100px; }
.preview-stack { position: relative; max-width: 460px; margin-inline: auto; }
.preview-window { padding: 0.85rem; border-radius: var(--r-xl); }
.pw-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.3rem 0.75rem; }
.pw-bar > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.pw-bar > span:nth-child(1) { background: #ff7a6e; }
.pw-bar > span:nth-child(2) { background: #ffc24b; }
.pw-bar > span:nth-child(3) { background: #2fd27a; }
.pw-url {
  margin-left: 0.5rem; flex: 1; text-align: center;
  font-size: 0.72rem; color: var(--ink-mute);
  background: rgba(3,7,18,.55); border: 1px solid var(--line-soft);
  border-radius: var(--r-pill); padding: 0.28rem 0.7rem;
}
.pw-body {
  border-radius: var(--r-lg); padding: 1rem; display: grid; gap: 0.7rem;
  background: linear-gradient(180deg, rgba(154,182,234,.1), rgba(154,182,234,.04));
  border: 1px solid var(--line-soft);
}
/* live example preview — a real, scaled iframe of an example site */
.pw-screen {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--r-lg); overflow: hidden;
  background: #0a0a0c; border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.pw-frame {
  position: absolute; top: 0; left: 0; width: 1280px; height: 800px;
  border: 0; transform-origin: top left; transform: scale(0.34);
  pointer-events: none;
}
.pw-open {
  position: absolute; right: 1rem; bottom: 0.9rem; z-index: 3;
  font-size: 0.72rem; font-weight: 640; color: #221803;
  background: linear-gradient(120deg, #f6da92, var(--accent));
  border: 1px solid rgba(255,255,255,.3);
  padding: 0.34rem 0.66rem; border-radius: var(--r-pill);
  box-shadow: 0 8px 20px -8px var(--gold-glow);
  transition: transform var(--t-fast) var(--ease-elastic), box-shadow var(--t-fast);
}
.pw-open:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(233,182,77,.6); }

/* soft gold halo behind the preview window */
.preview-stack::before {
  content: ""; position: absolute; inset: -14% -18%;
  background: radial-gradient(52% 48% at 50% 42%, rgba(233,182,77,.16), transparent 68%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

/* floating chips */
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.85rem; border-radius: var(--r-lg);
  box-shadow: var(--glass-sheen), var(--shadow-md);
}
.float-chip strong { display: block; font-size: 0.88rem; line-height: 1.1; color: var(--ink); }
.float-chip small { display: block; font-size: 0.72rem; color: var(--ink-mute); }
.chip-ico {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-weight: 760; font-size: 0.82rem;
  background: rgba(233,182,77,.14); border: 1px solid rgba(233,182,77,.3); color: var(--accent-ink);
}
.chip-ico.grad { color: #221803; background: linear-gradient(130deg, var(--accent-2), var(--accent)); }
.chip-a { top: 6%; left: -8%; animation: floaty 6.5s var(--ease-soft) infinite; }
.chip-b { bottom: 8%; right: -7%; animation: floaty 7.5s var(--ease-soft) infinite 0.6s; }

/* ---------------- ASSURANCE STRIP ---------------- */
.assure-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.3rem, 3vw, 2.4rem);
  border-radius: var(--r-xl);
}
.assure-item { display: flex; flex-direction: column; gap: 0.25rem; text-align: center; flex: 1; }
.assure-item .num {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 760; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(120deg, var(--accent-2), var(--accent) 60%, var(--accent-warm));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.assure-item .cap { font-size: var(--fs-xs); color: var(--ink-mute); }
.assure-divider { width: 1px; align-self: stretch; background: var(--line); margin-block: 0.3rem; }

/* ---------------- WHY ---------------- */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}

/* stat numbers glow gold */
.stat .num.ink-grad { text-shadow: none; }

/* ---------------- OWN EVERYTHING ---------------- */
.own-panel { padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: var(--r-2xl); }
.own-grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.own-list { gap: 1.05rem; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; margin-top: 1rem; }
  .why-grid { grid-template-columns: 1fr; }
  .own-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .assure-strip { flex-wrap: wrap; gap: 1.2rem 0; }
  .assure-item { flex: 0 0 50%; }
  .assure-divider { display: none; }
}
@media (max-width: 520px) {
  .float-chip { display: none; }
  .preview-stack { max-width: 100%; }
}
