@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --navy:       #1a2236;
  --navy-mid:   #243352;
  --navy-light: #1e2d4a;
  --border-nav: #2e3f5c;
  --blue:       #4a9eda;
  --blue-dim:   rgba(74,158,218,0.15);
  --teal:       #2dd4bf;
  --ink:        #0f0f0f;
  --ink-2:      #2c2c2a;
  --ink-3:      #5a5a56;
  --ink-4:      #9a9a94;
  --surface:    #ffffff;
  --surface-2:  #f7f6f2;
  --surface-3:  #eeecea;
  --border:     #e0deda;
  --border-mid: #c8c5c0;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --mono:       'DM Mono', monospace;
  --radius:     8px;
  --radius-lg:  14px;
  --max:        1100px;
  --max-prose:  680px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); background: var(--surface-2); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-3); line-height: 1.75; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.875em; background: var(--surface-3); padding: 2px 6px; border-radius: 4px; color: var(--ink-2); }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,34,54,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-nav);
  height: 56px;
  display: flex; align-items: center;
  padding: 0 2rem;
}
.nav-inner { max-width: var(--max); width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-decoration: none; }
.nav-brand:hover { text-decoration: none; opacity: 0.85; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: #fff; }
.nav-cta { font-size: 12px; font-weight: 600; background: var(--blue); color: #fff; border: none; padding: 8px 18px; border-radius: 6px; cursor: pointer; text-decoration: none !important; transition: opacity 0.15s; white-space: nowrap; }
.nav-cta:hover { opacity: 0.85; }

/* ── HERO (dark navy) ── */
.hero {
  background: var(--navy);
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(74,158,218,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; max-width: 720px; }
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.7); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.55); line-height: 1.65; max-width: 560px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary { font-family: var(--sans); font-size: 14px; font-weight: 600; background: var(--blue); color: #fff; padding: 12px 24px; border-radius: 8px; text-decoration: none !important; transition: opacity 0.15s; border: none; cursor: pointer; }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { font-family: var(--sans); font-size: 14px; font-weight: 500; background: none; color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.2); padding: 11px 22px; border-radius: 8px; text-decoration: none !important; transition: border-color 0.15s, color 0.15s; cursor: pointer; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline { font-family: var(--sans); font-size: 14px; font-weight: 500; background: none; color: var(--blue); border: 1px solid var(--blue); padding: 11px 22px; border-radius: 8px; text-decoration: none !important; transition: background 0.15s; cursor: pointer; }
.btn-outline:hover { background: var(--blue-dim); }

/* ── SECTIONS ── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.55); }
.section-mid { background: var(--surface-3); }
.section-white { background: var(--surface); }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem; }
.section-eyebrow.light { color: rgba(74,158,218,0.8); }

/* ── GRID LAYOUTS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ── CARDS ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.card-dark { background: var(--navy-mid); border: 1px solid var(--border-nav); border-radius: var(--radius-lg); padding: 1.75rem; }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.5); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; }
.card-accent { border-top: 3px solid var(--blue); }

/* ── SKILL CARDS ── */
.skill-card { background: var(--navy-mid); border: 1.5px solid var(--border-nav); border-radius: var(--radius-lg); padding: 1.75rem; transition: border-color 0.2s; }
.skill-card:hover { border-color: rgba(74,158,218,0.4); }
.skill-cmd { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--blue); background: rgba(74,158,218,0.1); border: 1px solid rgba(74,158,218,0.2); border-radius: 5px; padding: 3px 9px; display: inline-block; margin-bottom: 0.75rem; }
.skill-card h3 { color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: 0.4rem; }
.skill-card p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.55; }
.skill-output { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border-nav); }
.skill-output span { color: rgba(74,158,218,0.7); }

/* ── STEPS ── */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-top: 2px; border: 1.5px solid var(--border-nav); }
.step-content h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.step-content p { font-size: 0.9rem; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--navy); padding: 4rem 2rem; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.5); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); border-top: 1px solid var(--border-nav); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-col .footer-brand { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; display: block; margin-bottom: 0.75rem; }
.footer-brand-col p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.6; }
.footer-col h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border-nav); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .site-nav .nav-cta { display: none; }
}
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* ── PROSE ── */
.prose { max-width: var(--max-prose); }
.prose h2 { margin: 2.5rem 0 0.75rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0.75rem 0 1rem 1.5rem; }
.prose ul li { margin-bottom: 0.4rem; color: var(--ink-3); }

/* ── DIVIDER ── */
hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.divider-nav { border-top-color: var(--border-nav); }

/* ── BADGE ── */
.badge { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.badge-blue { background: rgba(74,158,218,0.15); color: var(--blue); border: 1px solid rgba(74,158,218,0.3); }
.badge-teal { background: rgba(45,212,191,0.12); color: #2dd4bf; border: 1px solid rgba(45,212,191,0.25); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-2 { animation: fadeUp 0.5s 0.1s ease both; }
.fade-up-3 { animation: fadeUp 0.5s 0.2s ease both; }
