:root {
  color-scheme: dark;
  --ink: #f5eddf;
  --ink-soft: #c6bcaf;
  --ink-dim: #938d83;
  --bg: #080d0e;
  --bg-deep: #05090a;
  --panel: rgba(16, 23, 24, 0.92);
  --panel-strong: rgba(21, 30, 30, 0.98);
  --line: rgba(245, 237, 223, 0.12);
  --line-bright: rgba(245, 237, 223, 0.2);
  --ember: #f29b52;
  --ember-hot: #ffc06f;
  --copper: #b96738;
  --teal: #65b6a8;
  --moss: #8e9e72;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --wrap: min(1180px, calc(100vw - 40px));
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 155, 82, 0.12), transparent 28rem),
    linear-gradient(180deg, #0b1112 0, var(--bg) 38%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.14;
  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='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.19'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ember-hot);
  outline-offset: 4px;
}

::selection {
  background: var(--ember);
  color: #1c1008;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--wrap);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ember-hot);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2,
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.04rem, 4.08vw, 4.15rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.87rem, 3.83vw, 3.74rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.section-copy,
.lede {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
}

.page-shell {
  min-height: 100svh;
}

.features-page {
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.26) 0, rgba(5, 8, 9, 0.56) 100%),
    url("/assets/features-hearth.webp") center top / cover no-repeat fixed,
    linear-gradient(180deg, #081011 0, #060a0b 100%);
}

.features-shell {
  position: relative;
}

.features-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 192, 111, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(8, 12, 13, 0.18) 0, rgba(8, 12, 13, 0.42) 100%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(8, 13, 14, 0.84);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: var(--wrap);
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 192, 111, 0.44);
  border-radius: 9px 9px 12px 12px;
  background: linear-gradient(150deg, rgba(242, 155, 82, 0.26), rgba(242, 155, 82, 0.03));
  box-shadow: inset 0 -5px 14px rgba(242, 155, 82, 0.18), 0 0 24px rgba(242, 155, 82, 0.16);
}

.brand-mark-svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(242, 155, 82, 0.18));
}

.brand-flame {
  width: 9px;
  height: 14px;
  border-radius: 80% 20% 65% 35%;
  transform: rotate(38deg);
  background: var(--ember-hot);
  box-shadow: 0 0 12px var(--ember);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a {
  padding: 11px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 740;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 192, 111, 0.48);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ember-hot), var(--ember));
  box-shadow: 0 9px 28px rgba(185, 103, 56, 0.2);
  color: #241308;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-nav .nav-cta,
.desktop-nav .nav-cta:hover,
.desktop-nav .nav-cta[aria-current="page"] {
  background: linear-gradient(180deg, var(--ember-hot), var(--ember));
  border-color: rgba(255, 192, 111, 0.48);
  color: #241308;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(185, 103, 56, 0.34);
}

.button.secondary,
.button.ghost {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: var(--ink);
  text-decoration: none;
}

.button.secondary:hover,
.button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.button.small {
  min-height: 39px;
  padding-inline: 14px;
  font-size: 0.78rem;
}

.menu-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.mobile-nav {
  position: fixed;
  top: 74px;
  right: max(20px, calc((100vw - var(--wrap)) / 2));
  z-index: 48;
  display: none;
  width: min(320px, calc(100vw - 30px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 18, 19, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-nav.open {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  padding: 13px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 106px 0 76px;
  display: grid;
  align-items: center;
}

.page-hero {
  padding: 106px 0 84px;
}

.features-hero {
  padding-bottom: 48px;
}

.features-hero-copy {
  max-width: 880px;
}

.features-hero-copy .hero-lead {
  max-width: 720px;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
}

.hero-copy,
.page-hero-copy {
  position: relative;
  z-index: 2;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-line {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--ink-dim);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-dot,
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(101, 182, 168, 0.1), 0 0 12px var(--teal);
}

.hero-visual,
.page-visual {
  position: relative;
  min-height: clamp(460px, 58vw, 660px);
  isolation: isolate;
}

.hero-visual::before,
.page-visual::before {
  content: "";
  position: absolute;
  inset: 3% -8% -8% 3%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 155, 82, 0.18), transparent 65%);
  filter: blur(8px);
}

.hero-frame,
.page-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 46% 46% 24px 24px / 22% 22% 24px 24px;
  background:
    linear-gradient(180deg, rgba(7, 11, 12, 0), rgba(7, 11, 12, 0.1)),
    linear-gradient(135deg, rgba(242, 155, 82, 0.06), rgba(101, 182, 168, 0.03)),
    radial-gradient(circle at 56% 44%, rgba(255, 192, 111, 0.22), transparent 26%),
    url("/assets/hearth-core.webp") center / cover no-repeat,
    radial-gradient(circle at 50% 54%, #9b4d27, #182626 28%, #081011 68%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 192, 111, 0.05);
  filter: brightness(1.12) contrast(1.1) saturate(1.12);
}

.hero-frame::after,
.page-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 10, 0) 0, rgba(5, 9, 10, 0.28) 100%);
  pointer-events: none;
}

