:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --ink: #0f1d35;
  --muted: #4f5f76;
  --accent: #133c76;
  --accent-soft: #1f4f95;
  --accent-warm: #c9932e;
  --pill: #e5ecf7;
  --shadow: 0 20px 70px -28px rgba(9, 28, 68, 0.35);
  --radius: 16px;
  --max: 1100px;
  --mono: 'DM Mono', 'SFMono-Regular', Menlo, monospace;
  --serif: 'EB Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

body.theme-dark {
  --bg: #0d121c;
  --surface: #121a27;
  --ink: #e9eef7;
  --muted: #a4b0c6;
  --accent: #9cc4ff;
  --accent-soft: #6da2ff;
  --accent-warm: #f3cd7b;
  --pill: #1f2a3c;
  --shadow: 0 20px 70px -28px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-soft); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  margin: 0 0 0.45em;
  line-height: 1.2;
  letter-spacing: 0.4px;
}

h1 { font-size: clamp(2.4rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

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

.shell { width: min(var(--max), 92vw); margin: 0 auto; }

.top-bar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(247, 247, 242, 0.85);
  border-bottom: 1px solid rgba(12, 23, 42, 0.05);
  z-index: 20;
  transition: background 0.3s ease;
}

body.theme-dark .top-bar {
  background: rgba(13, 18, 28, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.top-bar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-text .title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  background: var(--pill);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid rgba(12, 23, 42, 0.06);
}

body.theme-dark .pill {
  border-color: rgba(255, 255, 255, 0.08);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(12, 23, 42, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -16px rgba(12, 23, 42, 0.35);
}

.toggle:hover { transform: translateY(-1px); }
.toggle:active { transform: translateY(0); }
body.theme-dark .toggle { border-color: rgba(255, 255, 255, 0.12); }

.hero {
  padding: clamp(3.5rem, 8vh, 5rem) 0 3rem;
  background: radial-gradient(circle at 18% 20%, rgba(17, 60, 118, 0.18), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(201, 147, 46, 0.18), transparent 45%),
              var(--bg);
}

.hero-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-figure {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 23, 42, 0.06);
  display: grid;
  place-items: center;
}

body.theme-dark .hero-figure {
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-logo {
  max-width: 360px;
  width: 100%;
  border-radius: 16px;
  background: #fff;
}

.hero-copy .eyebrow {
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.hero-copy .subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fefefe;
  box-shadow: 0 14px 36px -18px rgba(17, 60, 118, 0.65);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(12, 23, 42, 0.12);
}

body.theme-dark .btn.ghost { border-color: rgba(255, 255, 255, 0.18); color: var(--accent-warm); }
.btn:hover { transform: translateY(-2px); }

.section {
  padding: clamp(2.8rem, 8vh, 4rem) 0;
}

.card-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(12, 23, 42, 0.07);
  box-shadow: var(--shadow);
}

body.theme-dark .card { border-color: rgba(255, 255, 255, 0.08); }

.card .label {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  color: var(--accent);
  text-transform: uppercase;
}

.callout {
  background: linear-gradient(135deg, rgba(17, 60, 118, 0.08), rgba(201, 147, 46, 0.08));
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border: 1px dashed rgba(12, 23, 42, 0.15);
}

body.theme-dark .callout { border-color: rgba(255, 255, 255, 0.15); }

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(12, 23, 42, 0.08);
  color: var(--muted);
}

@media (max-width: 720px) {
  .top-bar .inner { flex-direction: column; align-items: flex-start; }
  .brand-mark img { width: 52px; height: 52px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
