@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #071126;
  --ink-2: #0d1d3b;
  --paper: #f5f1e8;
  --paper-2: #fffdf8;
  --orange: #ff6b2c;
  --orange-hot: #ff8a3d;
  --blue: #51b9ff;
  --white: #fffdf8;
  --muted: #aab6ca;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(7, 17, 38, 0.14);
  --shadow: 0 34px 90px rgba(2, 8, 21, 0.38);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 79% 9%, rgba(49, 105, 194, 0.3), transparent 28rem),
    radial-gradient(circle at 20% 60%, rgba(255, 107, 44, 0.11), transparent 34rem),
    var(--ink);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
}

.skip-link:focus { top: 12px; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--orange-hot);
  font: 500 0.77rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
}

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

h1, h2 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.35rem, 4.7vw, 4.9rem); }
h3 { font-size: 1.14rem; line-height: 1.3; }

.lede {
  max-width: 680px;
  color: #c7d0df;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.accent { color: var(--orange); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(7, 17, 38, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 400 1.02rem/1 "Archivo Black", sans-serif;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 7px 20px rgba(0,0,0,.24);
}

.nav-links { display: flex; align-items: center; gap: 29px; }
.nav-links a {
  color: #dbe2ed;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a:hover { color: var(--orange-hot); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: white;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--orange);
  color: #160b07;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 107, 44, 0.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--orange-hot);
  box-shadow: 0 16px 36px rgba(255, 107, 44, 0.32);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.04);
  color: var(--white);
  box-shadow: none;
}
.button-secondary:hover { background: rgba(255,255,255,.1); }
.button-small { min-height: 42px; padding-inline: 16px; font-size: .84rem; }

.hero {
  position: relative;
  min-height: 840px;
  padding: 98px 0 126px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 88px;
  right: -7vw;
  width: 53vw;
  height: 53vw;
  border: 1px solid rgba(81,185,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 74px rgba(81,185,255,.025), 0 0 0 148px rgba(81,185,255,.018);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 76px;
}

.hero-grid > * { min-width: 0; }

.hero-copy { padding-bottom: 30px; }
.hero-copy h1 { max-width: 720px; margin-bottom: 28px; }
.hero-copy .lede { max-width: 580px; }

.platform-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #dce4f0;
  font-size: .76rem;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.platform-chip:hover {
  border-color: rgba(255,107,44,.55);
  background: rgba(255,107,44,.1);
}

.platform-chip-mark,
.platform-monogram {
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--ink);
  font: 500 .62rem/1 "DM Mono", monospace;
}

.platform-chip-mark {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 34px 0 22px; }

.store-note {
  color: var(--muted);
  font: 400 .78rem/1.5 "DM Mono", monospace;
}

.apple-mark { width: 20px; height: 24px; }

.hero-visual { position: relative; min-height: 590px; }

.hero-icon {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 20px;
  width: 116px;
  height: auto;
  border-radius: 27px;
  transform: rotate(5deg);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  animation: float 5s ease-in-out infinite;
}

.screen-frame {
  position: absolute;
  width: 112%;
  left: -4%;
  top: 108px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 23px;
  background: rgba(255,255,255,.075);
  box-shadow: var(--shadow);
  transform: none;
}

.screen-frame::before {
  content: "";
  position: absolute;
  inset: -48px -28px;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(81,185,255,.2), transparent 66%);
  filter: blur(14px);
}

.screen-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 14px;
}

.script-card {
  position: absolute;
  z-index: 4;
  left: -30px;
  bottom: -13px;
  width: 310px;
  padding: 22px 24px;
  border: 1px solid rgba(7,17,38,.11);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  transform: rotate(-3deg);
  font: 400 .74rem/1.8 "DM Mono", monospace;
}

