:root {
  --bg: #ece4d7;
  --bg-deep: #d8cfbf;
  --paper: rgba(255, 251, 245, 0.7);
  --surface: rgba(255, 255, 255, 0.5);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --ink: #182018;
  --muted: #596558;
  --forest: #2a3a2c;
  --forest-deep: #1d281f;
  --olive: #79886e;
  --line: rgba(24, 32, 24, 0.12);
  --line-strong: rgba(24, 32, 24, 0.22);
  --shadow: 0 32px 80px rgba(23, 29, 23, 0.18);
  --shadow-soft: 0 18px 40px rgba(23, 29, 23, 0.11);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 30%),
    radial-gradient(circle at bottom right, rgba(42, 58, 44, 0.05), transparent 32%),
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      0deg,
      rgba(24, 32, 24, 0.012) 0,
      rgba(24, 32, 24, 0.012) 1px,
      transparent 1px,
      transparent 7px
    );
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
img {
  -webkit-tap-highlight-color: transparent;
}

.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 200;
  width: 0;
  height: 4px;
  background: var(--forest);
  box-shadow: 0 0 20px rgba(42, 58, 44, 0.35);
  transition: width 0.12s linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(236, 228, 215, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(18, 24, 18, 0.06);
}

body.is-scrolled .topbar {
  background: rgba(236, 228, 215, 0.9);
  box-shadow: 0 14px 42px rgba(18, 24, 18, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(42, 58, 44, 0.16);
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.nav a {
  position: relative;
  font-size: 0.95rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar-actions,
.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-solid {
  color: #f4eee3;
  background: var(--forest);
  box-shadow: 0 14px 30px rgba(31, 43, 32, 0.2);
}

.button-solid:hover,
.button-solid:focus-visible {
  background: var(--forest-deep);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.28);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(24, 32, 24, 0.28);
}

.section {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 56px;
  align-items: start;
  min-height: calc(100vh - 110px);
  padding: 28px 0 70px;
}

.hero-copy h1,
.section-heading h2,
.signal-copy h2,
.use-cases-copy h2,
.cta-brand h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-text,
.section-heading p,
.signal-copy,
.signal-card p,
.story-panel p,
.use-cases-grid p,
.cta-text {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 30px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.mini-card,
.signal-card,
.story-panel,
.use-cases-grid article,
.cta-card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.mini-card {
  padding: 18px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
}

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

.mini-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 680px;
  perspective: 1800px;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.hero-stage::before {
  inset: 12% 4% 22%;
  border: 1px solid rgba(42, 58, 44, 0.1);
}

.hero-stage::after {
  inset: auto 14% 2% auto;
  width: 180px;
  height: 180px;
  background: rgba(121, 136, 110, 0.12);
  filter: blur(20px);
}

.hero-stage-frame {
  position: relative;
  width: min(100%, 500px);
  padding: 14px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.hero-stage-frame img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.floating-note {
  position: absolute;
  max-width: 230px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(247, 241, 232, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.floating-note strong {
  display: block;
  font-size: 0.95rem;
}

.note-label {
  display: block;
  margin-bottom: 8px;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.floating-note-a {
  top: 8%;
  left: -18%;
}

.floating-note-b {
  right: -15%;
  bottom: 10%;
}

.signal-band {
  padding: 0 0 80px;
}

.signal-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.signal-copy h2,
.section-heading h2,
.use-cases-copy h2,
.cta-brand h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.signal-grid,
.use-cases-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.signal-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.signal-card span,
.story-index {
  color: var(--olive);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.signal-card h3,
.story-panel h3,
.use-cases-grid h3 {
  margin: 14px 0 10px;
  font-size: 1.24rem;
  line-height: 1.12;
}

.story {
  position: relative;
  padding: 62px 0 96px;
}

.story::before {
  content: "";
  position: absolute;
  inset: 0 -50vw;
  z-index: -1;
  background: rgba(42, 58, 44, 0.05);
}

.section-heading {
  max-width: 820px;
}

.section-heading p:last-child {
  max-width: 64ch;
  margin-top: 18px;
  font-size: 1.05rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.story-visual {
  position: sticky;
  top: 110px;
}

.device-stack {
  position: relative;
  min-height: 760px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    rgba(39, 52, 40, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-stack::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 32px;
}

.device-screen {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.device-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.device-screen img {
  width: min(100%, 440px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 42px rgba(12, 16, 12, 0.22));
}

.story-copy {
  display: grid;
  gap: 22px;
}

.story-panel {
  padding: 28px;
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.5);
  opacity: 0.72;
  transform: translateX(16px);
  transition: transform 0.35s ease, opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.story-panel.is-active {
  opacity: 1;
  transform: translateX(0);
  border-color: rgba(42, 58, 44, 0.18);
  box-shadow: var(--shadow);
}

.story-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.story-panel li + li {
  margin-top: 10px;
}

.use-cases {
  padding: 30px 0 90px;
}

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

.use-cases-grid article {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.cta {
  padding: 0 0 90px;
}

.cta-card {
  display: grid;
  gap: 26px;
  padding: 34px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 28%),
    var(--forest);
  color: #f3ede3;
}

.cta-card .eyebrow,
.cta-text,
.cta-card .button-ghost {
  color: rgba(243, 237, 227, 0.84);
}

.cta-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-brand img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow: 0 16px 26px rgba(10, 12, 10, 0.26);
}

.cta-card .button-ghost {
  border-color: rgba(243, 237, 227, 0.28);
  background: rgba(243, 237, 227, 0.08);
}

.cta-card .button-ghost:hover,
.cta-card .button-ghost:focus-visible {
  background: rgba(243, 237, 227, 0.15);
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--forest);
  color: #f3ede3;
  box-shadow: 0 20px 44px rgba(28, 38, 29, 0.28);
}

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .signal-copy,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding-top: 24px;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .hero-stage {
    min-height: 520px;
  }

  .floating-note-a {
    top: 3%;
    left: -6%;
  }

  .floating-note-b {
    right: -6%;
    bottom: 6%;
  }

  .story-visual {
    position: relative;
    top: auto;
  }

  .device-stack {
    min-height: 620px;
  }

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

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 24px, 1000px);
  }

  .topbar {
    gap: 16px;
    margin-top: 12px;
    padding: 16px;
    border-radius: 26px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions .button {
    flex: 1 1 220px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4.2rem);
  }

  .hero-copy h1 span {
    display: inline;
    white-space: normal;
  }

  .hero-points,
  .signal-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 430px;
  }

  .hero-stage-frame {
    padding: 10px;
    border-radius: 28px;
  }

  .floating-note {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

  .signal-band {
    padding-bottom: 58px;
  }

  .story {
    padding: 44px 0 74px;
  }

  .device-stack {
    min-height: 520px;
    padding: 18px;
    border-radius: 28px;
  }

  .device-screen {
    inset: 18px;
  }

  .story-panel {
    padding: 22px;
  }

  .cta-card {
    padding: 24px;
    border-radius: 28px;
  }

  .cta-brand {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .floating-cta {
    right: 14px;
    bottom: 14px;
    min-width: 116px;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
