/* ============================================================
   MARCANE — design system v3 (built around brand logo)
   Palette: ink #0A0A0C, paper #FFFFFF, panel #F4F6F8, blue #0EA5EC, blue-deep #0678C2
   Type: Sora (display/headline) / Inter (body, UI)
   ============================================================ */

:root {
  --ink: #0A0A0C;
  --paper: #FFFFFF;
  --panel: #F4F6F8;
  --blue: #0EA5EC;
  --blue-deep: #0678C2;
  --blue-tint: #E6F6FE;
  --grey: #55564F;
  --grey-soft: #8C8B84;
  --line: rgba(10, 10, 12, 0.10);

  --display: "Sora", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --pad: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { max-width: 60ch; margin: 0 0 1em; color: var(--grey); }

a { color: inherit; }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

a:focus-visible, button:focus-visible, label:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--grey); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--blue); color: #fff; padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.nav-cta:hover { background: var(--blue-deep); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle-label { display: block; background: none; border: 1px solid var(--line); padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; cursor: pointer; }
  .nav-toggle:checked ~ .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 68px; left: 0; right: 0; background: var(--paper);
    padding: 24px var(--pad) 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(48px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-tint); border: 1px solid rgba(14,165,236,0.25);
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--blue-deep);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.6rem); max-width: 15ch; }
.hero-sub { font-size: 1.1rem; max-width: 46ch; margin-top: 20px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; display: inline-block;
}
.btn-primary:hover { background: var(--blue-deep); }
.link-quiet { text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 600; border-bottom: 2px solid var(--line); padding-bottom: 3px; }

/* hero logo mark */
.hero-art { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-art .glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,236,0.16) 0%, rgba(14,165,236,0) 70%);
}
.hero-art img { width: 100%; max-width: 260px; height: auto; position: relative; }

/* ---------- stat strip ---------- */
.stat-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { text-align: center; padding: 34px 12px; border-left: 1px solid var(--line); }
.stat-item:first-child { border-left: none; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--blue); }
.stat-label { font-size: 0.85rem; color: var(--grey); margin-top: 4px; }
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-item { border-left: none; border-top: 1px solid var(--line); }
  .stat-item:first-child { border-top: none; }
}

/* ---------- why smaller ---------- */
.section-panel { background: var(--panel); padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.section-panel .section-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; }
.section-panel h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); max-width: 13ch; }
.body-copy p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .section-panel .section-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- services ---------- */
.section-white { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.section-head { margin-bottom: 44px; max-width: 60ch; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 12px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { border: 1px solid var(--line); border-radius: 14px; padding: 30px; background: var(--paper); }
.service-num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue);
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 0.95rem; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { font-size: 0.96rem; margin: 0; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- alignment quote ---------- */
.section-quote { background: var(--ink); padding-top: clamp(56px, 8vw, 90px); padding-bottom: clamp(56px, 8vw, 90px); }
.section-quote blockquote {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.35; max-width: 28ch; margin: 0 0 18px; color: #fff;
}
.section-quote cite { font-style: normal; font-size: 0.92rem; color: rgba(255,255,255,0.55); }

/* ---------- cta ---------- */
.section-cta { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); text-align: center; }
.section-cta h2 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 18ch; margin: 0 auto 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 36px; padding-bottom: 36px; font-size: 0.88rem; color: var(--grey-soft); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 22px; width: auto; }
.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--grey-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
