/* =========================================================
   Theme – change these to restyle the whole site
   ========================================================= */
:root {
  color-scheme: dark;

  --accent: #C04F15;        /* brand orange: buttons, icons, highlights */
  --accent-hover: #D65E1F;  /* lighter orange for hover on dark backgrounds */
  --accent-text: #EA8A55;   /* orange for small text (readable on dark) */
  --ink: #F2F2EF;           /* main text */
  --ink-soft: #B4BAC0;      /* secondary text */
  --bg: #0d0d0d;            /* page background */
  --bg-muted: #2B3034;      /* alternate section background */
  --bg-raised: #353B40;     /* problem / solution block */
  --surface: #30363A;       /* cards */
  --line: #41484E;          /* borders */
  --placeholder: #30363A;
  --placeholder-border: #5A6168;

  --font-display: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;

  --max-width: 1180px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Decorative map texture behind all content; never captures clicks */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../images/map_background.png") center / cover no-repeat;
  transform: scale(2.5);  /* how much larger the map appears */
  pointer-events: none;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.section { padding-top: 96px; padding-bottom: 96px; }
.section > h2 { margin-bottom: 40px; }

.placeholder {
  background: var(--placeholder);
  border: 1.5px dashed var(--placeholder-border);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 15px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s, color .15s;
}
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-sm      { min-height: 44px; padding: 10px 20px; }
.btn-dark    { background: var(--bg-raised); border-color: var(--line); color: var(--ink); min-height: 44px; padding: 10px 20px; }
.btn-dark:hover { border-color: var(--accent); }
.btn-outline { border-color: var(--ink-soft); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-text); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-logo { height: 44px; width: auto; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.site-nav a:not(.btn) { text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent-text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 88px;
}
.hero-text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.badge {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
}
.badge .highlight { color: var(--accent-text); }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
main { overflow-x: clip; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 34rem;
}
.hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(28% + 56px);
  width: calc(72% - 56px);
  height: 100%;
  object-fit: contain;
  z-index: -1;
  pointer-events: none;
}
@media (min-width: 1280px) {
  .hero-bg { width: 78%; }
}
.hero-text {
  max-width: 40rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

/* =========================================================
   Problem / Solution
   ========================================================= */
.section-dark { background: var(--bg-raised); color: var(--ink); border-top: 3px solid var(--accent); }
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.col { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col p { color: var(--ink-soft); font-size: 17px; }
.col .kicker { color: var(--accent-text); font-size: 14px; font-weight: 600; }

/* =========================================================
   Features
   ========================================================= */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card p { color: var(--ink-soft); }
.icon {
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   How it works
   ========================================================= */
.section-muted { background: var(--bg-muted); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.steps li { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; }
.steps p { color: var(--ink-soft); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}
.diagram {
  width: 100%;
  height: auto;
  margin-top: 56px;
  border-radius: var(--radius);
}

/* =========================================================
   Contact
   ========================================================= */
.contact-wrap { padding: 90px 24px; }
.contact {
  background: var(--accent);
  color: #fff;
  border-radius: 24px;
  padding: 64px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px 64px; /* vertical (when stacked on mobile), horizontal (text ↔ logo) */
}
/* Text and logo each take an equal half; they stack when there's no room */
.contact-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-media { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.contact h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.1; text-align: left; }
.contact-text p { font-size: 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 17px; font-weight: 500; }
.contact-links a { color: #fff; }
.contact-links a:focus-visible { outline-color: #fff; }
.contact-logo {
  width: 260px;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   Contact page
   ========================================================= */
.kicker { color: var(--accent-text); font-size: 14px; font-weight: 600; }
.page-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}

.contact-page {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}
.contact-info {
  flex: 1 1 340px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-content: start;
}
.contact-info .card { padding: 24px; gap: 8px; }
.contact-info address { font-style: normal; color: var(--ink-soft); }
.contact-info a { color: var(--accent-text); text-decoration: none; overflow-wrap: anywhere; }
.contact-info a:hover { text-decoration: underline; }
.map {
  flex: 1 1 460px;
  min-width: 0;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; }
  .site-nav .btn { margin-top: 8px; }

  .hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero { min-height: 0; }
  .hero-bg { opacity: 0.45; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .two-col { padding-top: 64px; padding-bottom: 64px; }
  .contact { padding: 40px 24px; }
  .contact-wrap { padding: 64px 16px; }
  .map { min-height: 320px; }
}

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