/* ========================================================================
   PRAXEN — Launch Infrastructure
   Matte black / charcoal / metallic silver / champagne-gold accent
   ======================================================================== */

:root {
  --black:      #060607;
  --bg:         #0a0a0b;
  --charcoal:   #121316;
  --charcoal-2: #17191d;
  --line:       rgba(255,255,255,.08);
  --line-soft:  rgba(255,255,255,.05);

  --silver:     #c7ccd3;
  --silver-dim: #8b9099;
  --text:       #e9ebee;
  --muted:      #9aa0a8;
  --muted-dim:  #6d727a;

  --gold:       #d8c08a;
  --gold-soft:  #c3ad7d;
  --gold-line:  rgba(216,192,138,.28);

  --maxw: 1120px;
  --radius: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --ff-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(216,192,138,.22); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--charcoal); color: var(--text);
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line);
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--black); }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 25%, transparent 78%);
  opacity: .6;
}
.bg-glow {
  position: absolute; top: -14%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(55% 55% at 50% 40%, rgba(216,192,138,.10), transparent 70%);
  filter: blur(28px);
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .02em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  position: relative;
  color: #0b0b0c;
  background: linear-gradient(180deg, #f3f5f8 0%, #cfd4db 48%, #a9afb7 100%);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 26px rgba(0,0,0,.5);
  font-weight: 600;
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 34px rgba(0,0,0,.6),
              0 0 0 1px var(--gold-line);
}
.btn-primary:focus-visible { outline-offset: 4px; }

.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; margin-top: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,10,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(180deg, #16181c, #0c0d0f);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b {
  font-family: var(--ff-display); font-weight: 600; font-size: 17px;
  letter-spacing: .22em; color: #f1f3f6;
}
.brand-text small {
  font-size: 8.5px; letter-spacing: .34em; color: var(--muted-dim);
  margin-top: 3px; font-weight: 500;
}

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 13.5px; color: var(--muted); font-weight: 450;
  letter-spacing: .01em; transition: color .3s var(--ease);
  position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold-soft); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-socials { display: flex; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 9px; color: var(--muted);
  border: 1px solid transparent;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--charcoal); border-color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 128px 0 72px;
  position: relative;
}
.hero-in { display: flex; flex-direction: column; align-items: center; }

.brand-emblem {
  margin-bottom: 30px;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,.6));
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.eyebrow {
  font-family: var(--ff-display);
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 24px; font-weight: 500;
}
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.02em;
  color: #f6f7f9;
  background: linear-gradient(180deg, #ffffff 0%, #d6dadf 55%, #b4b9c0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 26px; max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--muted); font-weight: 300; line-height: 1.7;
}

.status-line {
  display: inline-flex; align-items: center; gap: 11px;
  margin-top: 34px;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(216,192,138,.07), rgba(216,192,138,.02));
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 0 rgba(216,192,138,.5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216,192,138,.45); }
  70% { box-shadow: 0 0 0 9px rgba(216,192,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(216,192,138,0); }
}
.status-text {
  font-family: var(--ff-display); font-size: 12px; font-weight: 600;
  letter-spacing: .34em; color: var(--gold); text-transform: uppercase;
}

.hero-cta { margin-top: 38px; }

.hero-rule {
  margin-top: 72px; width: min(560px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--gold-line) 50%, var(--line) 80%, transparent);
}

.br-desk { display: none; }

/* ---------- Section primitives ---------- */
.section-kicker {
  font-family: var(--ff-display);
  font-size: 11.5px; letter-spacing: .36em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 500; margin-bottom: 18px;
}
.section-head { max-width: 60ch; margin: 0 auto; text-align: center; }
h2 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  letter-spacing: -.015em; line-height: 1.12; color: #f2f4f6;
}
.section-lead {
  margin-top: 18px; color: var(--muted); font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.7;
}

