/* ==========================================================================
   ZModz — shared stylesheet
   Dark-only by design: the brand is black and ember orange, and a light
   variant would fight the glow effects the whole design is built around.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg:        #08060a;
  --bg-raised: #100c11;
  --ink:       #f6f1ec;
  --ink-dim:   #cfc4bb;
  --muted:     #9a8f86;
  --faint:     #6f635b;

  --orange: #ff7a18;
  --amber:  #ffb347;
  --ember:  #c2410c;
  --line:   rgba(255, 122, 24, 0.22);
  --line-soft: rgba(255, 255, 255, 0.07);

  --radius:    1rem;
  --radius-lg: 1.5rem;
  --shell:     72rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anchored sections must clear the fixed header. */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient light pools. Fixed so they never scroll away from the content. */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45rem 34rem at 18% 12%, rgba(255, 122, 24, 0.18), transparent 60%),
    radial-gradient(38rem 30rem at 84% 70%, rgba(194, 65, 12, 0.16), transparent 62%),
    radial-gradient(26rem 26rem at 55% 40%, rgba(255, 179, 71, 0.07), transparent 70%);
  filter: blur(14px);
  animation: drift 26s ease-in-out infinite alternate;
}

/* Grain: large flat blacks band badly on cheap panels without it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.26;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.09); }
}

/* --------------------------------------------------------------- structure */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; padding: 6rem 0; }
section.tight { padding: 4rem 0; }

/* ------------------------------------------------------------------ header */

header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(8, 6, 10, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand .mark {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 0.6rem;
  background: linear-gradient(160deg, var(--amber), var(--ember));
  box-shadow: 0 6px 18px -6px rgba(255, 122, 24, 0.8);
}
.brand .mark svg { width: 1.05rem; height: 1.05rem; display: block; }

.nav-links { display: flex; align-items: center; gap: 1.85rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.18s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

/* Current page, so people can see where they are. */
.nav-links a.active { color: var(--ink); }
.nav-links a.active:not(.btn) { position: relative; }
.nav-links a.active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

/* `.nav-links a` is more specific than `.btn`, so without this the button text
   inherits the muted nav colour and ends up grey-on-orange. */
.nav-links a.btn { color: #1a0d04; }
.nav-links a.btn:hover { color: #1a0d04; }
.nav-links a.btn.ghost, .nav-links a.btn.ghost:hover { color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 0.55rem;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* ----------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  color: #1a0d04;
  background: linear-gradient(135deg, var(--amber), var(--orange) 55%, var(--ember));
  box-shadow: 0 10px 28px -8px rgba(255, 122, 24, 0.7), 0 0 0 1px rgba(255, 200, 140, 0.3) inset;
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
/* Shine sweep on hover. */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(255, 122, 24, 0.9), 0 0 0 1px rgba(255, 214, 164, 0.45) inset; }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--amber);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-weight: 550;
}
.btn.ghost::after { display: none; }
.btn.ghost:hover { background: rgba(255, 122, 24, 0.08); box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.45) inset; }

.btn.small { padding: 0.6rem 1.25rem; font-size: 0.88rem; }

/* ---------------------------------------------------------------- typography */

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; margin: 0; }

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 750;
  background: linear-gradient(180deg, #fff 30%, #ffcf9a);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  background: linear-gradient(180deg, #fff 40%, #ffcf9a);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

h3 { font-size: 1.15rem; font-weight: 650; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

.lead { font-size: 1.1rem; color: var(--ink-dim); max-width: 42rem; }
p { color: var(--ink-dim); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.section-head { max-width: 44rem; margin-bottom: 3.25rem; }
.section-head p { margin: 1rem 0 0; }

/* -------------------------------------------------------------------- hero */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}
.hero-inner { max-width: 46rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 122, 24, 0.06);
  font-size: 0.84rem;
  color: var(--ink-dim);
  margin-bottom: 1.75rem;
}
.badge .dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Inner pages: a compact header instead of the full-height home hero. */
.page-hero {
  padding: 9rem 0 3.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); margin-bottom: 1rem; }
