/* =========================================================
   Dreams of Vanguard — Design System
   Minimal modern. Light, spacious, refined.
   ========================================================= */

:root {
  /* Color */
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --bg-ink: #0a0b0d;
  --ink: #0a0b0d;
  --ink-2: #3a3d44;
  --muted: #71757e;
  --line: #e6e6e2;
  --accent: #2d4bff;
  --accent-soft: #eef1ff;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing / layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; color: var(--ink-2); }

.lead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink-2); line-height: 1.55; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: inline-block;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 10vw, 130px); }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--bg-ink); color: #f3f3f0; }
.section--ink p, .section--ink .lead { color: #b9bcc4; }

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.center { text-align: center; }
.measure { max-width: 720px; }
.measure-center { max-width: 720px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #fff; }

.arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.96rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(70px, 12vw, 150px); }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: clamp(48px, 8vw, 90px); }
.hero-meta .stat strong { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); display: block; line-height: 1; }
.hero-meta .stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Promo / partner chip ---------- */
.promo {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 1.8rem;
  padding: 7px 18px 7px 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.promo:hover {
  transform: translateY(-2px);
  border-color: #d3d3cd;
  box-shadow: 0 16px 40px -28px rgba(10,11,13,0.3);
}
.promo .promo-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.promo .promo-arrow { color: var(--accent); transition: transform 0.25s var(--ease); }
.promo:hover .promo-arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: #d3d3cd; box-shadow: 0 24px 60px -32px rgba(10,11,13,0.28); }
.card .num { font-family: var(--font-display); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { margin-top: 0.6em; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

.card--ink { background: #121317; border-color: #23252c; color: #f3f3f0; }
.card--ink p { color: #b9bcc4; }

/* ---------- Work / case ---------- */
.work-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.work-item.reverse { direction: rtl; }
.work-item.reverse > * { direction: ltr; }
.work-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), #fff 55%, #f0efe9);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.work-visual span {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  color: var(--ink);
  opacity: 0.12;
  letter-spacing: -0.03em;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0; padding: 0; list-style: none; }
.tags li { font-size: 0.78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 4px 12px; }

/* ---------- List / steps ---------- */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx { font-family: var(--font-display); font-size: 0.9rem; color: var(--accent); font-weight: 600; padding-top: 4px; }
.step h3 { margin-bottom: 0.3em; }
.step p { margin-bottom: 0; }

/* ---------- Insights / blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.post-card h3 { margin: 0.6em 0 0.4em; font-size: 1.25rem; }
.post-card .more { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 0.95rem; }

.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article p, .article li { color: var(--ink-2); }
.article ul { padding-left: 1.2em; }
.article blockquote {
  margin: 1.6em 0; padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.3rem; line-height: 1.4; color: var(--ink);
}
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2.4rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.85em 1em; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 14ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-ink); color: #c9ccd3; padding-block: clamp(56px, 8vw, 90px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #80848d; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a { color: #c9ccd3; font-size: 0.96rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid #23252c; font-size: 0.85rem; color: #80848d; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .work-item, .work-item.reverse { grid-template-columns: 1fr; direction: ltr; }
  .work-item .work-visual { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 20px var(--gutter) 28px; gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
