/* ------------------------------------------------------------------
 * Goalscape — self-hosted Poppins
 * Only the Latin subset (covers EN+DE). Swap URLs above if adding more.
 * ------------------------------------------------------------------ */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700.woff2') format('woff2');
}

/* ------------------------------------------------------------------
 * Design tokens — the whole site pulls from these.
 * Natural transition from current goalscape.com: same navy/blue family,
 * tightened into a single disciplined scale.
 * ------------------------------------------------------------------ */
:root {
  /* Brand */
  --color-ink:         #0b1220; /* deep navy — headings, header */
  --color-ink-2:       #1e293b; /* secondary ink */
  --color-primary:     #2563eb; /* Goalscape blue — CTAs, links */
  --color-primary-700: #1d4ed8;
  --color-accent:      #60a5fa; /* soft blue — highlights, selected state */

  /* Surface */
  --color-bg:          #ffffff;
  --color-surface:     #f8fafc; /* section bands */
  --color-surface-2:   #f1f5f9; /* cards */
  --color-border:      #e2e8f0;
  --color-border-2:    #cbd5e1;

  /* Text */
  --color-text:        var(--color-ink);
  --color-text-muted:  #475569;
  --color-text-subtle: #64748b;

  /* Type */
  --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Type scale — fluid, clamp(min, preferred, max) */
  --fs-display: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  --fs-h1:      clamp(2rem,   3vw + 1rem, 3.25rem);
  --fs-h2:      clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  --fs-h3:      clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  --fs-lead:    clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  --fs-body:    1rem;
  --fs-sm:      0.9rem;
  --fs-xs:      0.8rem;

  /* Rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);

  /* Layout */
  --container: 1160px;
  --container-narrow: 760px;
}

/* ------------------------------------------------------------------
 * Reset & base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--color-ink); }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-700); }

img, svg { max-width: 100%; display: block; height: auto; }

/* ------------------------------------------------------------------
 * Layout helpers
 * ------------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(var(--space-10), 8vw, var(--space-16));
}

.section--band {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* ------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-700);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border-2);
}
.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-ink);
}

/* ------------------------------------------------------------------
 * Header / nav
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}

.nav-links a {
  color: var(--color-ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.nav-links a:hover { color: var(--color-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switch {
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.lang-switch:hover {
  color: var(--color-ink);
  border-color: var(--color-border-2);
}

/* ------------------------------------------------------------------
 * Hero — stacked: copy on top, video below, both centered in container
 * ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(var(--space-10), 7vw, var(--space-16));
  text-align: center;
}

.hero__copy {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
}

.hero__headline {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}

.hero__lede {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  margin: 0 auto var(--space-6);
  max-width: 56ch;
}

.hero__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__visual {
  max-width: 1040px;
  margin-inline: auto;
}

/* ------------------------------------------------------------------
 * Value grid (benefits, audiences, why-leaders-love)
 * ------------------------------------------------------------------ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.value-card {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 120ms ease, transform 120ms ease;
}
.value-card:hover {
  border-color: var(--color-border-2);
  transform: translateY(-2px);
}
.value-card h3 {
  margin-bottom: var(--space-2);
}
.value-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------
 * Testimonials — Things-style, no carousel
 * ------------------------------------------------------------------ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.testimonial {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.testimonial blockquote {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-ink-2);
  margin-bottom: var(--space-4);
  quotes: "“" "”";
}
.testimonial blockquote::before { content: open-quote; }
.testimonial blockquote::after { content: close-quote; }

.testimonial cite {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--color-ink);
  font-weight: 600;
}
.testimonial cite span {
  display: block;
  color: var(--color-text-subtle);
  font-weight: 400;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

/* ------------------------------------------------------------------
 * Latest articles
 * ------------------------------------------------------------------ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 120ms ease, transform 120ms ease;
}
.article-card:hover {
  border-color: var(--color-border-2);
  transform: translateY(-2px);
}
.article-card__date {
  color: var(--color-text-subtle);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}
.article-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}
.article-card h3 a { color: var(--color-ink); }
.article-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  flex: 1;
}

/* ------------------------------------------------------------------
 * Section headings
 * ------------------------------------------------------------------ */
.section__title {
  max-width: 46ch;
}
.section__title h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-3);
}
.section__title p {
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
}

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.site-footer {
  margin-top: var(--space-16);
  padding-block: var(--space-10);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.footer-col h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-3);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.footer-col a:hover { color: var(--color-ink); }

.footer-tagline {
  color: var(--color-text-subtle);
  font-size: var(--fs-xs);
}

/* ------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 880px) {
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
