:root {
  --bg: #070706;
  --bg-2: #0d0c0b;
  --panel: rgba(22, 21, 19, 0.82);
  --panel-strong: #1b1916;
  --text: #fff6ed;
  --muted: #c7b8a8;
  --dim: #8f8071;
  --line: rgba(255, 246, 237, 0.12);
  --line-strong: rgba(255, 122, 28, 0.38);
  --orange: #ff7a1c;
  --orange-2: #ffb15f;
  --green: #60d394;
  --teal: #5cc8bd;
  --max: 1160px;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  background:
    linear-gradient(115deg, rgba(255, 122, 28, 0.12), transparent 28%),
    linear-gradient(180deg, #090806 0%, #070706 44%, #0d0c0b 100%);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 246, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 246, 237, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(255, 122, 28, 0.13), transparent 34%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.78) 46%, transparent 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 6, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #16110c;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 16px 36px rgba(255, 122, 28, 0.28);
}

.brand-text { font-size: 1.04rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 122, 28, 0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease;
}

body.nav-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.nav-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

main { min-height: calc(100vh - 164px); }

.home-hero {
  min-height: calc(100svh - 152px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 86px) clamp(20px, 5vw, 56px) 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.home-copy { max-width: 760px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 8.2vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.page-hero h1,
.product-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 6.4vw, 5.9rem);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-subtitle,
.page-lead {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.42;
}

.hero-text,
.page-support,
.product-card p,
.feature-tile p,
.story-copy p,
.story-item p,
.support-card p,
.support-topics li,
.contact-main p,
.legal-content p,
.legal-content li,
.site-footer p,
.stat-panel p {
  color: var(--muted);
}

.hero-text,
.page-support { max-width: 680px; font-size: 1.04rem; }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #17100b;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 18px 48px rgba(255, 122, 28, 0.24);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.btn-muted {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.btn-wide { width: 100%; min-height: 62px; }

.home-visual {
  position: relative;
  min-height: 480px;
  border: 1px solid rgba(255, 122, 28, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: #12100e;
  box-shadow: var(--shadow);
}

.home-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(7, 7, 6, 0.32)), linear-gradient(90deg, rgba(7, 7, 6, 0.2), transparent 55%);
}

.home-visual img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }

.glass-console {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 246, 237, 0.16);
  border-radius: 8px;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(18px);
}

.glass-console span,
.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-2);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.glass-console strong { display: block; font-size: 1.35rem; }
.glass-console p { margin: 8px 0 0; color: var(--muted); }

.signature-strip {
  max-width: var(--max);
  margin: 0 auto 52px;
  padding: 0 clamp(20px, 5vw, 0px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signature-strip span {
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  font-weight: 800;
}

.page-hero,
.product-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) clamp(20px, 4vw, 32px) 34px;
}

.page-hero.split,
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 34px;
  align-items: end;
}

.page-hero.compact { max-width: 940px; }

.stat-panel,
.product-device,
.reader-preview,
.support-card,
.support-topics,
.contact-main,
.contact-links,
.rule-panel,
.legal-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)), var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.stat-panel { padding: 24px; }
.stat-panel strong { display: block; font-size: 3rem; line-height: 1; }
.stat-panel p { margin: 12px 0 0; }

.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 900;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--orange); }
.status-pill.available::before { background: var(--green); }
.status-pill.dev::before { background: var(--teal); }

.content-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 32px);
}
.content-section.narrow { max-width: 900px; }

.product-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.product-card {
  min-height: 390px;
  position: relative;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 122, 28, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px auto;
  width: 92px;
  height: 92px;
  border-right: 1px solid rgba(255, 122, 28, 0.32);
  border-bottom: 1px solid rgba(255, 122, 28, 0.32);
}

.product-card-featured { min-height: 440px; }
.product-index { color: rgba(255, 177, 95, 0.42); font-size: 4.5rem; line-height: 0.9; font-weight: 950; }
.product-card h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.product-card p { max-width: 560px; }

.feature-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-tile {
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), rgba(18, 17, 15, 0.82);
}

