@font-face {
  font-family: "Tektur";
  src: url("assets/fonts/Tektur-Medium.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0f14;
  --ink-2: #111820;
  --ink-3: #19232c;
  --paper: #f4f0e8;
  --muted: #a9b4bd;
  --line: rgba(244, 240, 232, 0.18);
  --line-strong: rgba(244, 240, 232, 0.34);
  --amber: #ffb000;
  --teal: #56d7c8;
  --rose: #df6f68;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Instrument Sans", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(244, 240, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

a {
  color: inherit;
}

a,
button,
summary {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.topbar.is-scrolled {
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 15rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav a {
  min-height: 2.5rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 15, 20, 0.72);
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  border-color: var(--teal);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 38rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d1218;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("assets/brand/loop-map.png");
  background-position: center;
  background-size: cover;
  opacity: 0.86;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.46);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-family: "Tektur", "Instrument Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
summary {
  margin: 0;
  color: var(--paper);
  font-family: "Tektur", "Instrument Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  font-size: 4.8rem;
  line-height: 0.98;
}

h2 {
  font-size: 2.45rem;
  line-height: 1.06;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-dek {
  max-width: 31rem;
  margin-top: 1.15rem;
  color: #d5ddd8;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--amber);
  color: #11100b;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(244, 240, 232, 0.08);
  color: var(--paper);
}

.section {
  padding: 5.5rem 0;
}

.section-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.035);
}

.section-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.two-column,
.insight-layout,
.checklist-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3rem;
  align-items: start;
}

.copy-block,
.checklist {
  display: grid;
  gap: 1rem;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
  margin-bottom: 1.7rem;
}

.split-heading {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.split-heading > p {
  color: var(--teal);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-grid li,
.pattern-card,
.checklist,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 32, 0.86);
}

.step-grid li {
  min-height: 14rem;
  padding: 1rem;
}

.step-grid span {
  display: inline-flex;
  margin-bottom: 2.2rem;
  color: var(--teal);
  font-family: "Tektur", "Instrument Sans", sans-serif;
}

.step-grid h3,
.pattern-card h3 {
  margin-bottom: 0.65rem;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.pattern-tab {
  min-height: 2.55rem;
  padding: 0.58rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.pattern-tab:hover,
.pattern-tab.is-active {
  border-color: var(--amber);
  background: rgba(255, 176, 0, 0.12);
  color: var(--paper);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.pattern-card {
  min-height: 11rem;
  padding: 1rem;
}

.pattern-card[hidden] {
  display: none;
}

.insight-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-list li {
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--teal);
  background: rgba(86, 215, 200, 0.08);
  color: #d9e3df;
}

.checklist {
  padding: 1.2rem;
}

.checklist strong {
  color: var(--paper);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-size: 1rem;
}

.faq-list p {
  margin-top: 0.8rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p:first-child {
  color: var(--paper);
  font-family: "Tektur", "Instrument Sans", sans-serif;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 34rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .two-column,
  .insight-layout,
  .checklist-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .step-grid,
  .pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-backdrop {
    background-position: left center;
    opacity: 0.34;
  }

  .hero::after {
    background: rgba(11, 15, 20, 0.66);
  }

  .brand {
    width: 12rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-content {
    padding: 4.5rem 0;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-dek {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .step-grid,
  .pattern-grid {
    grid-template-columns: 1fr;
  }

  .step-grid li,
  .pattern-card {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}
