/* ---------- Fonts (self-hosted, variable weight 100–900) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  --primary: #bf460b;
  --primary-dark: #943206;
  --accent: #b74108;
  --highlight: #ff9b38;
  --ink: #2b1b13;
  --surface: #fffdf9;
  --surface-alt: #fff2e5;
  --paper: #ffffff;
  --muted: #685247;
  --line: #efdcc9;

  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(72, 35, 10, 0.06), 0 12px 28px rgba(72, 35, 10, 0.07);
  --container: 1120px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Small uppercase kicker above headings, echoes the logo lettering */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
}
.eyebrow-light { color: var(--highlight); }

.accent { color: var(--primary-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: var(--surface);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-ghost:hover { background: rgba(191, 70, 11, 0.08); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img { image-rendering: pixelated; }
.nav-brand-text { line-height: 1.05; }
.nav-brand-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-brand-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-menu a:not(.btn):hover {
  color: var(--primary);
  border-bottom-color: var(--highlight);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 0;
  background: linear-gradient(120deg, #fff5e8 0%, #ffe5cc 55%, #fff0df 100%);
}

.hero-grid {
  padding-bottom: 88px;
  text-align: center;
}

.lead {
  font-size: 1.13rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt {
  background: linear-gradient(135deg, #fff8f0 0%, var(--surface-alt) 55%, #ffead6 100%);
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-intro { color: var(--muted); font-size: 1.02rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }
.card h3 { margin-top: 14px; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  color: var(--primary);
  background: linear-gradient(135deg, #fff0df, #ffe3c7);
  border-radius: 8px;
}

.platform-group + .platform-group { margin-top: 24px; }
.platform-heading { font-size: 0.9rem; margin-bottom: 12px; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.platform-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.platform-tile img { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; }
.platform-tile h4 { margin: 0 0 4px; font-size: 1rem; line-height: 1.2; }
.platform-tile p { margin: 0; color: var(--muted); font-size: 0.82rem; }

/* ---------- Environments ---------- */
.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.env-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}
.env-tile img { width: 40px; height: 40px; object-fit: contain; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 26px 24px 24px;
  border-top: 4px solid var(--highlight);
  background: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.process-step p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }
.process-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.process-step h3 { margin-top: 6px; }

/* ---------- Contact ---------- */
.section-contact {
  background: var(--ink);
  color: var(--surface);
}
.section-contact h2 { color: #fff; }
.section-contact p { color: #e8d8ca; }
.section-contact a { color: var(--highlight); }

.contact-copy { max-width: 640px; }
.contact-alt {
  margin-top: 22px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #21150e;
  color: #d5beac;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  align-items: end;
  gap: 24px;
}
.footer-logo { image-rendering: pixelated; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-legal p { margin: 0; }
.footer-trademark { font-size: 0.78rem; opacity: 0.75; max-width: 46em; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .platform-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { padding: 8px 0; }
  .nav-menu .btn { margin-top: 8px; text-align: center; }
  .section { padding: 64px 0; }
}
