:root {
  --bg: #0a0d12;
  --bg-soft: #0f141b;
  --surface: #131922;
  --line: rgba(240, 227, 209, 0.15);
  --line-strong: rgba(240, 227, 209, 0.26);
  --text: #f2eadf;
  --muted: #bbaea0;
  --accent: #d78e47;
  --accent-soft: #f0c795;
  --max-width: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 142, 71, 0.07), transparent 30%),
    linear-gradient(180deg, #090c11 0%, #0b1016 42%, #090d12 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.94;
}

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

.container,
.section-shell,
.footer-shell,
.policy-main {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 4px 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.84) 0%, rgba(10, 13, 18, 0.2) 100%);
}

.brand,
.nav-brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.88rem;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
}

.main-nav a,
.footer-links a,
.header-cta {
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.header-cta:hover {
  color: var(--text);
}

.header-cta {
  border-bottom: 1px solid rgba(215, 142, 71, 0.8);
  padding-bottom: 0.12rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02) translate3d(0, var(--hero-shift, 0px), 0);
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 18, 0.92) 0%, rgba(10, 13, 18, 0.68) 28%, rgba(10, 13, 18, 0.34) 56%, rgba(10, 13, 18, 0.62) 100%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.2) 0%, rgba(10, 13, 18, 0.08) 36%, rgba(10, 13, 18, 0.94) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 4rem;
}

.hero-kicker,
.section-kicker,
.kicker {
  margin-bottom: 0.75rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.hero-brand {
  max-width: 8ch;
  font-size: clamp(2.6rem, 9vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
  color: #fbf4ea;
  animation: brand-rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

h1 {
  margin-top: 0.9rem;
  max-width: 8.4ch;
  font-size: clamp(2rem, 4.3vw, 4rem);
  animation: content-rise 900ms ease 120ms both;
}

.hero-text {
  margin-top: 1.1rem;
  max-width: 37rem;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  animation: content-rise 900ms ease 240ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
  animation: content-rise 900ms ease 360ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.86rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease, color 170ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #1d1209;
}

.btn-primary:hover {
  background: #e49b53;
}

.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(240, 227, 209, 0.44);
}

.section {
  padding: 5.25rem 0;
}

.section-heading {
  max-width: 42rem;
}

h2 {
  max-width: 11ch;
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
}

.section-heading p:last-child,
.system-copy p:last-child {
  margin-top: 0.95rem;
  max-width: 39rem;
}

.capability-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.2rem;
}

.capability-grid article,
.use-case-list article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.capability-grid h3,
.system-flow h3,
.use-case-list h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

.capability-grid p,
.system-flow p,
.use-case-list p {
  margin-top: 0.5rem;
}

.section-system {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0) 100%),
    #0c1016;
}

.system-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.4rem;
  align-items: start;
}

.system-flow {
  display: grid;
  gap: 1.2rem;
}

.system-flow article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.system-flow span {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--accent-soft);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.use-case-list {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.section-subscribe {
  padding-top: 5.5rem;
}

.subscribe-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.subscribe-form {
  display: grid;
  gap: 0.8rem;
}

.subscribe-form input {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 1rem;
}

.subscribe-form input:focus {
  outline: 2px solid rgba(215, 142, 71, 0.2);
  border-color: rgba(215, 142, 71, 0.72);
}

.form-message {
  min-height: 1.2rem;
  font-size: 0.92rem;
}

.form-message.error {
  color: #ff9b88;
}

.form-message.success {
  color: var(--accent-soft);
}

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

.footer-shell,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-shell p {
  margin-top: 0.55rem;
}

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

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

.policy-main {
  padding: calc(var(--header-height) + 2.5rem) 0 3rem;
}

.policy-content {
  padding: 1rem 0;
}

.policy-content h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.9;
}

.policy-content h2 {
  margin-top: 1.8rem;
  max-width: none;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.policy-content p + p {
  margin-top: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes brand-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    letter-spacing: 0.09em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.05em;
  }
}

@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy {
    min-height: auto;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 3rem;
  }

  .capability-grid,
  .system-shell,
  .use-case-list,
  .subscribe-shell,
  .footer-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem 1rem 1rem;
  }

  .main-nav {
    gap: 0.8rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-brand {
    max-width: 7ch;
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  h1 {
    max-width: 9ch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .header-cta,
  .btn {
    width: 100%;
  }
}
