@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --midnight: #0B1F3A;
  --command: #1A4F80;
  --blueprint: #2E6DA4;
  --signal: #7EA8CC;
  --frost: #E8EEF4;
  --apex: #C8963C;
  --apex-bg: #FBF5EA;
  --clearfield: #F8F9FB;
  --text-primary: #0F1E2E;
  --text-secondary: #3A5A78;
  --text-tertiary: #6B8AA3;
  --border: #D0DCE8;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--clearfield);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  background: var(--midnight);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--apex);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text strong { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.01em; }
.nav-logo-text span { font-size: 8px; color: var(--signal); letter-spacing: 0.14em; }
.nav-back { font-size: 12px; color: var(--signal); text-decoration: none; letter-spacing: 0.06em; }
.nav-back:hover { color: #fff; }

/* HERO */
.hero {
  background: var(--midnight);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 320px; height: 320px;
  border: 1px solid var(--command);
  transform: rotate(0deg);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  opacity: 0.2;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 60px;
  width: 200px; height: 200px;
  border: 1px solid var(--blueprint);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  opacity: 0.12;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 500;
  color: var(--apex); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300; color: #fff;
  line-height: 1.15; margin-bottom: 0.5rem;
}
.hero h1 em { font-style: normal; color: var(--signal); font-weight: 700; }
.hero-sub {
  font-size: 1rem; color: var(--signal);
  max-width: 560px; margin: 1rem auto 0;
  opacity: 0.8;
}

/* CONTAINER */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* SECTION */
.section { padding: 4rem 0; }
.section-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--apex); text-transform: uppercase; margin-bottom: 0.75rem;
}
.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300; color: var(--midnight);
  line-height: 1.25; margin-bottom: 1rem;
}
.section p { color: var(--text-secondary); font-size: 0.95rem; max-width: 640px; }

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,31,58,0.08); }
.card-num {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--apex); margin-bottom: 0.75rem;
}
.card-title { font-size: 1rem; font-weight: 600; color: var(--midnight); margin-bottom: 0.5rem; }
.card-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.card-cta {
  margin-top: 1.25rem;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--blueprint);
}
.card-tag {
  display: inline-block;
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 3px;
  margin-bottom: 0.75rem;
}
.tag-free { background: #EAF3DE; color: #3B6D11; }
.tag-gated { background: var(--frost); color: var(--command); }
.tag-tool { background: var(--apex-bg); color: #7A5420; }

/* GATE FORM */
.gate {
  background: var(--midnight);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.gate h3 { font-size: 1.25rem; font-weight: 300; color: #fff; margin-bottom: 0.5rem; }
.gate p { font-size: 0.875rem; color: var(--signal); margin-bottom: 1.75rem; opacity: 0.85; }
.gate-form { display: flex; flex-direction: column; gap: 0.75rem; }
.gate-form input {
  padding: 0.75rem 1rem;
  border: 0.5px solid var(--command);
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.gate-form input::placeholder { color: var(--signal); opacity: 0.5; }
.gate-form input:focus { outline: none; border-color: var(--signal); }
.btn-primary {
  padding: 0.8rem 1.5rem;
  background: var(--apex);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.btn-primary:hover { background: #b07e2a; }
.gate-fine {
  font-size: 11px; color: var(--signal);
  opacity: 0.5; margin-top: 0.75rem;
}

/* CONTENT BODY */
.content { max-width: 680px; margin: 0 auto; padding: 3rem 1.5rem; }
.content h2 { font-size: 1.5rem; font-weight: 500; color: var(--midnight); margin: 2rem 0 0.75rem; }
.content h3 { font-size: 1.1rem; font-weight: 600; color: var(--midnight); margin: 1.5rem 0 0.5rem; }
.content p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.75; }
.content ul { margin: 0.5rem 0 1rem 1.25rem; }
.content ul li { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.4rem; line-height: 1.7; }
.content blockquote {
  border-left: 3px solid var(--apex);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--apex-bg);
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
}

/* STAT CALLOUT */
.stat-row { display: flex; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.stat-box {
  flex: 1; min-width: 160px;
  background: var(--midnight);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.stat-box .num { font-size: 2rem; font-weight: 300; color: var(--apex); display: block; }
.stat-box .label { font-size: 11px; color: var(--signal); letter-spacing: 0.04em; }

/* CTA STRIP */
.cta-strip {
  background: var(--frost);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.cta-strip h3 { font-size: 1.1rem; font-weight: 500; color: var(--midnight); margin-bottom: 0.5rem; }
.cta-strip p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.25rem; }

/* FOOTER */
footer {
  background: var(--midnight);
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 2px solid var(--apex);
}
footer p { font-size: 11px; color: var(--signal); opacity: 0.5; letter-spacing: 0.06em; }
footer a { color: var(--signal); opacity: 0.7; text-decoration: none; }
footer a:hover { opacity: 1; }

/* TOOL / CALCULATOR */
.tool-box {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}
.tool-box label { font-size: 12px; font-weight: 500; color: var(--text-secondary); display: block; margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.tool-box input[type=range] { width: 100%; margin-bottom: 0.25rem; accent-color: var(--command); }
.tool-box input[type=number], .tool-box select {
  width: 100%; padding: 0.6rem 0.75rem;
  border: 0.5px solid var(--border); border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: var(--text-primary); background: var(--clearfield);
  margin-bottom: 1rem;
}
.tool-result {
  background: var(--midnight);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}
.tool-result .big { font-size: 2.5rem; font-weight: 300; color: var(--apex); }
.tool-result .label { font-size: 12px; color: var(--signal); margin-top: 0.25rem; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

/* DIVIDER */
.divider { border: none; border-top: 0.5px solid var(--border); margin: 2.5rem 0; }

/* INFOGRAPHIC */
.infographic {
  background: var(--midnight);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 2rem 0;
}
.infographic h4 { font-size: 11px; font-weight: 500; color: var(--apex); letter-spacing: 0.14em; margin-bottom: 1.5rem; }
.info-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 0.5px solid rgba(46,109,164,0.2);
}
.info-row:last-child { border-bottom: none; }
.info-icon { font-size: 1.25rem; width: 32px; flex-shrink: 0; text-align: center; }
.info-text { flex: 1; }
.info-text strong { font-size: 0.875rem; color: #fff; display: block; margin-bottom: 0.2rem; }
.info-text span { font-size: 0.8rem; color: var(--signal); opacity: 0.75; }
.info-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 3px;
  background: rgba(200,150,60,0.15); color: var(--apex);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .gate { padding: 2rem 1.25rem; }
  .stat-row { flex-direction: column; }
}
