/* ============================================
   DEVVY CAPITAL — Landing Page Styles
   Brand Guidelines v1.0
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0D1B2A;
  --navy-mid: #111C27;
  --copper: #B87333;
  --ivory: #F8F6F3;
  --off-white: #EDEAE5;
  --charcoal: #2C2C2C;
  --slate: #6B7D8D;
  --warm-grey: #9EA6AD;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-width: 1200px;
  --narrow-width: 880px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--ivory);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

.container--narrow {
  max-width: var(--narrow-width);
}

.text-white { color: var(--white); }
.text-slate { color: var(--slate); }
.copper-dot { color: var(--copper); }

.overline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.overline--copper {
  color: var(--copper);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  color: var(--white);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--charcoal);
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.3;
}

p {
  line-height: 1.6;
}

/* --- Button --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 16px 36px;
  border: 1.5px solid var(--copper);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: transparent;
  color: var(--white);
}

.btn--primary:hover {
  background: var(--copper);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--secondary {
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.nav--scrolled {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(184, 115, 51, 0.15);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.nav__cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--copper);
  padding: 10px 24px;
  border: 1px solid rgba(184, 115, 51, 0.4);
  transition: all 0.3s ease;
}

.nav__cta:hover {
  border-color: var(--copper);
  background: rgba(184, 115, 51, 0.1);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding: 100px 0 24px;
}

.hero__particles {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: var(--narrow-width);
}

.hero__headline {
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 18px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Metrics Bar --- */
.metrics {
  background: var(--navy-mid);
  padding: 40px 0 28px;
  text-align: center;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 24px;
}

.metrics__grid--five {
  grid-template-columns: repeat(5, 1fr);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.metric__number {
  font-family: var(--font-body);
  font-size: 42px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  height: 44px;
  display: flex;
  align-items: center;
}

.metric__number--text {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.copper { color: var(--copper); }

.metric__label {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metrics__disclaimer {
  font-size: 11px;
  color: var(--warm-grey);
  opacity: 0.6;
}

/* --- Sections --- */
.section {
  padding: 64px 0;
}

.section--navy {
  background: var(--navy);
}

.section--ivory {
  background: var(--ivory);
}

.section--dark {
  background: var(--navy-mid);
}

.section--cta {
  background: var(--navy);
  padding: 64px 0;
}

.section__sub {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 600px;
}

.section__cta {
  text-align: center;
  margin-top: 40px;
}

/* --- Problem Section --- */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.problem__card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--off-white);
  transition: transform 0.3s ease;
}

.problem__card:hover {
  transform: translateY(-4px);
}

.problem__icon {
  color: var(--copper);
  margin-bottom: 20px;
}

.problem__card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.problem__card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

/* --- Steps (How It Works) --- */
.steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step__number {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 600;
  color: var(--copper);
  line-height: 1;
  min-width: 72px;
  opacity: 0.7;
}

.step__content h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 10px;
}

.step__content p {
  font-size: 16px;
  line-height: 1.65;
}

/* --- Features Grid --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  margin-top: 32px;
}

.feature {
  padding: 0;
}

.feature__icon {
  color: var(--copper);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

/* --- Track Record --- */
.track__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.track__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 28px;
  text-align: center;
}

.track__stat {
  display: block;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.track__stat--text {
  font-family: var(--font-heading);
  font-size: 24px;
}

.track__desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.4;
}

.track__disclaimer {
  font-size: 11px;
  color: var(--warm-grey);
  opacity: 0.5;
  text-align: center;
  margin-top: 32px;
}

/* --- Team Credentials --- */
.team__credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.credential {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border: 1px solid var(--off-white);
}

.credential__logo {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.credential p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

/* --- FAQ --- */
.faq {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  padding: 24px 0;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq__question:hover {
  color: var(--copper);
}

.faq__chevron {
  color: var(--copper);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__answer.open {
  max-height: 300px;
}

.faq__answer p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  padding-bottom: 24px;
}

/* --- Final CTA --- */
.cta__content {
  text-align: center;
}

.cta__content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta__content p {
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  padding: 36px 0 32px;
  border-top: 1px solid rgba(184, 115, 51, 0.15);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.footer__legal p:first-child {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
}

.footer__disclaimer {
  font-size: 11px;
  color: var(--warm-grey);
  line-height: 1.7;
  opacity: 0.5;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .problem__grid,
  .team__credentials {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .track__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .metrics__grid--five {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .section { padding: 48px 0; }

  .hero { padding: 90px 0 56px; min-height: auto; }

  h2 { font-size: 28px; }

  .metrics__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .metric__number { font-size: 32px; }

  .track__grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .step__number {
    font-size: 36px;
    min-width: auto;
  }

  .footer__top {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav__cta {
    font-size: 11px;
    padding: 8px 16px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