.page-hero .lead { margin: 0; }

/* Simple two-column split used on inner pages. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 62rem) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ------------------------------------------------------------------- cards */

.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(28, 20, 16, 0.55), rgba(12, 9, 11, 0.75));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* Gradient hairline border via a masked pseudo-element. */
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 122, 24, 0.45), rgba(255, 255, 255, 0.05) 45%, rgba(255, 122, 24, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(255, 122, 24, 0.5);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { margin: 0; font-size: 0.95rem; }

.card-icon {
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border-radius: 0.8rem;
  margin-bottom: 1.15rem;
  background: linear-gradient(160deg, rgba(255, 179, 71, 0.22), rgba(194, 65, 12, 0.22));
  border: 1px solid var(--line);
  font-size: 1.3rem;
}

/* Feature card that spans and leads a grid. */
.card.feature {
  grid-column: span 2;
  padding: 2.25rem;
  background: linear-gradient(140deg, rgba(255, 122, 24, 0.11), rgba(12, 9, 11, 0.8));
}

/* -------------------------------------------------------------------- steps */

.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  position: relative;
  padding-left: 4.25rem;
  min-height: 3rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border-radius: 0.8rem;
  font-weight: 700;
  color: #1a0d04;
  background: linear-gradient(160deg, var(--amber), var(--ember));
  box-shadow: 0 8px 22px -8px rgba(255, 122, 24, 0.7);
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.95rem; }

/* -------------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg-raised); padding: 2rem 1.5rem; text-align: center; }
.stat .value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--amber), var(--orange));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat .label { font-size: 0.84rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--line-soft); }
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 3rem 1.4rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  transition: color 0.18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem; top: 50%;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 3rem 1.5rem 0; color: var(--ink-dim); font-size: 0.97rem; }
.faq .answer p { margin: 0 0 0.75rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------- cta */

.cta-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(40rem 20rem at 50% 0%, rgba(255, 122, 24, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(28, 20, 16, 0.8), rgba(12, 9, 11, 0.92));
  border: 1px solid var(--line);
}
.cta-panel h2 { margin-bottom: 1rem; }
.cta-panel p { max-width: 34rem; margin: 0 auto 2rem; }

/* ------------------------------------------------------------------ footer */

footer.site {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  padding: 3.5rem 0 2.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
}
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s var(--ease);
}
.footer-links a:hover { color: var(--ink); }
.footer-links a:focus-visible { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--faint);
}

/* ------------------------------------------------------------------- prose */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin: 2.75rem 0 0.85rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-dim); font-size: 0.98rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.45rem 0; }
.prose a { color: var(--amber); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--amber);
  background: rgba(255, 122, 24, 0.1);
  border: 1px solid var(--line);
  padding: 0.12rem 0.35rem;
  border-radius: 0.3rem;
}
.notice {
  border-left: 2px solid var(--orange);
  background: rgba(255, 122, 24, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ embers */

.embers { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute;
  bottom: -12px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px 2px rgba(255, 122, 24, 0.55);
  animation: float linear infinite;
  opacity: 0;
}
@keyframes float {
  0%   { opacity: 0;   transform: translateY(0) translateX(0) scale(0.6); }
  12%  { opacity: 0.8; }
  100% { opacity: 0;   transform: translateY(-102vh) translateX(var(--dx, 14px)) scale(1.15); }
}

/* ------------------------------------------------------------- scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].shown { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ a11y */

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: #1a0d04;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 62rem) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 46rem) {
  section { padding: 4.5rem 0; }
  .nav-links {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 6, 10, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.5rem 1.5rem 1.5rem;
    /* Hidden by default on small screens; toggled by the menu button. */
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-links .btn { margin-top: 1rem; justify-content: center; }
  .nav-toggle { display: block; }

  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .card.feature { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-panel { padding: 3rem 1.5rem; }
  .faq summary, .faq .answer { padding-right: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, body::before { animation: none !important; transition: none !important; }
  .embers { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
