/* =========================================================
   PrioNudge — landing page
   Obsidian + amber/terracotta. Dark, layered, restrained.
   ========================================================= */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --bg:            #0B0C0B;
  --bg-soft:       #0F100E;
  --surface:       #141513;
  --surface-2:     #191A17;
  --line:          rgba(255, 255, 255, 0.075);
  --line-strong:   rgba(255, 255, 255, 0.13);
  --line-warm:     rgba(234, 154, 62, 0.18);

  /* text */
  --text:          #F2EFE9;
  --text-2:        #A9A49B;
  --text-3:        #8E8A81;

  /* brand */
  --amber:         #EA9A3E;
  --amber-soft:    #FFB385;
  --terracotta:    #D97757;
  --ink:           #1B1004;

  /* metrics */
  --container:     1180px;
  --gutter:        clamp(20px, 4.6vw, 40px);
  --radius:        14px;
  --radius-sm:     10px;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

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

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.1;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: rgba(234, 154, 62, 0.26); color: #fff; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.9rem;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 8.4vw, 116px);
  position: relative;
}

/* hairline divider that fades at the edges */
.section + .section::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.section__title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  max-width: 30ch;
}
.section__title .dim { color: var(--text-3); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.section__lead {
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.09rem);
  line-height: 1.62;
  max-width: 52ch;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              backdrop-filter 0.25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(11, 12, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mark { display: block; width: 26px; height: 26px; flex: none; }
.mark svg { width: 100%; height: 100%; }
.mark--sm { width: 24px; height: 24px; }

.nav__wordmark {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.nav__link {
  color: var(--text-2);
  font-size: 0.925rem;
  transition: color 0.18s var(--ease);
}
.nav__link:hover { color: var(--text); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 550;
  letter-spacing: -0.011em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}

.btn--sm { padding: 8px 15px; font-size: 0.9rem; }
.btn--lg { padding: 14px 22px; font-size: 0.985rem; border-radius: 11px; }

.btn__icon { width: 17px; height: 17px; flex: none; fill: currentColor; }

.btn--primary {
  color: var(--ink);
  background-image: linear-gradient(180deg, #F3A94F 0%, var(--amber) 52%, #DD8A32 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 8px 24px -10px rgba(234, 154, 62, 0.55);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 14px 34px -10px rgba(234, 154, 62, 0.72);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: clamp(40px, 5.5vw, 72px);
  overflow: hidden;
}

/* warm ambient glow behind the headline and the top of the app window */
.hero__aura {
  position: absolute;
  left: 50%;
  top: -260px;
  width: min(1240px, 155vw);
  height: 1180px;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 42% at 50% 40%,
    rgba(234, 154, 62, 0.20) 0%,
    rgba(217, 119, 87, 0.09) 44%,
    rgba(217, 119, 87, 0) 71%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-2);
  font-size: 0.83rem;
  letter-spacing: 0.005em;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(234, 154, 62, 0.16);
}

.hero__title {
  margin-top: clamp(20px, 3.2vw, 30px);
  font-size: clamp(2.05rem, 6.1vw, 4.1rem);
  line-height: 1.045;
  letter-spacing: -0.038em;
  max-width: 22ch;
}

.grad {
  background-image: linear-gradient(96deg, var(--amber-soft) 0%, var(--amber) 38%, var(--terracotta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* keeps descenders from clipping in some engines */
  -webkit-text-fill-color: transparent;
}

/* if gradient text isn't supported, fall back to solid amber rather than invisible text */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .grad {
    background-image: none;
    color: var(--amber);
    -webkit-text-fill-color: currentColor;
  }
}

.hero__lead {
  margin-top: clamp(16px, 2.3vw, 22px);
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(1rem, 1.5vw, 1.115rem);
  line-height: 1.62;
}

.hero__actions {
  margin-top: clamp(26px, 3.6vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__actions--center { justify-content: center; }

.hero__note {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.hero__note--center { justify-content: center; }
.hero__note a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}
.hero__note a:hover { color: var(--amber); text-decoration-color: rgba(234, 154, 62, 0.5); }
.ver {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- app window ---------- */
.shot {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: clamp(44px, 6vw, 74px) auto 0;
  padding-inline: var(--gutter);
}

.shot__glow {
  position: absolute;
  left: 50%;
  top: -2%;
  width: 94%;
  height: 76%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 46%, rgba(234, 154, 62, 0.20) 0%, rgba(217, 119, 87, 0) 70%);
  filter: blur(34px);
  pointer-events: none;
}

.shot__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0A0B0A;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 34px 70px -24px rgba(0, 0, 0, 0.85),
    0 70px 130px -50px rgba(0, 0, 0, 0.9);
}
/* faint top sheen, like glass over a dark UI */
.shot__frame::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.shot__frame img { width: 100%; }

.shot__caption {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
  padding-inline: 4px;
}

/* =========================================================
   PILLARS
   ========================================================= */
.pillars {
  margin-top: clamp(34px, 4.6vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.pillar {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--amber), rgba(234, 154, 62, 0));
}
.pillar h3 {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}
.pillar p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.945rem;
  line-height: 1.65;
}

/* =========================================================
   DETAILS
   ========================================================= */
.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}

.detail { display: flex; flex-direction: column; }

.detail__media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0A0B0A;
  overflow: hidden;
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.9);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.detail:hover .detail__media {
  border-color: var(--line-warm);
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -26px rgba(0, 0, 0, 0.95), 0 0 34px -14px rgba(234, 154, 62, 0.28);
}
.detail__media img { width: 100%; }

.detail figcaption { padding: 18px 2px 0; }
.detail h3 {
  font-size: 1rem;
  letter-spacing: -0.018em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail h3::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.detail p {
  margin-top: 9px;
  color: var(--text-2);
  font-size: 0.925rem;
  line-height: 1.65;
}
.code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* =========================================================
   DESKTOP
   ========================================================= */
.desktop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.desktop__copy .section__lead { margin-top: 18px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--bg-soft);
  padding: clamp(18px, 2.4vw, 26px);
}
.fact dt {
  font-size: 0.945rem;
  font-weight: 550;
  letter-spacing: -0.012em;
  color: var(--text);
}
.fact dd {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.6;
}
kbd {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 5px;
  margin-inline: 1px;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(84px, 11vw, 148px);
}
.cta__aura {
  position: absolute;
  left: 50%;
  bottom: -420px;
  width: min(1000px, 140vw);
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(
    46% 46% at 50% 50%,
    rgba(234, 154, 62, 0.17) 0%,
    rgba(217, 119, 87, 0.07) 44%,
    rgba(217, 119, 87, 0) 72%
  );
  pointer-events: none;
}
.cta__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__title {
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.036em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(30px, 4vw, 42px);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__name { display: block; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.015em; }
.footer__by { display: block; color: var(--text-3); font-size: 0.845rem; margin-top: 2px; }

.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a {
  color: var(--text-3);
  font-size: 0.875rem;
  transition: color 0.18s var(--ease);
}
.footer__links a:hover { color: var(--text); }

.footer__copy { color: var(--text-3); font-size: 0.845rem; }

/* =========================================================
   REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* stagger siblings slightly */
.pillars [data-reveal].is-visible,
.details [data-reveal].is-visible { transition-delay: 0.04s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details .detail:last-child { grid-column: 1 / -1; max-width: 560px; }
}

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { padding-block: 20px; border-top: 1px solid var(--line); }
  .pillar + .pillar { margin-top: 0; }

  .desktop { grid-template-columns: 1fr; }
  .section__title { max-width: none; }
}

@media (max-width: 680px) {
  .details { grid-template-columns: 1fr; }
  .details .detail:last-child { max-width: none; }

  .facts { grid-template-columns: 1fr; }

  .nav__inner { height: 60px; }
  .nav__link { display: none; }

  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 1.9rem; }
  .eyebrow { font-size: 0.78rem; }
}

/* =========================================================
   MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .detail:hover .detail__media { transform: none; }
}

/* =========================================================
   PRINT (rare, but keep it sane)
   ========================================================= */
@media print {
  body { background: #fff; color: #000; }
  .nav, .shot__glow, .cta__aura, .hero__aura { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