.script-card strong { display: block; text-align: center; margin: 5px 0; }
.script-card .orange-note { color: #d9420a; font-weight: 500; }

.proof-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item { padding: 27px 20px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item b { display: block; margin-bottom: 3px; font-size: 1rem; }
.proof-item span { color: var(--muted); font-size: .82rem; }

.platform-bridge {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(360px, 1.4fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(81,185,255,.18);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(81,185,255,.08), rgba(255,255,255,.035));
}

.platform-bridge-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.platform-monogram {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 9px 22px rgba(255,107,44,.17);
}

.platform-bridge-brand small,
.platform-bridge-brand strong { display: block; }
.platform-bridge-brand small { color: var(--muted); font: 400 .63rem/1.4 "DM Mono", monospace; }
.platform-bridge-brand strong { margin-top: 2px; font-size: .95rem; }
.platform-bridge p { margin: 0; color: #b9c5d6; font-size: .83rem; line-height: 1.6; }
.platform-bridge p strong { color: white; }
.platform-bridge > a { color: var(--orange-hot); font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.platform-bridge > a:hover { text-decoration: underline; }

.section { padding: 128px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
.section-head h2 { max-width: 760px; margin-bottom: 0; }
.section-head .lede { max-width: 420px; margin-bottom: 3px; }

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 70px;
  align-items: center;
  padding: 70px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 34px;
  background:
    linear-gradient(125deg, rgba(255,107,44,.13), transparent 42%),
    rgba(255,255,255,.045);
}

.download-panel::after {
  content: "FREE";
  position: absolute;
  right: -18px;
  bottom: -76px;
  color: rgba(255,255,255,.035);
  font: 400 12rem/1 "Archivo Black", sans-serif;
}

.download-product { display: flex; align-items: center; gap: 28px; position: relative; z-index: 1; }
.download-product img {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 23px 50px rgba(0,0,0,.3);
}
.download-product h2 { font-size: clamp(2.2rem, 4vw, 4rem); margin-bottom: 12px; }
.meta-list { list-style: none; margin: 21px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.meta-list li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #cfd8e6; font-size: .78rem; }

.download-cta { position: relative; z-index: 2; }
.download-cta p { color: #ccd5e3; font-size: 1.08rem; }
.download-cta .button { width: 100%; margin-top: 13px; }

.gallery-wrap { overflow: hidden; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80vw, 780px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2)) 32px;
  scrollbar-color: var(--orange) rgba(255,255,255,.07);
}

.shot {
  position: relative;
  margin: 0;
  scroll-snap-align: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.shot figcaption { padding: 18px 22px; color: #c8d2e1; font-size: .9rem; }
.shot figcaption b { color: white; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: steps;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  min-height: 325px;
  padding: 34px 28px 42px;
  counter-increment: steps;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; }
.step::before {
  content: "0" counter(steps);
  display: block;
  margin-bottom: 65px;
  color: var(--orange);
  font: 500 .8rem/1 "DM Mono", monospace;
}
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); font-size: .91rem; }
.step::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
}

.paper-section {
  color: var(--ink);
  background: var(--paper);
}

.paper-section .eyebrow { color: #cc3d09; }
.paper-section .lede { color: #4e596a; }

.guide-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.guide-card {
  grid-column: span 4;
  min-height: 310px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: rgba(255,255,255,.46);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.guide-card:nth-child(1), .guide-card:nth-child(5) { grid-column: span 6; }
.guide-card:hover { transform: translateY(-5px); background: white; box-shadow: 0 20px 44px rgba(24,29,39,.1); }
.guide-card-art {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  margin: -30px -30px 26px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 19px 19px 0 0;
  background: var(--ink);
}
.guide-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-card .tag { color: #bd3d10; font: 500 .72rem/1.3 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.guide-card h3 { margin: 20px 0 12px; font: 400 clamp(1.45rem, 2.5vw, 2.1rem)/1.05 "Archivo Black", sans-serif; letter-spacing: -.035em; }
.guide-card p { color: #586272; font-size: .9rem; }
.guide-card .learn { margin-top: auto; font-weight: 800; }
.guide-card .learn span { display: inline-block; transition: transform .2s ease; }
.guide-card:hover .learn span { transform: translateX(5px); }

.guide-library-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.guide-library-link p { max-width: 520px; margin: 0; color: #586272; }
.button-dark { color: var(--white); background: var(--ink); box-shadow: none; }
.button-dark:hover { color: var(--white); background: #13264a; }

.faq-list { max-width: 960px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 28px 58px 28px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 2vw, 1.27rem);
  font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 7px; top: 22px; color: var(--orange); font: 400 1.9rem/1 "DM Mono", monospace; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { max-width: 760px; padding: 0 0 30px; color: var(--muted); }
.faq-answer a { display: inline-block; margin-top: 9px; color: var(--orange-hot); font-weight: 800; }

.final-cta { padding: 95px 0; }
.cta-card {
  position: relative;
  padding: 90px 60px;
  overflow: hidden;
  border-radius: 32px;
  color: var(--ink);
  background: var(--orange);
  text-align: center;
}
.cta-card::before, .cta-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 2px solid rgba(7,17,38,.16);
  transform: rotate(45deg);
}
.cta-card::before { left: -105px; top: -105px; }
.cta-card::after { right: -105px; bottom: -105px; }
.cta-card h2 { max-width: 860px; margin: 0 auto 22px; }
.cta-card p { max-width: 560px; margin: 0 auto 31px; color: #422215; }
.cta-card .button { background: var(--ink); color: var(--white); box-shadow: none; }
.cta-card .button:hover { background: #112750; }

.site-footer { padding: 58px 0 35px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; }
.footer-brand p { max-width: 330px; margin-top: 17px; color: var(--muted); font-size: .9rem; }
.footer-col h3 { color: var(--muted); font: 500 .72rem/1.2 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; margin: 11px 0; color: #d6deeb; text-decoration: none; font-size: .88rem; }
.footer-col a:hover { color: var(--orange-hot); }
.footer-base { display: flex; justify-content: space-between; gap: 30px; padding-top: 38px; margin-top: 38px; border-top: 1px solid var(--line); color: #7f8da4; font-size: .76rem; }

/* Guide pages */
.guide-hero { padding: 96px 0 72px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { text-decoration: none; }
.guide-hero h1 { max-width: 1000px; font-size: clamp(3rem, 6.5vw, 6rem); margin-bottom: 27px; }
.guide-hero .lede { max-width: 780px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 28px; color: var(--muted); font: 400 .76rem/1.5 "DM Mono", monospace; }
.guide-art {
  margin: 0 auto 72px;
}
.guide-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 740px) 280px;
  gap: 75px;
  align-items: start;
  padding-bottom: 120px;
}
.article {
  color: var(--ink);
  background: var(--paper-2);
  border-radius: 7px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 28px 70px rgba(0,0,0,.2);
}
.article h2 { margin: 65px 0 22px; font-size: clamp(2rem, 4vw, 3.3rem); }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 38px 0 12px; font-size: 1.25rem; }
.article p, .article li { color: #3f4857; }
.article a { color: #ba3507; font-weight: 700; }
.article blockquote { margin: 38px 0; padding: 24px 28px; border-left: 5px solid var(--orange); background: #f3ecdf; font-size: 1.06rem; }
.article ol, .article ul { padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article .inline-cta { margin: 52px -18px 5px; padding: 34px; border-radius: 16px; background: var(--ink); color: white; }
.article .inline-cta h3 { margin-top: 0; color: white; font: 400 1.8rem/1.08 "Archivo Black", sans-serif; }
.article .inline-cta p { color: #bfc9d8; }

.toc { position: sticky; top: 108px; }
.toc h2 { font: 500 .75rem/1.2 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.toc a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: #bdc7d6; font-size: .84rem; text-decoration: none; }
.toc a:hover { color: var(--orange-hot); }
.toc .button { margin-top: 24px; color: var(--ink); }

.related-guides { padding: 90px 0; color: var(--ink); background: var(--paper); }
.related-guides h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.related-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.related-heading p, .related-heading h2 { margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card {
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.44);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.related-card:hover { transform: translateY(-4px); background: white; box-shadow: 0 16px 38px rgba(24,29,39,.1); }
.related-card span { color: #bd3d10; font: 500 .65rem/1.3 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.related-card h3 { margin: 24px 0 10px; font: 400 1.35rem/1.08 "Archivo Black", sans-serif; letter-spacing: -.025em; }
.related-card p { color: #586272; font-size: .82rem; }
.related-card b { margin-top: auto; font-size: .82rem; }
.library-return { display: inline-block; margin-top: 30px; color: #a83209; font-weight: 850; }

/* Guide library */
.library-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 13vw, 180px) 0 clamp(90px, 11vw, 150px);
  border-bottom: 1px solid var(--line);
}
.library-hero::after {
  content: attr(data-count);
  position: absolute;
  right: max(3vw, calc((100vw - var(--max)) / 2));
  bottom: -0.24em;
  z-index: -1;
  color: rgba(255,255,255,.025);
  font: 400 clamp(15rem, 35vw, 37rem)/.8 "Archivo Black", sans-serif;
  letter-spacing: -.12em;
}
.library-hero h1 { max-width: 1050px; margin: 24px 0 50px; font-size: clamp(4rem, 9vw, 8.5rem); }
.library-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(35px, 8vw, 120px); align-items: end; max-width: 1060px; }
.library-intro .lede { margin: 0; color: #d7deea; }
.library-intro > p:last-child { margin: 0; color: var(--muted); }
.library-directory { padding: 30px 0 115px; color: var(--ink); background: var(--paper); }
.library-group { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding-top: 85px; }
.library-group-head { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: 26px; margin-bottom: 34px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.library-group-head p { margin: 0; color: #bd3d10; font: 500 .74rem/1 "DM Mono", monospace; }
.library-group-head h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); }
.guide-library-grid .guide-card,
.guide-library-grid .guide-card:nth-child(1),
.guide-library-grid .guide-card:nth-child(5) { grid-column: span 4; min-height: 285px; }
.guide-library-grid .guide-card.featured { grid-column: span 8; background: var(--orange); }
.guide-library-grid .guide-card.featured .guide-card-art { aspect-ratio: 2 / 1; }
.guide-library-grid .guide-card.featured .tag { color: #5c220d; }
.guide-library-grid .guide-card.featured p { max-width: 520px; color: #4e281a; }

@keyframes float {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 950px) {
  .hero { min-height: auto; padding-top: 75px; }
  .hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .hero-visual { min-height: 570px; width: min(100%, 720px); margin-inline: auto; }
  .screen-frame { width: 104%; left: -2%; }
  .download-panel { grid-template-columns: 1fr; padding: 50px; gap: 42px; }
  .platform-bridge { grid-template-columns: 1fr auto; }
  .platform-bridge p { grid-column: 1 / -1; grid-row: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .guide-card, .guide-card:nth-child(1), .guide-card:nth-child(5) { grid-column: span 6; }
  .guide-library-grid .guide-card,
  .guide-library-grid .guide-card:nth-child(1),
  .guide-library-grid .guide-card:nth-child(5),
  .guide-library-grid .guide-card.featured { grid-column: span 6; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2; }
  .article-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 66px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0a1730;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .hero { padding-top: 58px; }
  .hero-visual { min-height: 440px; }
  .hero-icon { width: 82px; border-radius: 20px; }
  .screen-frame { top: 88px; transform: none; }
  .script-card { left: 0; bottom: 0; width: 250px; padding: 16px; font-size: .62rem; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 92px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 42px; }
  .download-panel { padding: 35px 26px; }
  .platform-bridge { grid-template-columns: 1fr; gap: 17px; }
  .platform-bridge p { grid-column: auto; grid-row: auto; }
  .download-product { align-items: flex-start; }
  .download-product img {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }
  .gallery { grid-auto-columns: 88vw; }
  .guide-card, .guide-card:nth-child(1), .guide-card:nth-child(5) { grid-column: 1 / -1; min-height: 270px; }
  .guide-library-link { align-items: flex-start; flex-direction: column; }
  .library-intro { grid-template-columns: 1fr; gap: 24px; }
  .guide-library-grid .guide-card,
  .guide-library-grid .guide-card:nth-child(1),
  .guide-library-grid .guide-card:nth-child(5),
  .guide-library-grid .guide-card.featured { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 68px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .brand span { display: none; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 4rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .store-note { max-width: 100%; overflow-wrap: anywhere; }
  .hero-visual { min-height: 350px; }
  .script-card { display: none; }
  .proof-item { padding: 21px 14px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .download-product { display: block; }
  .download-product img { margin-bottom: 24px; }
  .article { padding: 26px 20px; }
  .article .inline-cta { margin-inline: 0; padding: 26px; }
  .library-group { width: min(calc(100% - 26px), var(--max)); }
  .library-group-head { grid-template-columns: 42px 1fr; gap: 12px; }
  .related-card { min-height: 220px; }
}