.about-frame {
  background:
    linear-gradient(180deg, rgba(7, 11, 12, 0), rgba(7, 11, 12, 0.08)),
    linear-gradient(135deg, rgba(242, 155, 82, 0.05), rgba(101, 182, 168, 0.02)),
    radial-gradient(circle at 58% 44%, rgba(255, 192, 111, 0.16), transparent 28%),
    url("/assets/about-hearth.webp") center / cover no-repeat,
    radial-gradient(circle at 50% 54%, #9b4d27, #182626 28%, #081011 68%);
  filter: brightness(1.08) contrast(1.08) saturate(1.08);
}

.demo-frame {
  background:
    linear-gradient(180deg, rgba(7, 11, 12, 0), rgba(7, 11, 12, 0.08)),
    linear-gradient(135deg, rgba(242, 155, 82, 0.05), rgba(101, 182, 168, 0.03)),
    radial-gradient(circle at 52% 42%, rgba(255, 192, 111, 0.18), transparent 26%),
    url("/assets/demo-hearth.webp") center / cover no-repeat,
    radial-gradient(circle at 50% 54%, #9b4d27, #182626 28%, #081011 68%);
  filter: brightness(1.06) contrast(1.08) saturate(1.08);
}

.self-hosting-frame {
  background:
    linear-gradient(180deg, rgba(7, 11, 12, 0), rgba(7, 11, 12, 0.09)),
    linear-gradient(135deg, rgba(242, 155, 82, 0.04), rgba(101, 182, 168, 0.03)),
    radial-gradient(circle at 42% 38%, rgba(255, 192, 111, 0.14), transparent 26%),
    url("/assets/self-hosting-hearth.webp") center / cover no-repeat,
    radial-gradient(circle at 50% 54%, #9b4d27, #182626 28%, #081011 68%);
  filter: brightness(1.04) contrast(1.08) saturate(1.04);
}

.developers-frame {
  background:
    linear-gradient(180deg, rgba(7, 11, 12, 0), rgba(7, 11, 12, 0.08)),
    linear-gradient(135deg, rgba(242, 155, 82, 0.04), rgba(101, 182, 168, 0.03)),
    radial-gradient(circle at 62% 44%, rgba(255, 192, 111, 0.16), transparent 26%),
    url("/assets/developers-hearth.webp") center / cover no-repeat,
    radial-gradient(circle at 50% 54%, #9b4d27, #182626 28%, #081011 68%);
  filter: brightness(1.04) contrast(1.08) saturate(1.05);
}

.download-frame {
  background:
    linear-gradient(180deg, rgba(7, 11, 12, 0), rgba(7, 11, 12, 0.07)),
    linear-gradient(135deg, rgba(242, 155, 82, 0.04), rgba(101, 182, 168, 0.02)),
    radial-gradient(circle at 48% 44%, rgba(255, 192, 111, 0.16), transparent 26%),
    url("/assets/download-hearth.webp") center / cover no-repeat,
    radial-gradient(circle at 50% 54%, #9b4d27, #182626 28%, #081011 68%);
  filter: brightness(1.06) contrast(1.08) saturate(1.04);
}

.system-pill,
.glass-card {
  position: absolute;
  z-index: 3;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(11, 17, 18, 0.79);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(13px);
}

.system-pill.top,
.glass-card.top {
  top: 10%;
  right: -4%;
}

.system-pill.bottom,
.glass-card.bottom {
  bottom: 8%;
  left: -7%;
}

.pill-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--ink-dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill-value {
  font-family: var(--display);
  font-size: 1.12rem;
}

.tiny-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 26px;
  margin-top: 9px;
}

.tiny-bars i {
  flex: 1;
  min-width: 7px;
  border-radius: 2px;
  background: linear-gradient(var(--ember-hot), var(--copper));
  opacity: 0.8;
}

.section {
  padding: 110px 0;
}

.section.compact {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 44px;
}

.grid-2,
.grid-3,
.grid-4,
.feature-grid,
.pillar-grid,
.page-grid {
  display: grid;
  gap: 18px;
}

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

.grid-3,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.pillar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.feature-card,
.panel,
.cta-band,
.page-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.features-page .feature-card,
.features-page .panel {
  background: linear-gradient(180deg, rgba(9, 14, 15, 0.72), rgba(9, 14, 15, 0.58));
  backdrop-filter: blur(8px);
}

.demo-intro-panel h2 {
  font-size: clamp(1.65rem, 3.375vw, 3.3rem);
}

.card p,
.feature-card p,
.panel p,
.page-panel p {
  color: var(--ink-soft);
}

.feature-card ul,
.panel ul,
.stack-list,
.check-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card li,
.panel li,
.stack-list li,
.check-list li {
  margin-top: 10px;
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
}

.feature-card li::before,
.panel li::before,
.stack-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ember-hot), var(--ember));
  box-shadow: 0 0 0 4px rgba(242, 155, 82, 0.08);
}

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

.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.stat-value {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.stat-label {
  color: var(--ink-dim);
  font-size: 0.84rem;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.route-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.route-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.route-card span {
  color: var(--ink-soft);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.flow-card p {
  color: var(--ink-soft);
}

.flow-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ember-hot);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band p {
  max-width: 680px;
  margin-bottom: 0;
}

.cta-actions {
  min-width: 240px;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.tour-next {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.tour-next-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tour-next-copy {
  max-width: 760px;
}

.tour-next-copy p {
  margin-bottom: 0;
}

.tour-next-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ember-hot);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tour-next-title {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1;
}

.tour-next-note {
  color: var(--ink-soft);
}

.footer-note {
  color: var(--ink-dim);
  font-size: 0.86rem;
}

footer {
  padding: 58px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 10, 0.46);
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.footer-row p {
  margin-bottom: 0;
  color: var(--ink-dim);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-brand .brand-mark-svg {
  width: 24px;
  height: 24px;
}

.footer-description {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink-soft) !important;
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  margin: 4px 0 12px;
}

.footer-meta a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--ember-hot);
}

.footer-legal {
  text-align: right;
  color: var(--ink-dim) !important;
  font-size: 0.76rem;
  line-height: 1.5;
}

.footer-legal a {
  color: var(--ink-soft);
}

.hero-card-stack {
  position: absolute;
  left: 0%;
  right: auto;
  bottom: 0%;
  width: min(420px, 82%);
  display: grid;
  gap: 12px;
  z-index: 3;
}

.hero-mini-card {
  text-align: left;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(9, 14, 15, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(13px);
}

.hero-mini-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.hero-kicker {
  color: var(--ink-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 20px;
  border-left: 2px solid rgba(255, 192, 111, 0.34);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 255, 255, 0.025);
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ember-hot);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {

  .hero-grid,
  .page-hero-grid,
  .grid-4,
  .pillar-grid,
  .grid-3,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding-top: 106px;
  }

  .hero-grid,
  .page-hero-grid,
  .grid-2,
  .page-grid,
  .flow-grid,
  .route-grid,
  .stat-strip,
  .grid-3,
  .feature-grid,
  .grid-4,
  .pillar-grid,
  .cta-band,
  .tour-next-row,
  .footer-row,
  .section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-visual,
  .page-visual {
    min-height: 460px;
    width: 100%;
  }

  .system-pill.top,
  .glass-card.top {
    right: 3%;
  }

  .system-pill.bottom,
  .glass-card.bottom {
    left: 3%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .shell {
    width: min(100vw - 24px, 1180px);
  }

  .hero,
  .page-hero,
  .section {
    padding-bottom: 72px;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .page-actions .button {
    width: 100%;
  }

  .hero-visual,
  .page-visual {
    min-height: 380px;
  }

  .hero-card-stack {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 22px;
  }

  .footer-meta,
  .footer-legal {
    justify-content: flex-start;
    text-align: left;
  }
}
