/* =============================================================================
   urx - landing page
   Deep-space terminal branding, rocket hero, ignition accent.
   ============================================================================= */

.landing { padding-top: var(--nav-h); }

.landing .top-nav { border-bottom-color: transparent; background: transparent; transition: background 0.3s, border-color 0.3s; }
.landing .top-nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--border);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* generic buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1.4rem;
  border-radius: var(--r-btn);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.22s, border-color 0.15s, background 0.15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ignition); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--ignition-glow); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-faint); background: var(--bg-subtle); transform: translateY(-2px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ignition);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ignition); }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.hero-copy { max-width: 34rem; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.2vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 1.15rem 0 1.1rem;
}
.hero h1 .hot { color: var(--ignition); }
.hero-sub {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 32rem;
  margin-bottom: 1.8rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-meta div { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-meta .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.hero-meta .l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

/* rocket stage */
.rocket-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.orbit {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: 0.7;
}
.orbit.o1 { width: 300px; height: 300px; }
.orbit.o2 { width: 440px; height: 440px; border-style: dashed; opacity: 0.4; animation: spin 60s linear infinite; }
.rocket-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ignition-glow), transparent 62%);
  filter: blur(8px);
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-rocket {
  position: relative;
  z-index: 3;
  width: clamp(230px, 30vw, 340px);
  filter: invert(1) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
  animation: float 6s ease-in-out infinite;
}
:root[data-theme="dark"] .hero-rocket { filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-rocket { filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6)); }
}
/* thrust plume (exhaust points lower-left, matching the logo's motion trails) */
.thrust {
  position: absolute;
  z-index: 2;
  bottom: 20%;
  left: 22%;
  width: 150px;
  height: 12px;
  transform: rotate(30deg);
  transform-origin: right center;
  background: linear-gradient(270deg, var(--ignition), var(--ignition-hot) 30%, transparent);
  border-radius: 999px;
  filter: blur(3px);
  animation: thrust-flicker 0.28s steps(2) infinite;
}

/* starfield */
.starfield { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.stars {
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, var(--star) 50%, transparent),
    radial-gradient(1.2px 1.2px at 70% 20%, var(--star) 50%, transparent),
    radial-gradient(1.6px 1.6px at 40% 70%, var(--star) 50%, transparent),
    radial-gradient(1px 1px at 85% 60%, var(--star) 50%, transparent),
    radial-gradient(1.3px 1.3px at 60% 85%, var(--star) 50%, transparent),
    radial-gradient(1px 1px at 12% 80%, var(--star) 50%, transparent),
    radial-gradient(1.5px 1.5px at 90% 35%, var(--star) 50%, transparent),
    radial-gradient(1px 1px at 32% 12%, var(--star) 50%, transparent);
  background-size: 420px 420px;
  animation: drift-stars 90s linear infinite;
}
.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 0%, transparent 75%);
}
:root { --star: rgba(20, 20, 26, 0.5); --gridline: rgba(20, 20, 26, 0.05); }
:root[data-theme="dark"] { --star: rgba(255, 255, 255, 0.75); --gridline: rgba(255, 255, 255, 0.035); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --star: rgba(255, 255, 255, 0.75); --gridline: rgba(255, 255, 255, 0.035); }
}

/* ─── Section scaffolding ─────────────────────────────────────────────────── */
.section { padding: 4.25rem 0; }
.section + .section { padding-top: 0.5rem; }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.7rem 0 0.6rem;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 36rem; }

