/* ── Reset ──────────────────────────────────────────── */

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

/* ── Fonts ──────────────────────────────────────────── */

@font-face {
  font-family: "TT Norms Pro Mono";
  src: url("../fonts/TTNormsProMono-Rg.woff2") format("woff2"),
       url("../fonts/TTNormsProMono-Rg.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms Pro Mono";
  src: url("../fonts/TTNormsProMono-Md.woff2") format("woff2"),
       url("../fonts/TTNormsProMono-Md.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms Pro Mono";
  src: url("../fonts/TTNormsProMono-DmBd.woff2") format("woff2"),
       url("../fonts/TTNormsProMono-DmBd.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OCR A Std";
  src: url("../fonts/OCRAStd.woff2") format("woff2"),
       url("../fonts/OCRAStd.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ──────────────────────────────────── */

:root {
  --blue:      #113ef5;
  --blue-dark: #050c29;
  --blue-deep: #050c29;
  --blue-pale: #e8eeff;
  --blue-tint: #f0f3ff;
  --white:     #ffffff;
  --off-white: #f7f8fc;
  --border:    #dde2f5;
  --border2:   #c4cdf0;
  --text:      #0d1440;
  --muted:     #6672a8;
  --muted2:    #8892c4;
  --bg:        #f5f7ff;
  --mono:      'TT Norms Pro Mono', 'OCR A Std', monospace;
  --serif:     'OCR A Std', Helvetica, serif;
}

/* ── Base ───────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Page body — scrolls over fixed footer ──────────── */

.page-body {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.page-body > * {
  pointer-events: auto;
}

/* ── Layout primitives ──────────────────────────────── */

section {
  padding: 80px 2.5rem;
  background: var(--bg);
}

.section-inner {
  max-width: 1199px;
  margin: 0 auto;
}

.section-label {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 480px;
  line-height: 1.8;
}

/* ── Type scale ─────────────────────────────────────── */

h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  color: var(--white);
}

h1 .accent {
  font-style: italic;
  opacity: 0.75;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: var(--text);
}

/* ── Nav ────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22.5px;
  height: 54px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo::after {
  content: 'v1.0';
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 3px 6px;
  letter-spacing: 0.02em;
  margin-left: 0.8rem;
}

.nav-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-product {
  font-family: Arial Black, sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.nav-links a {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-dl {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 6px 16px;
  font-weight: 700 !important;
  font-size: 12px !important;
}

.nav-dl:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 36.5px;
  padding: 8px 18px;
  border: 1px solid;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: lowercase;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.btn:focus-visible,
.btn:focus {
  outline: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue-dark);
  box-shadow: 2px 2px 0 var(--blue-dark), 3px 3px 0 var(--blue-dark), 4px 4px 0 var(--blue-dark);
}

.btn-primary:hover { color: var(--white); }

.btn-primary:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue-dark);
  box-shadow: 2px 2px 0 var(--blue-dark), 3px 3px 0 var(--blue-dark), 4px 4px 0 var(--blue-dark);
}

.btn-secondary:hover { color: var(--blue); }

.btn-secondary:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  padding: 90px 2.5rem 80px;
}

/* Dot-grid texture on blue */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Keeps HTML refs intact without visual impact */
.hero-glow { display: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.5s 0.1s both;
}

.hero-content h1 { animation: fadeUp 0.5s 0.2s both; }

.hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 400px;
  line-height: 1.9;
  margin-bottom: 2.4rem;
  animation: fadeUp 0.5s 0.3s both;
}

.hero-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  animation: fadeUp 0.5s 0.4s both;
}

.hero-meta {
  margin-top: 1.4rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
  animation: fadeUp 0.5s 0.5s both;
}

.hero-visual {
  animation: fadeUp 0.6s 0.35s both;
}

/* ── App window chrome ──────────────────────────────── */

.app-window {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 80px rgba(26, 59, 204, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.window-titlebar {
  background: #efefef;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #ddd;
}

.dot {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28ca41; }

.window-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: #888;
  font-weight: 500;
  margin-left: -44px;
}

.app-window > img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Animation ──────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Features ────────────────────────────────────────── */

.feature-showcase {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
  margin-top: 2.5rem;
  margin-bottom: 16px;
}

.feature-showcase-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.2s;
}

.feature-showcase-card:hover { border-color: var(--border2); }

.feature-showcase-body h3 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-showcase-body p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.feature-showcase-visual {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-showcase-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--border2); }

.feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
}

.feature-card h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Install ─────────────────────────────────────────── */

#install { background: var(--off-white); }

.steps {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  padding-top: 2px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.step-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.step-body code {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1px 5px;
  font-size: 13px;
  color: var(--blue);
  font-family: var(--mono);
}

.step-body kbd {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1px 6px;
  font-size: 13px;
  font-family: var(--mono);
}

.step-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.code-block {
  position: relative;
  background: var(--blue-deep);
  padding: 1rem 1.3rem;
  margin-top: 0.9rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #7dd3fc;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.copy-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn.copied {
  color: #86efac;
  border-color: #86efac;
}

.warn-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  padding: 1.3rem 1.5rem;
  margin-top: 2.4rem;
}

.warn-box .code-block { background: #1c1403; }

.warn-box-head {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.warn-box-body {
  font-size: 13px;
  color: #78350f;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.warn-footnote {
  font-size: 13px;
  color: #a16207;
  margin-top: 0.8rem;
  line-height: 1.7;
}

/* ── Download CTA ────────────────────────────────────── */

.section-download {
  text-align: center;
}

.section-download .section-label {
  margin-bottom: 0.5rem;
}

.section-desc-center {
  font-size: 13px;
  color: var(--muted);
  margin: 0.6rem auto 2rem;
  max-width: 440px;
  line-height: 1.8;
}

.cta-meta {
  margin-top: 1.4rem;
  font-size: 13px;
  color: var(--muted2);
  letter-spacing: 0.03em;
}

/* ── Footer — fixed, reveals on scroll ──────────────── */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  background: var(--blue);
}

.footer-top {
  max-width: 1199px;
  margin: 0 auto;
  padding: 3rem 22.5px 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.footer-col-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; }

.footer-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.4rem;
}

.footer-wordmark-wrap {
  overflow: hidden;
  line-height: 0;
}

.footer-wordmark {
  display: block;
  color: rgba(255, 255, 255, 0.12);
  line-height: 0;
}

.footer-wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .feature-showcase {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
}

@media (max-width: 860px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  section { padding: 60px 1.4rem; }
  .hide-mobile { display: none; }
  nav { padding: 0 1.2rem; }

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

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top  { padding: 2.4rem 1.4rem 1.6rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.4rem; }
}
