/* =========================================================================
   PraxisOS landing — dark, technical, gold-accented.
   One theme (dark). One accent (brand gold). One radius scale.
   ========================================================================= */

:root {
  /* Surfaces (off-black, never pure #000) */
  --bg: #0a0a0b;
  --bg-soft: #0e0e10;
  --surface: #141416;
  --surface-2: #191a1d;

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f4f3f1;
  --text-muted: #a2a1a0;
  --text-faint: #6f6e6d;

  /* Brand gold (from the hexagon mark) */
  --gold: #d8a24a;
  --gold-bright: #ecc275;
  --gold-deep: #a9772c;
  --gold-ink: #14100a; /* dark text used on gold fills */

  /* Radius scale: pills for interactive-round, 14px cards, 10px buttons */
  --r-btn: 10px;
  --r-card: 16px;
  --r-pill: 999px;

  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 68px;
}

/* ------------------------------ reset ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ------------------------------ layout --------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding-block: clamp(72px, 12vw, 140px);
  border-top: 1px solid var(--line);
}
.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}
.section__lede {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}
.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.accent {
  color: var(--gold);
}

/* ---------------------------- a11y helpers ----------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 10px 16px;
  border-radius: var(--r-btn);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* icons */
.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--xs {
  width: 14px;
  height: 14px;
}

/* ------------------------------ buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-btn);
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn .ico {
  width: 18px;
  height: 18px;
}
.btn--sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}
.btn--lg {
  padding: 14px 24px;
  font-size: 1rem;
}
.btn--primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 30px -10px rgba(216, 162, 74, 0.5);
}
.btn--primary:active {
  transform: scale(0.985);
}
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.24);
}
.btn--ghost:active {
  transform: scale(0.985);
}

/* ------------------------------- nav ----------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 28px;
  height: 28px;
}
.brand__name {
  font-size: 1.05rem;
}
.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.15s var(--ease);
}
.nav__links a:hover {
  color: var(--text);
}
@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
}

/* ------------------------------- hero ---------------------------------- */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: 64px;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    #000 20%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    #000 20%,
    transparent 78%
  );
  opacity: 0.55;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.hero__lede {
  margin-top: 26px;
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__meta {
  margin-top: 22px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* hero visual: real brand mark on a dotted plate */
.hero__visual {
  display: flex;
  justify-content: center;
}
.mark-plate {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: radial-gradient(
      120% 120% at 50% 30%,
      rgba(216, 162, 74, 0.08),
      transparent 60%
    ),
    var(--bg-soft);
  overflow: hidden;
}
.mark-plate__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
  opacity: 0.6;
}
.mark-plate__logo {
  position: relative;
  width: 62%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(216, 162, 74, 0.22));
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__visual {
    order: -1;
  }
  .mark-plate {
    max-width: 260px;
  }
  .hero__lede {
    max-width: 46ch;
  }
}

/* ------------------------------ modules -------------------------------- */
.modules {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.module {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.module .ico {
  color: var(--gold);
}
.module:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* ------------------------------ bento ---------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 16px;
}
.bento__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Grid items default to min-width:auto; without this a cell won't shrink
     below its body's 46ch max-width and overflows on narrow screens. */
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.bento__cell:hover {
  border-color: var(--line-strong);
}
/* lead cell spans 2 cols and 2 rows, with a warm tint for visual variation */
.bento__cell--lead {
  grid-column: span 2;
  grid-row: span 2;
  background: radial-gradient(
      130% 120% at 0% 0%,
      rgba(216, 162, 74, 0.1),
      transparent 55%
    ),
    var(--surface);
}
.bento__cell--wide {
  grid-column: span 2;
}
.bento__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--gold);
  margin-bottom: 20px;
}
.bento__icon .ico {
  width: 22px;
  height: 22px;
}
.bento__title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.bento__cell--lead .bento__title {
  font-size: 1.7rem;
}
.bento__body {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 46ch;
}
.path {
  margin-top: auto;
  min-width: 0;
  max-width: 100%;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--gold-bright);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  align-self: stretch;
  overflow-x: auto;
  white-space: nowrap;
}
.bento__cell--lead .path {
  margin-top: 28px;
}
.bento__link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.92rem;
  transition: gap 0.2s var(--ease);
}
.bento__link:hover {
  gap: 10px;
}

@media (max-width: 860px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__cell--lead {
    grid-column: span 2;
    grid-row: auto;
  }
  .bento__cell--wide {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__cell--lead,
  .bento__cell--wide {
    grid-column: auto;
  }
  .module {
    padding: 16px;
  }
}

/* --------------------------- privacy statement ------------------------- */
.statement__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.statement__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
}
.statement__body {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-muted);
}
.statement__note {
  margin-top: 32px;
  display: inline-block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 24px;
  max-width: 60ch;
}

/* ------------------------------- cta ----------------------------------- */
.cta {
  border-bottom: 1px solid var(--line);
}
.cta__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.cta__title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
}
.cta__body {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.cta .btn {
  margin-top: 34px;
}
.cta__fineprint {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.cta__fineprint em {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

/* ------------------------------ footer --------------------------------- */
.footer {
  padding-block: 64px 40px;
  background: var(--bg-soft);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__tag {
  margin-top: 16px;
  color: var(--text-faint);
  font-size: 0.9rem;
  max-width: 30ch;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 4px;
}
.footer__col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  width: fit-content;
  transition: color 0.15s var(--ease);
}
.footer__col a:hover {
  color: var(--gold);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-family: "Geist Mono", ui-monospace, monospace;
}
@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: span 2;
  }
}

/* =========================================================================
   Reveal animation states.
   Hidden ONLY when JS is present (.js). GSAP clears them; if GSAP fails to
   load, main.js reveals them manually. Reduced-motion shows everything at once.
   ========================================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