/* ─── Terminal showcase ───────────────────────────────────────────────────── */
.term-section { padding-top: 1rem; }
.term {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--code-border);
  background: var(--code-bg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 91, 41, 0.06);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  background: #16161c;
  border-bottom: 1px solid #23232c;
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3a44; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-title { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; color: #6a6a76; margin-right: 40px; }
.term-body {
  padding: 1.2rem 1.35rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #d7d7dc;
  overflow-x: auto;
}
.term-body pre { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; color: inherit; }
.term-body pre::before { display: none; }
.prompt { color: var(--ignition); font-weight: 700; user-select: none; }
.flag { color: #9a9aa4; }
.muted { color: #74747e; }
.bar { color: var(--ignition-hot); }
.done { color: #56d364; }
.tag-ok { color: #3fb950; }
.tag-err { color: #f0665b; }
.cursor { display: inline-block; width: 8px; height: 1em; background: var(--ignition); vertical-align: -0.15em; animation: blink 1.1s steps(1) infinite; }

/* ─── Providers ───────────────────────────────────────────────────────────── */
.providers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.provider {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elev);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.provider:hover { border-color: var(--ignition); transform: translateY(-3px); box-shadow: var(--shadow); }
.provider .p-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.provider .p-flag { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); }
.provider .p-key {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: var(--r-chip);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.provider .p-key.keyless { color: #2ea043; border-color: color-mix(in srgb, #2ea043 45%, transparent); }
.provider.span-2 { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--ignition) 12%, var(--bg-elev)), var(--bg-elev)); border-color: color-mix(in srgb, var(--ignition) 30%, transparent); }
.provider.span-2 .p-desc { color: var(--text-muted); font-size: 0.88rem; margin-top: auto; }

/* ─── Features bento ──────────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 1rem;
}
.cell {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}
.cell:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cell .c-ico {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ignition) 12%, transparent);
  color: var(--ignition);
  margin-bottom: 0.85rem;
}
.cell .c-ico svg { width: 21px; height: 21px; }
.cell h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.cell p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.cell.wide { grid-column: span 2; }
.cell.tall { grid-row: span 2; }
/* feature: parallel - large hero cell with ignition wash */
.cell.feature {
  grid-column: span 2;
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--ignition) 16%, transparent), transparent 55%),
    var(--bg-elev);
  border-color: color-mix(in srgb, var(--ignition) 26%, transparent);
}
.cell.feature h3 { font-size: 1.5rem; }
.cell.feature p { font-size: 1rem; max-width: 30rem; }
.cell .big-num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.cell .big-num span { color: var(--ignition); }
/* code snippet cell */
.cell.code-cell { background: var(--code-bg); border-color: var(--code-border); color: var(--code-text); padding: 0; }
.cell.code-cell .snip {
  padding: 1.35rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: #cfcfd6;
  height: 100%;
}
.cell.code-cell .snip .prompt { color: var(--ignition); }
.cell.code-cell .snip .muted { color: #74747e; }

/* ─── Pipeline ────────────────────────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-elev);
}
.stage {
  position: relative;
  padding: 1.6rem 1.5rem 1.8rem;
  border-right: 1px solid var(--border);
}
.stage:last-child { border-right: 0; }
.stage .s-idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ignition); letter-spacing: 0.1em; }
.stage h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0.5rem 0 0.4rem; }
.stage p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }
.stage::after {
  content: "";
  position: absolute;
  right: -7px; top: 50%;
  width: 13px; height: 13px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.stage:last-child::after { display: none; }

/* ─── Install / final CTA ─────────────────────────────────────────────────── */
.launch {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--ignition) 14%, transparent), transparent 55%),
    var(--bg-elev);
  padding: 3.5rem 2rem;
  text-align: center;
  overflow: hidden;
}
.launch .starfield { opacity: 0.6; }
.launch-inner { position: relative; z-index: 2; max-width: 40rem; margin: 0 auto; }
.launch h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0.8rem 0 0.7rem; }
.launch p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 1.75rem; }
.install-cmds {
  display: grid;
  gap: 0.6rem;
  max-width: 30rem;
  margin: 0 auto 1.9rem;
  text-align: left;
}
.cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-code);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--code-text);
}
.cmd .prompt { color: var(--ignition); font-weight: 700; }
.cmd .via { margin-left: auto; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6a6a76; }

/* ─── Landing footer ──────────────────────────────────────────────────────── */
.l-footer { border-top: 1px solid var(--border); background: var(--bg-subtle); }
.l-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}
.l-footer .f-brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); margin-bottom: 0.9rem; }
.l-footer .f-brand img { width: 26px; height: 26px; filter: invert(1); }
:root[data-theme="dark"] .l-footer .f-brand img { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .l-footer .f-brand img { filter: none; } }
.l-footer .f-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.l-footer .f-tag { color: var(--text-muted); font-size: 0.88rem; max-width: 20rem; }
.l-footer h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.9rem; }
.l-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.l-footer a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.l-footer a:hover { color: var(--ignition); }
.l-footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.3rem 0; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-faint);
}
.l-footer-base a { color: var(--text-muted); text-decoration: none; }
.l-footer-base a:hover { color: var(--ignition); }

/* ─── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes thrust-flicker { 0% { opacity: 0.85; transform: rotate(30deg) scaleX(0.9); } 100% { opacity: 1; transform: rotate(30deg) scaleX(1.08); } }
@keyframes drift-stars { to { transform: translateY(-140px); } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .providers { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell.feature, .cell.wide { grid-column: span 2; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .stage:nth-child(2)::after { display: none; }
  .stage:nth-child(1), .stage:nth-child(2) { border-bottom: 1px solid var(--border); }
  .l-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .rocket-stage { order: -1; min-height: 300px; }
  .hero-rocket { width: clamp(190px, 45vw, 250px); }
  .orbit.o2 { display: none; }
  .hero { min-height: auto; padding: 2.5rem 0 3.5rem; }
}
@media (max-width: 560px) {
  .section { padding: 3.75rem 0; }
  .providers { grid-template-columns: 1fr; }
  .provider.span-2 { grid-column: span 1; }
  .bento { grid-template-columns: 1fr; }
  .cell.feature, .cell.wide, .cell.tall { grid-column: span 1; grid-row: span 1; }
  .pipeline { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--border); }
  .stage::after { display: none; }
  .l-footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rocket, .rocket-glow, .thrust, .stars, .orbit.o2, .cursor { animation: none !important; }
  .thrust { opacity: 0.9; }
}
