/* Whistler Browser site — v1.0.1 */

:root {
  --bg: #0a0e1a;
  --panel: #141b2e;
  --panel-2: #10162a;
  --line: #232c47;
  --blue: #4e8df6;
  --blue-soft: rgba(78, 141, 246, 0.14);
  --gold: #f0b429;
  --text: #e8eef9;
  --muted: #94a0bd;
  --radius: 14px;
  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
}

a { color: var(--blue); }

code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.92em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.nav-status {
  color: var(--gold);
  border: 1px solid rgba(240, 180, 41, 0.45);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-dev {
  color: var(--gold);
  font-size: 0.97rem;
  max-width: 34em;
  border-left: 3px solid var(--gold);
  padding-left: 0.85rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1.35rem;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 22px rgba(78, 141, 246, 0.35);
}

.btn-primary:hover { background: #659df8; }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--blue); }

/* Hero window mock */

.hero-visual {
  position: relative;
  animation: hero-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero-window {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(78, 141, 246, 0.12),
    0 0 46px rgba(78, 141, 246, 0.14);
}

.hw-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  background: var(--panel-2);
}

.hw-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.hw-title {
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
}

.hw-tabs {
  display: flex;
  gap: 4px;
  padding: 0.35rem 0.6rem 0;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.hw-tab {
  font-size: 0.74rem;
  color: var(--muted);
  padding: 0.3rem 0.8rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
}

.hw-tab.active {
  background: var(--bg);
  border-color: var(--line);
  color: var(--text);
}

.hero-shield {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: clamp(110px, 14vw, 190px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.6));
}

/* ---------- Sections ---------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-alt {
  max-width: none;
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-alt > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 44em;
  margin-bottom: 3rem;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Spotlights ---------- */

.spot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.spot.flip .spot-media { order: 2; }
.spot.flip .spot-copy { order: 1; }

.spot-copy h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.15em;
}

.spot-tag {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0 0 0.8em;
}

.spot-copy p { color: var(--muted); }

.spot-copy ul {
  margin: 1em 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.spot-copy li { margin-bottom: 0.35em; }
.spot-copy li::marker { color: var(--blue); }

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shot:hover {
  border-color: var(--blue);
  box-shadow: 0 0 28px rgba(78, 141, 246, 0.2);
}

/* ---------- Plugins ---------- */

.plug-wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: start;
}

.plug-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.plug {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.plug h4 {
  margin: 0 0 0.25em;
  font-family: var(--font-display);
  font-size: 1rem;
}

.plug p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.plug-private {
  margin-top: 2.5rem;
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  background: rgba(240, 180, 41, 0.05);
}

.plug-private h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.plug-private p { margin: 0; color: var(--muted); max-width: 58em; }

/* ---------- Everyday grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}

.cell h4 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.cell p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Status ---------- */

.status-box {
  text-align: center;
  padding: 1rem 1.25rem;
}

.status-box img { margin: 0 auto 1.25rem; }

.status-box h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.status-box p {
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto 0.85em;
}

.status-note { color: var(--gold) !important; font-weight: 500; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); }

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-inner p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-shield { right: 0; bottom: -24px; }
  .spot,
  .plug-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .spot.flip .spot-media { order: 0; }
  .spot.flip .spot-copy { order: 0; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .plug-list { grid-template-columns: 1fr; }
  .lightbox { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual { animation: none; }
  .shot { transition: none; }
}
