/* Olympus Coder — Base layout, navbar, hero, install card & showcase gallery */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f3f3f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #111113;
  --muted: #52525b;
  --accent: #d95d2b;
  --accent-hover: #c04e20;
  --accent-soft: rgba(217, 93, 43, 0.12);
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, 0.12);
  --code-bg: #111114;
  --code-text: #f4f4f5;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --surface: #121215;
  --surface-2: #1a1a1f;
  --border: #25252c;
  --border-strong: #363640;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ef6c35;
  --accent-hover: #ff824d;
  --accent-soft: rgba(239, 108, 53, 0.16);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --code-bg: #0c0c0f;
  --code-text: #f4f4f5;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 15px;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.ver {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 550;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-star:hover { border-color: var(--border-strong); background: var(--surface-2); }
.star-icon { color: #f59e0b; font-size: 13px; line-height: 1; }
.star-count {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 44px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -140px auto auto 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 360px;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 820px;
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 760;
}
.hero p.lead {
  margin: 0 auto 28px;
  max-width: 680px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); background: var(--surface-2); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ph-badge { display: inline-flex; align-items: center; height: 46px; }
.ph-badge img { height: 46px; width: auto; border-radius: 9px; }

/* Install card */
.install-card {
  max-width: 720px;
  margin: 0 auto 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.install-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.install-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.install-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--code-bg);
  color: var(--code-text);
}
.install-body pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  flex: 1;
  min-width: 0;
}
.copy-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  font-size: 12.5px;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.install-note {
  margin: 0;
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Showcase gallery */
.showcase { margin: 0 auto 24px; }
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.gallery-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.gallery-tab:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.gallery-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.shot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.shot-frame img {
  width: 100%;
  border-radius: 11px;
  max-height: 680px;
  object-fit: contain;
  background: #0d0d10;
  transition: opacity 0.2s ease;
}
.shot-caption {
  margin: 10px 8px 4px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 28px; }
  .install-body { flex-direction: column; align-items: stretch; }
  .copy-btn { align-self: flex-end; }
}
