:root {
  --bg: #0a0a0a;
  --surface: #111110;
  --line: #292624;
  --cream: #f0e3de;
  --dim: #a89893;
  --terracotta: #d97851;
  --font: Inter, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.page {
  max-width: 1480px;
  margin: auto;
  padding: 0 44px;
  position: relative;
}

.page a { text-decoration: none; }

.nav { top: 14px; width: calc(100% - 88px); max-width: 1392px; border-radius: 12px; box-shadow: 0 14px 32px rgba(0, 0, 0, .28); }
.nav__brand img { height: 40px; }

.rail {
  width: 100%;
  margin: 0 auto;
  position: relative;

  color: var(--cream);
}

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 62svh, 720px);
  margin-top: 96px;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #261610;
  background: #241510;
  padding: 0;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 12, 11, .94), rgba(8, 12, 11, .72) 52%, rgba(8, 12, 11, .3)), linear-gradient(0deg, rgba(8, 12, 11, .65), transparent 40%);
}

.hero-content {
  padding: 36px 24px;
  position: relative;
  z-index: 3;
  max-width: 810px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.035;
  letter-spacing: -.067em;
  font-weight: 550;
  margin: 24px 0 20px;
}

.hero h1 em { font-style: normal; color: #fff1e7; }

.hero .hero-line {
  color: var(--accent);
}

.hero p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 505px;
  margin: 0 auto;
  color: #dcdcdc;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.section {
  padding: 116px 55px 90px;
  position: relative;
}

.section-heading {
  text-align: center;
  margin: 0 auto 52px;
  max-width: 700px;
}

.section-heading .eyebrow {
  color: var(--terracotta);
  margin-bottom: 17px;
}

.section-heading h2 {
  font-family: var(--font);
  font-size: clamp(33px, 4vw, 51px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -.052em;
  margin: 0 0 16px;
}

.section-heading p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--dim);
  margin: 0 auto;
  max-width: 550px;
}

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

.annotation {
  font: 9px var(--mono);
  color: #7e6d65;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.eyebrow {
  font: 10px var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow .little-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  display: inline-block;
  border-radius: 50%;
}

.corner {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid var(--terracotta);
  background: var(--bg);
}

.corner.tl { left: -3px; top: -3px; }
.corner.tr { right: -3px; top: -3px; }


.platform-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  border: 1px solid var(--line);
  min-height: 330px;
}

.platform-map {
  position: relative;
  min-height: 330px;
  background: #0e0d0d;
  background-image: radial-gradient(#50423b .65px, transparent .9px);
  background-size: 13px 13px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.platform-map svg { width: 100%; max-height: 300px; }

.platform-info {
  padding: 33px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #161310;
}

.platform-info h3 {
  font-family: var(--font);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.04em;
  margin: 8px 0 18px;
}

.platform-info p {
  font-size: 12px;
  color: #a4958d;
  line-height: 1.75;
  max-width: 330px;
}

.platform-points { display: flex; gap: 8px; flex-wrap: wrap; }
.platform-points span { font: 9px var(--mono); padding: 8px 10px; border: 1px solid #45342b; color: #d2b7a6; }

#services .section-heading { text-align: center; margin: 0 auto 42px; }
#services .section-heading p { margin-inline: auto; }
#services .section-heading .accent { color: var(--terracotta); }

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

.service { min-width: 0; text-align: center; }

.service h3 {
  font-family: var(--font);
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.04em;
  margin: 0;
}

.service p {
  max-width: 45ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--dim);
  margin: 12px auto 0;
}

.service-mark {
  box-sizing: border-box;
  display: block;
  width: min(100%, 360px);
  height: clamp(135px, 12vw, 175px);
  margin: 0 auto 16px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; gap: 42px; }
}

.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.pricing-card {
  padding: clamp(30px, 4vw, 52px);
  min-height: 320px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pricing-card:last-child { border-right: 0; }

.pricing-card h3 {
  font-family: var(--font);
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -.045em;
  margin: 0 0 10px;
}

.pricing-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 38ch;
}

.pricing-card .price {
  font-size: 26px;
  font-weight: 500;
  margin: auto 0 7px;
  padding-top: 32px;
}

.pricing-card .price small { font: 11px var(--mono); color: #a99a92; }

.pricing-card a {
  display: inline-flex;
  gap: 22px;
  font: 11px var(--mono);
  color: var(--terracotta);
  border-bottom: 1px solid #704432;
  padding: 9px 0;
}

.pricing-card.highlight { background: #151615; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, transform .2s, border .2s;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-light {
  background: #f6eee9;
  color: #24130c;
  border-radius: 4px;
}

.btn-light:hover { background: white; }

.btn-outline-dark {
  border-color: #8f4d35;
  color: #351c13;
  border-radius: 4px;
}

.btn-outline-dark:hover { background: #e79069; }

/* The footer is a full-width signed band: wordmark, product columns, a signal-draw graphic and a dashed legal rule. */
.site-footer {
  margin-top: clamp(48px, 7vw, 84px);
  color: var(--cream);
}
.site-footer .footer-main {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 56px);
  padding: clamp(34px, 4vw, 64px) 0 clamp(16px, 2vw, 26px);
}
.footer-brand { max-width: 340px; }
.footer-logo { display: inline-flex; }
.footer-logo img { width: auto; height: 40px; }
.footer-brand p { margin: 14px 0 0; color: var(--dim); font-size: 13px; line-height: 1.6; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 88px); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-col h3 {
  margin: 0 0 12px;
  font: 10px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-col a, .footer-item {
  font-size: 13px;
  line-height: 1.1;
  padding: 6px 0;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease;
}
.footer-col a > span { color: var(--terracotta); }
.footer-col a:hover { color: var(--terracotta); }
.footer-item { color: var(--dim); display: block; }
.footer-legal { padding-top: 22px; }
.footer-rule { display: block; width: 100%; height: 1px; }
.footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 18px 0 8px;
}
.footer-meta { color: var(--dim); font: 11px var(--mono); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-legal-links a { color: var(--dim); font-size: 12px; white-space: nowrap; transition: color .2s ease; }
.footer-legal-links a:hover { color: var(--terracotta); }
.footer-legal-links a span { color: var(--terracotta); }

/* The missing-page screen uses the same frame as the home page. */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  padding-top: 112px;
}
.error-scene {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  padding: 72px 55px;
  border-bottom: 1px solid var(--line);
}
.error-code {
  font: 500 clamp(120px, 17vw, 250px)/.9 var(--font);
  letter-spacing: -.085em;
  color: #4c4641;
}
.error-code span {
  display: block;
  font: 10px var(--mono);
  letter-spacing: .15em;
  color: var(--dim);
  margin: 28px 0 0 10px;
}
.error-content h1 {
  font: 500 clamp(36px, 4vw, 56px)/1.05 var(--font);
  letter-spacing: -.05em;
  margin: 0 0 24px;
}
.error-content p {
  max-width: 390px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dim);
  margin-bottom: 32px;
}
.error-content .btn { padding: 16px 22px; }
.error-products {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 13px;
}
.error-products > span { width: 100%; color: var(--dim); }
.error-products a:hover, .error-footer a:hover { color: var(--terracotta); }
.error-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: var(--dim);
  font: 10px/1.7 var(--mono);
}

