/* stplr.org — page styling. Tokens + fonts come from brand.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--stplr-font-display);
  background: var(--stplr-charcoal);
  color: var(--stplr-silver);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
.mono { font-family: var(--stplr-font-mono); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
section { padding: clamp(3.5rem, 8vw, 7rem) 1.5rem; }

/* ---- nav ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  position: sticky; top: 0; z-index: 10;
  background: rgba(33,33,33,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214,214,214,0.08);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; }
.brand-word { font-size: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); font-weight: 600; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: #fff; }
.icon-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--stplr-silver); transition: color .15s ease; }
.icon-link svg { width: 22px; height: 22px; }
.icon-link:hover { color: #fff; }
.foot-right { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.foot-right .icon-link { font-size: 0.85rem; font-weight: 600; }

/* ---- buttons ---- */
.btn {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--stplr-orange); color: #1a1a1a; }
.btn-primary:hover { background: #ffb733; }
.btn-ghost { border: 1px solid rgba(214,214,214,0.25); color: var(--stplr-silver); }
.btn-ghost:hover { border-color: var(--stplr-orange); color: #fff; }

/* ---- hero ---- */
.hero {
  text-align: center;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(0,51,102,0.85), transparent 60%),
    linear-gradient(180deg, #0c2030 0%, var(--stplr-charcoal) 70%);
  border-bottom: 1px solid rgba(214,214,214,0.08);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow { font-family: var(--stplr-font-mono); font-size: 0.8rem; letter-spacing: 0.18em;
  color: var(--stplr-orange); margin: 0 0 1.2rem; }
.hero-word { font-size: clamp(4rem, 16vw, 9rem); margin: 0; color: #fff; }
.lede { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 600; color: #fff; margin: 1rem auto 0.6rem; max-width: 30ch; }
.sub { font-size: 1.05rem; color: var(--stplr-silver); margin: 0 auto; max-width: 46ch; opacity: 0.85; }
.cta-row { display: flex; gap: 0.8rem; justify-content: center; margin: 2rem 0 0.8rem; flex-wrap: wrap; }
.beta-note { font-family: var(--stplr-font-mono); font-size: 0.85rem; opacity: 0.6; }

/* ---- features ---- */
.section-title { text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 2.2rem; }
.grid { max-width: 1040px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.roadmap { max-width: 1040px; margin: 2rem auto 0; text-align: center; font-size: 0.92rem;
  color: var(--stplr-silver); opacity: 0.7; }
.roadmap span { white-space: nowrap; }
.card {
  background: #1a1a1a; border: 1px solid rgba(214,214,214,0.09);
  border-radius: 14px; padding: 1.6rem; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: rgba(255,165,0,0.4); transform: translateY(-2px); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--stplr-orange); border-radius: 2px; margin-bottom: 0.9rem; }
.card p { margin: 0; font-size: 0.97rem; opacity: 0.85; }

/* ---- architecture ---- */
.arch { background: #161616; border-block: 1px solid rgba(214,214,214,0.08); }
.arch-inner { max-width: 1040px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.arch-copy h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 1rem; }
.roles { list-style: none; padding: 0; margin: 1.2rem 0; }
.roles li { padding: 0.5rem 0; border-top: 1px solid rgba(214,214,214,0.08); font-size: 0.97rem; opacity: 0.9; }
.tag { display: inline-block; font-family: var(--stplr-font-mono); font-size: 0.8rem;
  background: rgba(0,51,102,0.55); color: #cfe0f5; padding: 0.1rem 0.5rem; border-radius: 5px; margin-right: 0.5rem; }
.honest { font-size: 0.92rem; background: rgba(0,51,102,0.25);
  border-left: 3px solid var(--stplr-deep-blue); padding: 0.8rem 1rem; border-radius: 0 8px 8px 0; opacity: 0.95; }
.arch-code pre {
  margin: 0; background: #0d0d0d; border: 1px solid rgba(214,214,214,0.1);
  border-radius: 14px; padding: 1.4rem; font-size: 0.9rem; line-height: 1.7; overflow-x: auto; color: #d6d6d6;
}
.arch-code .c { color: #6b7785; }
.arch-code .s { color: #ffb84d; }
.arch-code .n { color: #7fb3ff; }

/* ---- stitch upsell ---- */
.stitch { background:
    radial-gradient(700px 380px at 80% 10%, rgba(255,165,0,0.10), transparent 60%),
    linear-gradient(180deg, #002a52 0%, #00203f 100%);
  border-block: 1px solid rgba(255,165,0,0.18); }
.stitch-inner { max-width: 760px; margin: 0 auto; }
.stitch h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0.4rem 0 1rem; }
.stitch .accent { color: var(--stplr-orange); }
a.accent { text-decoration: none; }
a.accent:hover { text-decoration: underline; }
.stitch-lede { font-size: 1.1rem; color: #fff; opacity: 0.92; margin: 0 0 1.4rem; }
.stitch-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.stitch-list li { padding: 0.55rem 0 0.55rem 1.7rem; position: relative;
  border-top: 1px solid rgba(255,255,255,0.1); font-size: 1rem; opacity: 0.92; }
.stitch-list li::before { content: "+"; position: absolute; left: 0; color: var(--stplr-orange); font-weight: 800; }

/* ---- license ---- */
.license { text-align: center; }
.license-inner { max-width: 640px; margin: 0 auto; }
.license h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 1rem; }
.license p { opacity: 0.85; }

/* ---- footer ---- */
.foot { padding: 2.5rem 1.5rem; border-top: 1px solid rgba(214,214,214,0.08); background: #0d0d0d; }
.foot-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot .stplr-wordmark { font-size: 1.3rem; }
.foot p { font-family: var(--stplr-font-mono); font-size: 0.82rem; opacity: 0.55; margin: 0; }

@media (max-width: 760px) {
  .arch-inner { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
