/* ═══════════════════════════════════════════════
   SWISS MONEY COACH — GLOBAL DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,300;1,8..60,400&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ─────────────────────────────────── */
:root {
  --ink:        #0E0E0E;
  --ink-80:     rgba(14,14,14,0.80);
  --ink-50:     rgba(14,14,14,0.50);
  --ink-12:     rgba(14,14,14,0.12);
  --paper:      #F5F6F7;
  --paper-dark: #ECEDEF;
  --cyan:       #10A5DF;
  --cyan-deep:  #0C7FAD;
  --cyan-pale:  rgba(16,165,223,0.10);
  --slate:      #6B7378;
  --white:      #FFFFFF;
  --max:        1200px;
  --max-prose:  720px;
  --r:          3px;

  /* type scale */
  --t-xs:   11px;
  --t-sm:   13px;
  --t-base: 16px;
  --t-md:   18px;
  --t-lg:   22px;
  --t-xl:   28px;
  --t-2xl:  36px;
  --t-3xl:  48px;
  --t-4xl:  62px;

  /* spacing */
  --s-xs:  8px;
  --s-sm:  16px;
  --s-md:  32px;
  --s-lg:  56px;
  --s-xl:  96px;
  --s-2xl: 140px;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────── */
.font-serif   { font-family: 'Source Serif 4', serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }
.font-sans    { font-family: 'Space Grotesk', sans-serif; }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(36px, 5.5vw, var(--t-4xl)); }
h2 { font-size: clamp(26px, 3.5vw, var(--t-3xl)); }
h3 { font-size: clamp(20px, 2.5vw, var(--t-xl)); }
h4 { font-size: var(--t-lg); }

p { line-height: 1.65; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--cyan);
  display: inline-block;
  flex-shrink: 0;
}

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ── LAYOUT ──────────────────────────────────── */
.wrap       { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-md); }
.wrap-prose { max-width: var(--max-prose); margin: 0 auto; padding: 0 var(--s-md); }
.section    { padding: var(--s-xl) 0; }
.section-sm { padding: var(--s-lg) 0; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan);
  color: var(--ink);
}
.btn-primary:hover { background: var(--cyan-deep); color: var(--white); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-12);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.btn-ghost .arrow { transition: transform 0.15s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-white {
  background: var(--white);
  color: var(--ink);
}
.btn-white:hover { background: var(--paper); }

/* ── TAGS / BADGES ───────────────────────────── */
.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--cyan-pale);
  color: var(--cyan-deep);
}

/* ── CARD ────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: var(--r);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(14,14,14,0.08); transform: translateY(-2px); }

/* ── DIVIDER ─────────────────────────────────── */
.hr { border: none; border-top: 1px solid var(--ink-12); }

/* ── TOPO SVG MOTIF ──────────────────────────── */
.topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.topo-bg svg { width: 100%; height: 100%; }

/* ── FORM ELEMENTS ───────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-80);
}
.field input,
.field textarea,
.field select {
  background: var(--white);
  border: 1.5px solid var(--ink-12);
  border-radius: var(--r);
  padding: 12px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--t-base);
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--cyan); }
.field input::placeholder,
.field textarea::placeholder { color: var(--slate); }

/* ── NAV ─────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,246,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-80);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}
.nav-cta { margin-left: var(--s-sm); }

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink-12);
  padding: var(--s-sm) 0;
}
.nav-mobile a {
  padding: 14px var(--s-md);
  font-size: var(--t-md);
  font-weight: 500;
  border-bottom: 1px solid var(--ink-12);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(245,246,247,0.60);
  padding: var(--s-xl) 0 var(--s-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-lg);
  padding-bottom: var(--s-lg);
  border-bottom: 1px solid rgba(245,246,247,0.10);
  margin-bottom: var(--s-md);
}
.footer-brand p {
  margin-top: var(--s-sm);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,246,247,0.40);
  margin-bottom: var(--s-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(245,246,247,0.60);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-sm);
}
.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.footer-logo-text span { color: var(--cyan); }

/* ── BLOG CARD ───────────────────────────────── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(14,14,14,0.08); transform: translateY(-2px); }
.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--paper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: var(--s-md); flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.blog-card-meta .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  color: var(--slate);
}
.blog-card h3 {
  font-size: var(--t-lg);
  line-height: 1.28;
  margin-bottom: 10px;
  font-weight: 600;
}
.blog-card p { font-size: 14px; color: var(--ink-80); line-height: 1.6; flex: 1; }
.blog-card-footer {
  margin-top: var(--s-sm);
  padding-top: var(--s-sm);
  border-top: 1px solid var(--ink-12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-sm);
}
.read-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  color: var(--slate);
}

/* ── HERO SHARED ─────────────────────────────── */
.page-hero {
  position: relative;
  padding: var(--s-2xl) 0 var(--s-xl);
  overflow: hidden;
}
.page-hero-sm {
  position: relative;
  padding: var(--s-xl) 0 var(--s-lg);
  overflow: hidden;
}

/* ── PROSE (blog post body) ──────────────────── */
.prose h2 { font-size: var(--t-2xl); margin: var(--s-lg) 0 var(--s-sm); }
.prose h3 { font-size: var(--t-xl); margin: var(--s-md) 0 var(--s-xs); }
.prose p  { font-size: var(--t-md); line-height: 1.75; margin-bottom: var(--s-sm); color: var(--ink-80); }
.prose ul { margin: var(--s-sm) 0 var(--s-sm) var(--s-md); }
.prose ul li { font-size: var(--t-md); line-height: 1.75; color: var(--ink-80); margin-bottom: 8px; list-style: disc; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: var(--s-sm) var(--s-md);
  margin: var(--s-md) 0;
  background: var(--cyan-pale);
  border-radius: 0 var(--r) var(--r) 0;
}
.prose blockquote p { color: var(--ink); font-style: italic; margin: 0; }
.prose .callout {
  background: var(--cyan-pale);
  border: 1px solid rgba(16,165,223,0.25);
  border-radius: var(--r);
  padding: var(--s-md);
  margin: var(--s-md) 0;
}
.prose .callout p { margin: 0; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  :root { --s-xl: 64px; --s-2xl: 96px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-md); }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .wrap { padding: 0 var(--s-sm); }
}
@media (max-width: 600px) {
  :root { --s-xl: 48px; --s-2xl: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(30px, 8vw, 42px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
