/* OpenRouter Explorer — dark neon landing */
:root {
  --bg: #07070a;
  --bg-2: #0b0b11;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 65, 54, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --red: #ff4136;
  --red-2: #ff6b5e;
  --red-deep: #b31d16;
  --text: #f4f4f7;
  --muted: #9a9aa8;
  --muted-2: #6f6f7c;
  --ok: #57d38c;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(255, 65, 54, 0.28), 0 0 42px rgba(255, 65, 54, 0.22);
  --font-head: "Unbounded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

::selection { background: rgba(255, 65, 54, 0.45); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  padding: 10px 16px; background: var(--red); color: #fff; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* background layers */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 65, 54, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 65, 54, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: 0.55;
}
.bg-glow--1 { width: 760px; height: 760px; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 50, 40, 0.5), transparent 65%); }
.bg-glow--2 { width: 560px; height: 560px; right: -220px; top: 46%; background: radial-gradient(circle, rgba(255, 65, 54, 0.22), transparent 65%); opacity: 0.4; }
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.logo__mark { width: 30px; height: 30px; color: var(--red); filter: drop-shadow(0 0 8px rgba(255, 65, 54, 0.7)); flex: none; }
.logo__text { font-family: var(--font-head); font-size: 0.86rem; letter-spacing: 0.01em; white-space: nowrap; }
.logo__text b { color: var(--red-2); font-weight: 700; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 12px; border: 1px solid transparent; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; line-height: 1; cursor: pointer;
  padding: 14px 22px; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s;
  white-space: nowrap;
}
.btn--sm { padding: 10px 16px; font-size: 0.83rem; border-radius: 10px; }
.btn--lg { padding: 17px 28px; font-size: 1rem; border-radius: 14px; }
.btn--primary {
  background: linear-gradient(180deg, #ff5a4d, #e52a20);
  color: #fff; border-color: rgba(255, 120, 100, 0.5);
  box-shadow: 0 10px 30px rgba(255, 50, 40, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(255, 50, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e9e9ee;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.26); transform: translateY(-1px); }
.btn svg { flex: none; }

/* hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-2); margin: 0 0 22px;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 65, 54, 0.15), 0 0 12px var(--red); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.hero-title {
  font-family: var(--font-head); font-weight: 900; line-height: 0.98;
  font-size: clamp(2.5rem, 6vw, 4.6rem); margin: 0 0 24px;
  text-transform: uppercase; letter-spacing: -0.01em;
  display: flex; flex-direction: column; gap: 6px;
}
.hero-title .line { display: block; }
.line--white { color: #f2f2f7; }
.line--red { color: var(--red); text-shadow: 0 0 38px rgba(255, 65, 54, 0.55), 0 0 90px rgba(255, 65, 54, 0.28); }
.line--sm { font-size: 0.42em; letter-spacing: 0.02em; color: #cfcfd8; font-weight: 700; }
.hero-desc { max-width: 560px; color: #b9b9c4; font-size: 1.03rem; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-command {
  display: flex; align-items: center; gap: 12px; max-width: 620px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px; padding: 12px 12px 12px 16px; font-size: 0.82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-command__prompt { color: var(--red); font-family: var(--font-mono); font-weight: 700; }
.hero-command code { color: #dcdce4; overflow-x: auto; white-space: nowrap; flex: 1; min-width: 0; scrollbar-width: none; }
.hero-command code::-webkit-scrollbar { display: none; }
.copy-btn {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px; color: var(--muted); cursor: pointer; transition: 0.2s;
}
.copy-btn:hover { color: #fff; border-color: rgba(255, 65, 54, 0.5); background: rgba(255, 65, 54, 0.12); }
.copy-btn.is-copied { color: var(--ok); border-color: rgba(87, 211, 140, 0.5); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; padding: 0; margin: 30px 0 0; }
.hero-proof li { display: flex; flex-direction: column; gap: 2px; }
.hero-proof b { font-family: var(--font-head); font-size: 1.28rem; color: #fff; }
.hero-proof span { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }

/* hero visual */
.hero-visual { position: relative; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.visual-frame {
  position: relative; z-index: 2; width: 100%; max-width: 470px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 65, 54, 0.45);
  background: #0a0a0f;
  box-shadow: var(--glow), var(--shadow);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.visual-frame__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: rgba(255, 65, 54, 0.06); border-bottom: 1px solid rgba(255, 65, 54, 0.16);
}
.visual-frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.visual-frame__bar i:first-child { background: #ff5f57; }
.visual-frame__bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.03em; }
.visual-frame img { width: 100%; height: auto; }
.scanline {
  position: absolute; left: 0; right: 0; height: 120px; top: -120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 65, 54, 0.09), transparent);
  animation: scan 6.5s linear infinite;
}
@keyframes scan { 0% { top: -140px; } 100% { top: 110%; } }
.glow-ring {
  position: absolute; z-index: 1; width: 76%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 65, 54, 0.35);
  box-shadow: 0 0 60px rgba(255, 65, 54, 0.18), inset 0 0 80px rgba(255, 65, 54, 0.08);
  bottom: -26%; left: 12%;
}
.visual-caption { margin: 12px auto 0; text-align: center; font-size: 0.72rem; color: var(--muted-2); max-width: 470px; }