@media (max-width: 950px) {
  .error-scene { gap: 40px; padding: 48px 28px; }
}
@media (max-width: 680px) {
  .error-page { padding-top: 96px; }
  .error-scene { grid-template-columns: minmax(0, 1fr); align-content: center; padding: 36px 19px 48px; gap: 44px; }
  .error-code { font-size: clamp(100px, 32vw, 160px); }
  .error-content h1 { font-size: 36px; }
  .error-footer { flex-wrap: wrap; padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 950px) {
  .page { padding: 0 27px; }
  .nav { width: calc(100% - 54px); }
  .section { padding: 86px 28px 70px; }
  .hero { min-height: clamp(500px, 60svh, 620px); }
  .hero-content { padding-block: 56px; }

  .site-footer { margin-top: clamp(40px, 6vw, 72px); }
}

@media (min-width: 951px) {
  .site-footer .footer-main { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-cols { flex: 1; max-width: 720px; margin-left: auto; }
}

@media (max-width: 680px) {
  .page { padding: 0 14px; }
  .nav { top: 10px; width: calc(100% - 28px); }
  .nav__inner { gap: 12px; padding-inline: 16px; }
  .nav__brand img, .footer-logo img { height: 36px; }
  .hero {
    margin-top: 96px;
    min-height: clamp(560px, 72svh, 680px);
  }
  .hero-content { padding: 70px 20px; }
  .hero h1 { font-size: clamp(40px, 10.5vw, 59px); }
  .hero p { font-size: 12px; }
  .section { padding: 76px 19px 64px; }

  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 35px; }
  .section-heading p { font-size: 12px; }


  .pricing-card .price small { display: block; margin-top: 7px; line-height: 1.5; }

  .platform-grid, .pricing-wrap { grid-template-columns: 1fr; }
  .platform-map {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .platform-info { padding: 26px; }
  .service-mark { height: 150px; }
  .pricing-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .pricing-card:last-child { border-bottom: 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-legal-row { flex-direction: column; align-items: flex-start; padding: 16px 0 6px; }
  .footer-legal-links { gap: 12px 20px; }
  .footer-meta { line-height: 1.6; }
}


/* Page load + scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .nav { animation: site-fade-down .7s cubic-bezier(.22, .61, .36, 1) .05s both; }
  .hero { animation: site-hero-in 1.05s cubic-bezier(.22, .61, .36, 1) .1s both; }
  .hero-content { animation: site-fade-up .9s cubic-bezier(.22, .61, .36, 1) .28s both; }

  .is-anim-ready .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s ease-out, transform .9s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .is-anim-ready .reveal > * {
    opacity: 0;
    transition: opacity .7s ease-out;
  }
  .is-anim-ready .reveal > :nth-child(1) { transition-delay: calc(var(--reveal-delay, 0s) + .12s); }
  .is-anim-ready .reveal > :nth-child(2) { transition-delay: calc(var(--reveal-delay, 0s) + .24s); }
  .is-anim-ready .reveal > :nth-child(3) { transition-delay: calc(var(--reveal-delay, 0s) + .36s); }
  .is-anim-ready .reveal > :nth-child(4) { transition-delay: calc(var(--reveal-delay, 0s) + .48s); }

  .is-anim-ready .reveal .pricing-card,
  .is-anim-ready .reveal .intro-lines article {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .75s ease-out, transform .85s cubic-bezier(.22, .61, .36, 1);
    transition-delay: calc(var(--reveal-delay, 0s) + .38s);
  }
  .is-anim-ready .reveal .pricing-card:nth-child(2),
  .is-anim-ready .reveal .intro-lines article:nth-child(2) {
    transition-delay: calc(var(--reveal-delay, 0s) + .5s);
  }

  .is-anim-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .is-anim-ready .reveal.is-visible > *,
  .is-anim-ready .reveal.is-visible .pricing-card,
  .is-anim-ready .reveal.is-visible .intro-lines article {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes site-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes site-fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes site-hero-in {
  from { opacity: 0; transform: translateY(20px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
