﻿/* GEOKlar — shared design system */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --navy: #0a1f44;
  --navy-900: #081a3a;
  --navy-800: #0f2654;
  --navy-700: #1a3668;
  --navy-600: #2e4a7d;
  --navy-400: #6a7ea3;
  --navy-300: #9ca8c2;

  --gold: #b8944a;
  --gold-dark: #8a6f2d;
  --gold-light: #d4b778;
  --gold-soft: #ede3c9;

  --bg: #f6f5f0;
  --bg-alt: #fafaf7;
  --bg-warm: #faf7f0;
  --bg-card: #ffffff;

  --ink: #0a1f44;
  --ink-2: #3a4a6b;
  --ink-3: #6b7693;
  --ink-4: #9ca6bd;

  --line: #e8e4d8;
  --line-2: #d8d3c3;
  --line-dark: rgba(255,255,255,0.12);

  --green: #2d7a4f;
  --red: #b84a4a;
  --blue-chart: #3b5998;

  /* Radius */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(10,31,68,0.04), 0 1px 1px rgba(10,31,68,0.03);
  --sh: 0 1px 3px rgba(10,31,68,0.06), 0 4px 12px rgba(10,31,68,0.04);
  --sh-lg: 0 4px 8px rgba(10,31,68,0.06), 0 16px 40px rgba(10,31,68,0.08);
  --sh-xl: 0 8px 16px rgba(10,31,68,0.08), 0 24px 64px rgba(10,31,68,0.12);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Sans', -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #f6f5f0;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

/* Type */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
}
.h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--navy);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--navy);
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 62ch;
}
.small { font-size: 13px; color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r);
  transition: transform .1s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: var(--gold);
  color: white;
  box-shadow: 0 1px 2px rgba(138,111,45,0.24), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover { background: var(--navy-800); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-2);
}
.btn-outline:hover { border-color: var(--navy); background: var(--bg-alt); }
.btn-outline-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover { border-color: white; background: rgba(255,255,255,0.06); }
.btn-ghost { padding: 8px 12px; color: var(--ink-2); }
.btn-ghost:hover { color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,245,240,0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--navy);
  display: grid; place-items: center;
  position: relative;
}
.logo-mark::before {
  content: '';
  width: 12px; height: 12px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--navy); background: rgba(10,31,68,0.04); }
.site-nav a.active { color: var(--navy); }
.site-header-cta { display: flex; align-items: center; gap: 10px; }

/* Footer */
.site-footer {
  background:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(circle at center, #0a1f44 0%, #050f22 100%);
  color: var(--navy-300);
  padding: 64px 0 32px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}
.site-footer a { color: var(--navy-300); font-size: 14px; display: block; padding: 6px 0; transition: color .15s ease; }
.site-footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 36ch; line-height: 1.55; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  padding: 0;
}
.footer-socials a:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

/* Utility */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-warm { background: var(--bg-warm); }
.bg-alt { background: var(--bg-alt); }
.bg-navy {
  background:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(circle at center, #0a1f44 0%, #050f22 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.bg-navy .h2, .bg-navy .h1, .bg-navy .h3 { color: white; }
.bg-navy .lede { color: rgba(255,255,255,0.78); }

.center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head .h2 { margin-bottom: 16px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Info tooltip */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--ink-4);
  cursor: help;
  position: relative;
  outline: none;
  vertical-align: middle;
  margin-left: 6px;
  flex-shrink: 0;
}
.tip:hover, .tip:focus { color: var(--navy); }
.tip-body {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  padding: 10px 12px;
  border-radius: 6px;
  width: 240px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  box-shadow: var(--sh-lg);
  z-index: 60;
  pointer-events: none;
  white-space: normal;
  text-transform: none;
}
.tip-body::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
}
.tip:hover .tip-body, .tip:focus .tip-body { opacity: 1; visibility: visible; }
.tip.tip-right .tip-body { left: auto; right: -4px; transform: none; }
.tip.tip-right .tip-body::after { left: auto; right: 8px; transform: none; }

/* Mobile */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .section { padding: 64px 0; }
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 20px; }
}
