/* ==========================================================================
   QEHAS Tech — shared styles (mobile-first)
   Palette: deep harbor navy + signal amber. Display: Unbounded. Body: Manrope.
   ========================================================================== */

:root {
  --ink: #0e1a2b;        /* page background */
  --ink-raised: #15253b; /* raised surfaces */
  --line: #24384f;       /* borders, rules */
  --text: #e9eef5;       /* primary text */
  --muted: #98a8bc;      /* secondary text */
  --amber: #f2b544;      /* single accent */
  --amber-deep: #d99a22;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --gutter: 1.25rem;
  --radius-sm: 6px;
  --radius-lg: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo span { color: var(--amber); }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a:not(.btn) {
  display: none; /* revealed on wider screens */
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:not(.btn):hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 600 0.95rem/1 var(--font-body);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: 4rem 3.5rem; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 9vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}
.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Signature element: the amber rail under the hero */
.rail {
  height: 6px;
  background: var(--amber);
  border-radius: 3px;
  width: 4.5rem;
  margin-top: 3.5rem;
}

/* ---------- Sections ---------- */
.section { padding-block: 3.5rem; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 22ch;
}
.section-intro { color: var(--muted); max-width: 40rem; margin: 0 0 2.5rem; }

/* Feature list: stacked rows, not cards */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.features h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.features p { color: var(--muted); margin: 0; }

/* Steps: a true sequence, so numbers are meaningful */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  background: var(--amber);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.steps h3 { margin: 0.4rem 0 0.25rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* Contact panel */
.contact-panel {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}
.contact-panel h2 { margin-bottom: 0.75rem; }
.contact-panel p { color: var(--muted); margin: 0 0 1.5rem; max-width: 36rem; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 3rem 4rem; max-width: 46rem; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.legal .updated { color: var(--muted); margin: 0 0 2.5rem; }
.legal h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; }
.legal p, .legal li { color: #c9d4e2; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Tablet and up ---------- */
@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .nav a:not(.btn) { display: inline; }
  .hero { padding-block: 6.5rem 5rem; }
  .section { padding-block: 5rem; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps li { grid-template-columns: 1fr; }
  .contact-panel { padding: 3rem; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}

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