/* =========================================================
   LAYOUT — page regions, section surfaces, grids, footer
   ========================================================= */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

/* Toggled by js/header.js once the page is scrolled */
.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}

/* Soft brass glow behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  inset-inline-end: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(201, 171, 125, 0.16), transparent 66%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.35;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-text {
  max-width: 60ch;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

/* ---------- Dark section surfaces ---------- */
.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section--dark h2 {
  color: #fff;
}

.section--dark .lead {
  color: var(--on-dark-muted);
}

/* ---------- Light tinted section surface ---------- */
.section--sand {
  background: var(--sand);
}

/* ---------- Section grids ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
  margin-top: 54px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.architecture-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 54px;
}

.step-grid {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 54px;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 50px;
}

.faq-list {
  max-width: 840px;
  margin-top: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  margin-top: 54px;
}

/* Horizontal screenshot rail */
.shot-rail {
  display: flex;
  gap: 22px;
  margin-top: 54px;
  padding-bottom: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.shot-rail::-webkit-scrollbar {
  height: 4px;
}

.shot-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 38px 0;
  background: var(--ink);
  color: #6d7773;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.83rem;
}

.footer-inner a:hover {
  color: #fff;
}

.footer-domains {
  direction: ltr;
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    padding: 80px 0 70px;
  }

  .architecture-layout,
  .platform-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  /* Mobile drawer — opened by js/nav.js */
  .nav-menu {
    display: none;
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 14px 22px 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }
}
