/* ==========================================================================
   Uncertainty Hub — landing page
   One theme, top to bottom: the dark engraving tone and warm parchment
   accent set by the hero image carry through every section and the mega
   footer, instead of switching to the app's cyan operating theme. Cyan
   lives only inside the framed product screenshot, where it belongs to
   the app being shown, not to the page around it.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* surfaces — deep, warm-neutral ink, not the app's blue-black */
  --bg-primary: #0B0A08;
  --bg-secondary: #100E0B;
  --bg-card: #17140F;
  --surface-soft: #1E1A14;
  --surface-muted: #262019;
  --border: #2B241B;
  --border-strong: #3A3123;
  --rule: #1C1712;

  /* text */
  --text-primary: #EDE7DA;
  --text-secondary: #A79C87;
  --text-muted: #7C7361;
  --on-accent: #1C1712;

  /* accent — warm parchment/gold, matching the hero's lighthouse beam
     and CTA button, used for every eyebrow, link-hover and highlight */
  --accent: #C9B892;
  --accent-strong: #EDE6D6;
  --accent-dim: rgba(201, 184, 146, 0.12);
  --accent-rgb: 201, 184, 146;

  /* semantic — reserved for the browser-chrome dots only */
  --success: #6FCF97;
  --danger: #E0796B;

  /* type — serif carries every heading (matches the hero mark), mono
     carries labels/eyebrows/data, sans carries body copy */
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --measure: 42rem;
  --parchment: #EDE6D6;
  --parchment-ink: #1C1712;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-strong); color: var(--on-accent);
  padding: 0.75rem 1.25rem; font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 0.85rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(var(--accent-rgb), 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.82rem; }
.arrow { transition: transform 0.15s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Hero — full-bleed engraving, wordmark baked into the image (top-left),
   headline and CTA row set bottom-right, right-aligned. No header/nav bar.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6,8,13,0.88) 0%, rgba(6,8,13,0.25) 42%, rgba(6,8,13,0.05) 65%),
    linear-gradient(100deg, rgba(6,8,13,0.35) 0%, rgba(6,8,13,0) 40%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 3rem 5vw 5.5rem;
  text-align: right;
  margin-left: auto;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.22;
  color: #F5F1E8;
  margin: 0 0 1.75rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.55);
}
.hero-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-cta.center { justify-content: center; }
.hero-cta .btn-primary {
  background: var(--parchment);
  color: var(--parchment-ink);
  box-shadow: none;
}
.hero-cta .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(237, 230, 214, 0.4); }
.hero-cta .btn-ghost {
  border-color: rgba(245, 241, 232, 0.28);
  color: #F5F1E8;
  background: rgba(6, 8, 13, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-cta .btn-ghost:hover { border-color: rgba(245, 241, 232, 0.6); color: #fff; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(245, 241, 232, 0.75);
  background: rgba(6, 8, 13, 0.4);
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-secondary); }
.section-head { max-width: var(--measure); margin-bottom: 3rem; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: 1rem; }
.section-sub { color: var(--text-secondary); font-size: 1.02rem; }
.center { text-align: center; }

/* ── Screen overview ── */
.browser-frame {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.65), 0 0 0 1px rgba(var(--accent-rgb), 0.06);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: #EC4899; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #2DD4BF; }
.browser-url {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  flex: 1;
  max-width: 420px;
}
.browser-body { line-height: 0; background: var(--bg-primary); }
.overview-caption {
  text-align: center;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Level grid ── */
.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.level-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.level-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}
.level-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  border: 1px solid var(--accent-dim);
  background: var(--accent-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}
.level-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.level-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.level-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.level-card p:last-child { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent-strong);
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; }
.feature-card em { color: var(--text-muted); font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; }

/* ── Projects ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.project-col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.project-col li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.project-col li:last-child { border-bottom: none; }

/* ── Framework strip ── */
.framework-strip { padding: 3.25rem 0; text-align: center; }
.framework-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.framework-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.framework-badges span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 1.75rem 3rem;
}
.footer-brand { flex: 0 0 auto; }
.footer-logo { height: 46px; width: auto; margin-bottom: 0.85rem; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 3.5rem;
  flex: 1;
  justify-content: center;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.88rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-strong); }

.footer-social { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.footer-social a:hover { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-dim); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 1.75rem 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap: 2.25rem; }
  .footer-links { justify-content: flex-start; gap: 2.5rem; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero { min-height: 100svh; justify-content: center; }
  .hero-content { max-width: 100%; padding: 2.5rem 1.25rem 3rem; text-align: center; margin: 0; }
  .hero-cta { justify-content: center; }

  .level-grid, .feature-grid, .project-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
