/* CReD — CRED Learning & Diagnostics */

:root {
  --color-primary: #060097;
  --color-magenta: #c10fff;
  --color-heading: #1e293b;
  --color-muted: #67768e;
  --color-wash: #f9f6fe;
  --color-white: #ffffff;
  --color-gray: #f2f5f7;
  --color-cta: #ffcd57;
  --color-black: #000000;
  --color-download: #1e3a8a;
  --gradient-brand: linear-gradient(35deg, rgb(6, 0, 151) 0%, rgb(130, 4, 255) 68%, rgb(193, 15, 255) 100%);
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
  --content-width: 1200px;
  --header-height: 110px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-heading);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

body.has-transparent-header {
  padding-top: 0;
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
}

a:hover {
  color: var(--color-magenta);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-heading);
  margin: 0 0 1rem;
}

h1 {
  font-size: 3.56rem;
  line-height: 1.4;
}

h2 {
  font-size: 2.67rem;
}

h3 {
  font-size: 1.33rem;
}

p {
  margin: 0 0 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
}

.site-header.is-solid {
  position: relative;
  background: var(--color-primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 56px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(242, 245, 247, 0.76);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--color-white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-white);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 1rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 40px;
  color: var(--color-heading);
  text-decoration: none;
  font-weight: 500;
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-wash);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 20px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-heading);
}

.btn-cta:hover {
  color: var(--color-heading);
}

.btn-download {
  background: var(--color-download);
  color: var(--color-white);
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
}

.btn-download:hover {
  color: var(--color-white);
}

/* Hero */
.hero {
  background: var(--gradient-brand);
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero-copy p {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-media img {
  width: 100%;
  border-radius: 8px;
}

/* Vision */
.section {
  padding: 100px 0;
}

.section-vision {
  padding-top: 144px;
  padding-bottom: 100px;
  background: var(--color-white);
}

.section-vision h2 {
  text-align: center;
  margin-bottom: 3.5rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.vision-item {
  text-align: center;
}

.vision-item img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.5rem;
}

.vision-item h3 {
  margin-bottom: 0.75rem;
}

.vision-item p {
  color: var(--color-muted);
  margin: 0;
}

/* Solution */
.section-solution {
  background: var(--color-white);
  padding: 143px 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.solution-copy {
  padding-right: 40px;
}

.solution-copy h2 strong {
  font-weight: 600;
}

/* Bottom CTA band */
.section-cta {
  background: var(--gradient-brand);
  padding: 100px 0;
  text-align: center;
}

.section-cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

.section-cta h2 {
  color: var(--color-white);
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Inner pages */
.page-header-spacer {
  height: 0;
}

.page-content {
  padding: 80px 0 100px;
  background: var(--color-white);
}

.page-content .container {
  max-width: 800px;
}

.page-content.wide .container {
  max-width: var(--content-width);
}

.page-title {
  font-size: 2.67rem;
  margin-bottom: 2rem;
}

.page-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-wash);
  font-style: italic;
  color: var(--color-heading);
}

.page-content blockquote p {
  margin: 0;
}

.cta-stack {
  margin-top: 2rem;
}

.cta-stack p {
  margin-bottom: 0.75rem;
}

.cta-stack .btn {
  margin-bottom: 2rem;
}

.research-title {
  font-size: 1.75rem;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.research-actions {
  margin-bottom: 2.5rem;
}

.keywords {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-gray);
  padding: 28px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 90;
}

.scroll-top.is-visible {
  display: flex;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 992px) {
  :root {
    --header-height: 100px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-copy {
    padding-right: 0;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 32px);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .container,
  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section,
  .section-vision,
  .section-solution,
  .section-cta,
  .page-content {
    padding: 64px 0;
  }

  .btn {
    padding: 16px 32px;
    font-size: 18px;
  }

  .site-logo img {
    height: 44px;
  }
}