.visual-nodes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  width: 100%; max-width: 470px; margin: 18px auto 0;
}
.node {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(11, 11, 16, 0.88); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 65, 54, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 65, 54, 0.1);
  font-size: 0.76rem; font-weight: 600; line-height: 1.2; color: #e9e9ef;
}
.node small { display: block; font-weight: 400; font-size: 0.66rem; color: var(--muted); margin-top: 3px; }
.node__icon {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 8px; background: rgba(255, 65, 54, 0.12); color: var(--red-2);
  font-size: 0.85rem; border: 1px solid rgba(255, 65, 54, 0.28);
}

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section--stats { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.06; margin: 0 0 16px; letter-spacing: -0.01em; }
.lead { color: #b0b0bc; font-size: 1.02rem; margin: 0; max-width: 640px; }
.muted { color: var(--muted-2); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* stats */
.stats-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}
.stat { padding: 26px 22px; border-right: 1px solid rgba(255, 255, 255, 0.07); }
.stat:last-child { border-right: 0; }
.stat__value { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.stat--accent .stat__value { color: var(--red-2); text-shadow: 0 0 24px rgba(255, 65, 54, 0.5); }

/* cards */
.cards .card, .card {
  padding: 24px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px 140px at 15% 0%, rgba(255, 65, 54, 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 65, 54, 0.4); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 65, 54, 0.1); }
.card:hover::after { opacity: 1; }
.card--accent { border-color: rgba(255, 65, 54, 0.4); background: linear-gradient(180deg, rgba(255, 65, 54, 0.1), rgba(255, 65, 54, 0.02)); }
.card__icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 12px; font-size: 1.1rem;
  background: rgba(255, 65, 54, 0.1); border: 1px solid rgba(255, 65, 54, 0.28); color: var(--red-2);
}
.card__title { font-family: var(--font-head); font-size: 1.02rem; margin: 0 0 8px; font-weight: 700; }
.card__text { margin: 0; color: #a9a9b6; font-size: 0.9rem; }
.card__text code, .lead code, .install-note code { font-size: 0.82em; color: var(--red-2); background: rgba(255, 65, 54, 0.08); padding: 1px 5px; border-radius: 5px; }

/* steps */
.steps .step {
  padding: 26px 24px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  position: relative;
}
.step__num { font-family: var(--font-head); font-size: 0.9rem; color: var(--red); letter-spacing: 0.08em; }
.step__title { font-family: var(--font-head); font-size: 1.05rem; margin: 14px 0 8px; font-weight: 700; }
.step__text { margin: 0; color: #a9a9b6; font-size: 0.9rem; }

/* install */
.install-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.install-grid > * { min-width: 0; }
.install-list { padding-left: 20px; color: #b9b9c4; font-size: 0.94rem; margin: 18px 0 14px; }
.code-block { position: relative; }
.copy-btn--abs { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.45); }
.code-block pre, .card--config pre { max-width: 100%;
  margin: 0; padding: 20px; overflow-x: auto; border-radius: 14px;
  background: #08080c; border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem; color: #d9d9e2; line-height: 1.7;
}
.c-muted { color: #6d6d7a; }
.c-key { color: var(--red-2); }
.install-note { color: var(--muted); font-size: 0.84rem; margin: 14px 0 0; }
.install-side { display: flex; flex-direction: column; gap: 18px; }
.card--config { padding: 0; overflow: hidden; }
.card__head {
  display: flex; align-items: center; gap: 9px; padding: 12px 18px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.card--config pre { border: 0; border-radius: 0; background: transparent; }
.card__fine { margin: 0; padding: 0 18px 18px; font-size: 0.78rem; color: var(--muted-2); }
.trust-list { display: flex; flex-direction: column; gap: 10px; }
.trust { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; color: #b9b9c4; }
.trust span { color: var(--ok); font-weight: 700; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px;
  background: rgba(255, 255, 255, 0.025); padding: 2px 20px;
}
.faq-item[open] { border-color: rgba(255, 65, 54, 0.35); background: rgba(255, 65, 54, 0.045); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 0.96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red-2); font-family: var(--font-mono); font-size: 1.1rem; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: #a9a9b6; font-size: 0.9rem; max-width: 740px; }
.faq-item code { color: var(--red-2); background: rgba(255, 65, 54, 0.08); padding: 1px 5px; border-radius: 5px; font-size: 0.85em; }

/* cta */
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  background:
    radial-gradient(600px 240px at 12% 0%, rgba(255, 65, 54, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 65, 54, 0.3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 65, 54, 0.1);
}
.cta-box .h2 { margin-bottom: 10px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 34px 0 40px; margin-top: 20px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { margin: 8px 0 0; color: var(--muted-2); font-size: 0.78rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.84rem; }
.footer-nav a:hover { color: #fff; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 360px; max-width: 680px; margin: 0 auto; width: 100%; }
  .node--1 { left: 0; } .node--2 { right: 0; } .node--3 { left: -1%; } .node--4 { right: 0; }
  .install-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.75rem, 8.4vw, 2.9rem); }
  .line--sm { font-size: 0.5em; }
  .visual-nodes { grid-template-columns: 1fr 1fr; }
  .visual-frame { margin-top: 8px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .header-actions .btn--ghost { display: none; }
  .hero-command { font-size: 0.72rem; max-width: 100%; }
  .hero-desc { font-size: 0.95rem; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.07); }
  .stat:last-child { border-bottom: 0; }
  .cta-box { padding: 26px 22px; }
  .hero-cta .btn { width: 100%; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}