.feature-tile span,
.story-item span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-tile h2 { font-size: 1.25rem; }
.feature-tile p { margin-bottom: 0; font-size: 0.96rem; }

.product-device,
.reader-preview {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.device-shell {
  width: min(260px, 100%);
  min-height: 310px;
  padding: 24px;
  border: 1px solid rgba(255, 246, 237, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, #211d18, #0c0b0a);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.device-bar {
  display: block;
  width: 72px;
  height: 6px;
  margin: 0 auto 44px;
  border-radius: 999px;
  background: rgba(255, 246, 237, 0.22);
}

.device-shell strong { display: block; font-size: 1.8rem; }
.device-shell p { color: var(--muted); }
.progress-lines { display: grid; gap: 10px; margin-top: 36px; }
.progress-lines span { height: 11px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), rgba(255, 122, 28, 0.08)); }
.progress-lines span:nth-child(2) { width: 74%; }
.progress-lines span:nth-child(3) { width: 48%; }

.reader-preview {
  align-content: center;
  justify-items: center;
  text-align: center;
}
.paper-stack {
  position: relative;
  width: 210px;
  height: 230px;
  margin-bottom: 22px;
}
.paper-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 246, 237, 0.18);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035));
}
.paper-stack span:nth-child(1) { transform: translate(-20px, 18px) rotate(-6deg); }
.paper-stack span:nth-child(2) { transform: translate(14px, 8px) rotate(4deg); }
.paper-stack span:nth-child(3) { background: linear-gradient(160deg, rgba(255, 122, 28, 0.26), rgba(255, 255, 255, 0.04)); }
.reader-preview strong { font-size: 3rem; line-height: 1; }
.reader-preview p { color: var(--muted); }

.rule-panel { padding: clamp(22px, 4vw, 34px); }
.rule-panel p { margin-bottom: 24px; font-size: 1.08rem; }

.story-section {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 26px;
  align-items: start;
}
.story-copy {
  position: sticky;
  top: 100px;
  padding-right: 20px;
  font-size: 1.12rem;
}
.story-list { display: grid; gap: 14px; }
.story-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.story-item h2 { font-size: 1.35rem; }
.story-item p { margin-bottom: 0; }

.support-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 18px;
}
.support-card,
.support-topics,
.contact-main,
.contact-links { padding: 26px; }
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #17100b;
  background: var(--orange);
  font-weight: 950;
}
.support-card a,
.contact-main a:not(.btn) {
  color: var(--orange-2);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.support-topics ul { margin: 0 0 24px; padding-left: 20px; }
.support-topics li { margin-bottom: 10px; }
.contact-main span { display: block; color: var(--dim); margin-bottom: 8px; }
.contact-main p { margin-top: 20px; }
.contact-links { display: grid; gap: 8px; align-content: start; }
.contact-links a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.contact-links a:hover { color: var(--text); }

.legal-content { padding: clamp(22px, 4vw, 38px); }
.legal-content h2 { margin-top: 34px; font-size: 1.48rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--orange-2); }
.legal-meta { color: var(--dim); }

.site-footer {
  min-height: 88px;
  padding: 24px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer strong { display: block; color: var(--text); }
.site-footer p { margin: 4px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: fixed;
    inset: 76px 14px auto;
    display: grid;
    border-radius: 8px;
    padding: 10px;
    background: rgba(7, 7, 6, 0.97);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  body.nav-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 14px; }
  .home-hero,
  .page-hero.split,
  .product-hero,
  .product-showcase,
  .story-section,
  .support-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .home-visual { min-height: 340px; }
  .home-visual img { min-height: 340px; }
  .signature-strip { grid-template-columns: 1fr; }
  .feature-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-copy { position: static; padding-right: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .site-header { min-height: 68px; }
  .brand-mark { width: 32px; height: 32px; }
  .home-hero { padding-top: 38px; }
  .feature-mosaic { grid-template-columns: 1fr; }
  .product-card { min-height: auto; }
  .product-index { font-size: 3.4rem; }
  .action-row, .btn { width: 100%; }
  .support-card a, .contact-main a:not(.btn) { font-size: 1.08rem; }
}
