/* ===== Design tokens ===== */
:root {
  --navy-950: #0b0f24;
  --navy-900: #10173a;
  --navy-800: #171f4d;
  --navy-700: #232c5e;
  --ice: #e9edfb;
  --paper: #f7f7fb;
  --white: #ffffff;
  --ink: #171b2e;
  --ink-soft: #4a4f6b;
  --gold: #c9972f;
  --gold-light: #e0b45a;
  --line: #e3e4ee;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1226;
    --white: #141a38;
    --ink: #eef0fb;
    --ink-soft: #b7bbdb;
    --line: #262d54;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-950);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--font-body); }
h4 { font-size: 1rem; font-weight: 700; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.9em;
}

.section-lede {
  max-width: 640px;
  font-size: 1.08rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; }

.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 36, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}
.logo-mark { color: var(--gold); flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  border-radius: 6px;
}
.main-nav a:hover { color: #fff; }
.main-nav a:active { background: rgba(255,255,255,0.12); }
.main-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  color: #fff;
}
.nav-cta {
  background: var(--gold);
  color: var(--navy-950) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:active { background: rgba(255,255,255,0.1); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,151,47,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff;
  padding: 120px 0 96px;
}
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  max-width: 520px;
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-dark {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: rgba(255,255,255,0.92);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.68); }
.section-tint { background: var(--ice); }
@media (prefers-color-scheme: dark) {
  .section-tint { background: #131a3c; }
}

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 24px; margin-top: 48px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card-icon {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin-bottom: 16px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.94rem; }

/* ===== Methodology phases ===== */
.phase-list { margin-top: 56px; display: flex; flex-direction: column; gap: 40px; }
.phase {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.phase:last-child { border-bottom: none; padding-bottom: 0; }
.phase-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.9;
  line-height: 1;
}
.phase-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.phase-body p { max-width: 620px; }
.phase-output {
  font-size: 0.9rem;
  color: var(--gold-light) !important;
  font-weight: 600;
  margin-top: 8px !important;
}

/* ===== Stats ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat {
  text-align: left;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.tools-label {
  margin-top: 56px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft) !important;
}
.tool-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
}
.tool-tags li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===== Industries ===== */
.industry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.industry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.industry-head h3 { margin: 0; font-size: 1.05rem; }
.industry-card p { margin: 0; font-size: 0.92rem; }

.gap-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.gap-vhigh { background: #fde2e1; color: #9a2a24; }
.gap-high { background: #fdebd3; color: #97591b; }
.gap-medhigh { background: #fdf3d0; color: #8a6d10; }
.gap-med { background: #e6f2e6; color: #35692f; }
@media (prefers-color-scheme: dark) {
  .gap-vhigh { background: #3a1c1c; color: #f3a9a4; }
  .gap-high { background: #3a2c14; color: #f0be80; }
  .gap-medhigh { background: #35300f; color: #e8d27f; }
  .gap-med { background: #16311a; color: #9bd696; }
}

/* ===== Pricing ===== */
.pricing-grid { align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
}
.price-card-featured {
  border-color: var(--gold);
  box-shadow: 0 20px 40px -20px rgba(201,151,47,0.35);
}
.price-flag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gold);
  color: var(--navy-950);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}
.price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
  margin: 6px 0 0;
}
.price span { font-size: 1rem; color: var(--ink-soft); }
.price-note {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 700;
  margin: 4px 0 16px;
}

/* ===== Partners ===== */
.partner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.partner-copy .btn { margin-top: 8px; }
.partner-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.partner-col h4 { color: var(--gold-light); margin-bottom: 16px; }
.partner-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partner-col li {
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
}
.partner-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== About ===== */
.about-layout { max-width: 720px; }

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.15s ease;
}
.linkedin-link:hover { border-color: var(--gold); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hp-field { position: absolute; left: -9999px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  min-height: 1.2em;
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { color: #fff; font-family: var(--font-display); font-size: 1rem; gap: 8px; }
.footer-logo .logo-mark { color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; font-size: 0.8rem; margin: 0; color: rgba(255,255,255,0.4); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-layout, .partner-columns, .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    overflow-y: auto;
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    font-size: 1.05rem;
    padding: 8px 10px;
    margin: 0 -10px;
    width: calc(100% + 20px);
  }
  .nav-toggle { display: flex; }

  .hero { padding: 96px 0 64px; }
  .section { padding: 72px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .phase-number { font-size: 2rem; }
}