/* ---------- Early access ---------- */
.access-section {
  padding: 72px 0 20px;
  scroll-margin-top: 90px;
}
.access-card {
  background: linear-gradient(180deg, var(--charcoal-2), var(--charcoal));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.015) inset;
  position: relative; overflow: hidden;
}
.access-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.access-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.access-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--ff-display); font-size: 12.5px; font-weight: 500;
  letter-spacing: .04em; color: var(--silver); display: flex; gap: 8px; align-items: center;
}
.opt {
  font-family: var(--ff-body); font-size: 10.5px; font-weight: 400;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted-dim);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px;
}
.input-wrap {
  display: flex; align-items: center;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.input-wrap:focus-within {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(216,192,138,.1);
}
.input-prefix {
  padding: 0 2px 0 14px; color: var(--muted-dim); font-size: 15px;
  font-family: var(--ff-display);
}
.input-wrap input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); font-family: var(--ff-body); font-size: 15px;
  padding: 13px 14px;
}
.input-prefix + input { padding-left: 6px; }
.input-wrap input::placeholder { color: var(--muted-dim); }

.field-help { font-size: 12.5px; color: var(--muted-dim); margin-top: -2px; }

.form-msg {
  margin-top: 6px; padding: 14px 16px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.55;
  border: 1px solid var(--line); background: var(--black);
}
.form-msg.ok { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(216,192,138,.08), rgba(216,192,138,.02)); color: var(--text); }
.form-msg.err { border-color: rgba(224,120,120,.4); background: rgba(224,120,120,.06); color: #f0cdcd; }
.form-msg.info { border-color: var(--line); color: var(--muted); }
.form-msg b { color: #fff; font-weight: 600; }
.form-msg .muted { color: var(--muted); }

/* ---------- Standard section ---------- */
.standard { padding: 112px 0; scroll-margin-top: 80px; }
.feature-grid {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
  position: relative;
  background: linear-gradient(180deg, var(--charcoal), rgba(10,10,11,.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px 34px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
}
.feature:hover::before { opacity: 1; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.feature-no {
  font-family: var(--ff-display); font-size: 13px; font-weight: 500;
  letter-spacing: .2em; color: var(--gold-soft); margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-soft);
}
.feature h3 {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.28rem;
  letter-spacing: -.01em; color: #eef0f2; margin-bottom: 12px;
}
.feature p { color: var(--muted); font-weight: 300; font-size: 15px; line-height: 1.68; }

/* ---------- Next section ---------- */
.next {
  padding: 128px 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
  scroll-margin-top: 80px;
}
.next-in { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; }
.next-glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(216,192,138,.12), transparent 70%);
  filter: blur(40px); z-index: -1;
}
.next h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.next-lead {
  margin-top: 22px; max-width: 56ch; color: var(--muted);
  font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7;
}
.next-coming {
  margin-top: 20px; font-family: var(--ff-display); font-weight: 500;
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--silver);
}
.next-cta { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.4)); }
.footer-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand-text b {
  font-family: var(--ff-display); font-weight: 600; font-size: 15px;
  letter-spacing: .22em; color: #eef0f2;
}
.footer-brand-text small { font-size: 10px; letter-spacing: .2em; color: var(--muted-dim); margin-top: 2px; }
.footer-coming {
  margin-top: 6px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft); font-family: var(--ff-display); font-weight: 500;
}

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 13px; font-family: var(--ff-display); font-weight: 450;
  letter-spacing: .03em;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.footer-socials a:hover { color: var(--text); border-color: var(--gold-line); background: var(--charcoal); }

.footer-copy {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted-dim);
}
.footer-tag { letter-spacing: .18em; text-transform: uppercase; font-size: 11px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) { .br-desk { display: inline; } }

@media (max-width: 920px) {
  .access-card { grid-template-columns: 1fr; gap: 30px; padding: 36px 30px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-right { gap: 10px; }
  .nav-in { height: 64px; }
  .brand-text small { display: none; }
  .standard { padding: 84px 0; }
  .next { padding: 96px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 42px; }
  .hero { padding: 112px 0 60px; }
  .hero-rule { margin-top: 54px; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 26px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .nav-cta { padding: 8px 13px; font-size: 12.5px; }
  .brand-mark { width: 38px; height: 38px; }
  .access-card { padding: 28px 22px; }
  .btn-lg { padding: 14px 26px; width: 100%; }
  .hero-cta, .next-cta { width: 100%; max-width: 320px; }
  .footer-copy { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .feature:hover { transform: none; }
}
