:root {
  --navy: #10213e;
  --ink: #091323;
  --cream: #fff3cf;
  --paper: #fff7dc;
  --red: #b91920;
  --orange: #f47b20;
  --gold: #ffc94f;
  --blue: #1879d5;
  --green: #78a92c;
  --text: #142038;
  --muted: #5f6b7e;
  --line: rgba(20, 32, 56, 0.14);
  --shadow: 0 24px 70px rgba(9, 19, 35, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(244, 123, 32, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(24, 121, 213, 0.16), transparent 30rem),
    linear-gradient(180deg, #fff1c6 0%, #fff8e1 44%, #f4e5bf 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  left: 1rem;
  opacity: 0;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  z-index: 50;
}

.skip-link:focus {
  background: var(--gold);
  color: var(--ink);
  opacity: 1;
}

.site-header {
  align-items: center;
  background: rgba(9, 19, 35, 0.93);
  border-bottom: 4px solid var(--red);
  color: white;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  gap: 0.75rem;
  white-space: nowrap;
}

.brand span span {
  color: var(--gold);
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border: 2px solid var(--gold);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--gold);
}

.hero {
  background: var(--ink);
  border-bottom: 7px solid var(--red);
}

.hero img {
  width: 100%;
}

.intro,
.section {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}

.intro {
  display: grid;
  gap: clamp(1.4rem, 4vw, 4rem);
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.02;
  margin: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(3.2rem, 8vw, 7rem);
  letter-spacing: -0.05em;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
}

h3 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h4 {
  color: var(--navy);
  font-size: 1.22rem;
}

.intro-copy {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

.principle,
.challenge,
.final-cta,
.featured,
.team-section {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.principle {
  align-items: center;
  background: var(--navy);
  color: white;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 1180px;
}

.principle h2,
.featured h2,
.team-section h2,
.challenge h2,
.final-cta h2 {
  color: white;
}

.principle .eyebrow,
.featured .eyebrow,
.team-section .eyebrow,
.challenge .eyebrow,
.final-cta .eyebrow {
  color: var(--gold);
}

.principle p,
.featured p,
.team-section p,
.challenge p,
.final-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.featured,
.team-section,
.final-cta {
  background:
    linear-gradient(135deg, rgba(185, 25, 32, 0.18), transparent 40%),
    var(--ink);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.7rem;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.directory {
  max-width: 1320px;
}

.category {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(9, 19, 35, 0.08);
  margin-top: 1.4rem;
  overflow: hidden;
}

.category h3 {
  background: linear-gradient(135deg, var(--navy), #173c74);
  border-bottom: 4px solid var(--red);
  padding: 1.25rem 1.4rem;
}

.card-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--line);
}

.card-grid article {
  background: var(--paper);
  display: grid;
  gap: 0.55rem;
  min-height: 15rem;
  padding: 1.1rem;
}

.card-grid span {
  color: var(--red);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.card-grid p {
  color: var(--muted);
  margin: 0;
}

.card-grid small {
  align-self: end;
  background: rgba(24, 121, 213, 0.08);
  border-left: 4px solid var(--blue);
  color: #27425f;
  display: block;
  font-weight: 700;
  padding: 0.65rem;
}

.help-link {
  align-self: end;
  background: var(--red);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
  padding: 0.58rem 0.75rem;
  text-transform: uppercase;
}

.help-link:hover {
  background: var(--navy);
}

.help-section {
  background:
    linear-gradient(135deg, rgba(24, 121, 213, 0.18), transparent 42%),
    var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow);
  color: white;
}

.help-section h2,
.help-section h3 {
  color: white;
}

.help-section .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  display: grid;
  gap: 1rem;
  min-height: 32rem;
  padding: 1.35rem;
  position: relative;
}

.pricing-card.quick {
  border-top: 6px solid var(--blue);
}

.pricing-card.popular {
  background:
    linear-gradient(145deg, rgba(255, 201, 79, 0.2), rgba(244, 123, 32, 0.08)),
    rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 201, 79, 0.66);
  border-top: 6px solid var(--gold);
  transform: translateY(-0.75rem);
}

.pricing-card.custom {
  border-top: 6px solid var(--red);
}

.popular-badge,
.tier-label {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.popular-badge {
  background: var(--gold);
  border-radius: 999px;
  color: var(--ink);
  justify-self: start;
  padding: 0.42rem 0.75rem;
}

.pricing-card h3 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.04em;
}

.tier-line,
.pricing-card li,
.pricing-note {
  color: rgba(255, 255, 255, 0.76);
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.pricing-card li {
  margin: 0.45rem 0;
}

.pricing-card .button {
  align-self: end;
}

.pricing-note {
  margin: 1.5rem auto 0;
  max-width: 880px;
  text-align: center;
}

.builder-form {
  background: var(--paper);
  border: 1px solid rgba(255, 201, 79, 0.42);
  border-radius: 26px;
  color: var(--text);
  margin-top: 2rem;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.form-heading {
  margin-bottom: 1.2rem;
}

.form-heading h3 {
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.2rem;
}

.form-grid label {
  color: var(--navy);
  display: grid;
  font-weight: 900;
  gap: 0.45rem;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: white;
  border: 2px solid rgba(16, 33, 62, 0.16);
  border-radius: 16px;
  color: var(--text);
  font: inherit;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
}

.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
}

.team-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  min-height: 12rem;
  padding: 1.15rem;
}

.team-grid span {
  color: var(--gold);
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.challenge {
  align-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: white;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.button {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 3.1rem;
  padding: 0.85rem 1.2rem;
  text-transform: uppercase;
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  max-width: 980px;
  margin: 0 auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

.site-footer {
  background: var(--ink);
  border-top: 6px solid var(--red);
  color: rgba(255, 255, 255, 0.76);
  padding: 2.2rem 1rem;
  text-align: center;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer strong {
  color: var(--gold);
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid,
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header,
  .intro,
  .principle,
  .challenge,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .nav {
    justify-content: flex-start;
  }

  .card-grid,
  .team-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand {
    white-space: normal;
  }

  .card-grid,
  .team-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
