/* ============================================
   Catalyze — Landing Page Styles
   Design System: Uber (uber-design.md)
   ============================================ */

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

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

body {
  font-family: 'DM Sans', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #000;
  background: #fff;
}

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

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

/* --- Typography --- */
.display-hero {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.23;
  color: #000;
}

.section-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.22;
  color: #000;
}

.card-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

.sub-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.33;
  color: #000;
}

.small-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.40;
  color: #000;
}

.body-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
}

.caption-text {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  color: #4b4b4b;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: 1136px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 150ms ease;
}

.nav-cta {
  background: #000 !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 999px;
  font-size: 0.875rem !important;
  font-weight: 500;
  transition: background-color 150ms ease;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    background: #efefef;
  }

  .nav-cta:hover {
    background: #333 !important;
  }

  .nav-mobile-toggle:hover {
    background: #efefef;
  }
}

/* --- Nav Dropdown --- */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-trigger {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown-trigger:hover {
    background: #efefef;
  }
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
  padding: 16px 20px;
  z-index: 1001;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-wrapper.open .nav-dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: dropdownEnter 200ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes dropdownEnter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 24px;
  min-width: 480px;
}

.nav-dropdown a {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #000;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown a:hover {
    background: #efefef;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-wrapper.open .nav-dropdown {
    animation: none;
  }
}

.nav-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #000;
  margin: 3px auto;
}

/* --- Sections --- */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section--white {
  background: #fff;
  color: #000;
}

.section--black {
  background: #000;
  color: #fff;
}

.section--black .section-heading,
.section--black .sub-heading,
.section--black .small-heading {
  color: #fff;
}

.section--black .body-text,
.section--black .caption-text {
  color: #afafaf;
}

.section-inner {
  width: 100%;
  max-width: 1136px;
  padding: 0 24px;
}

/* --- Hero --- */
.hero {
  padding: 96px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* --- Buttons --- */
.btn-black {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 100ms ease-out;
}

.btn-black:active {
  transform: scale(0.97);
}

.btn-white {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 100ms ease-out;
}

.btn-white:active {
  transform: scale(0.97);
}

.btn-chip {
  display: inline-block;
  background: #efefef;
  color: #000;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.14;
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 100ms ease-out;
}

.btn-chip:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn-black:hover {
    background: #333;
  }

  .btn-white:hover {
    background: #e2e2e2;
  }

  .btn-chip:hover {
    background: #e2e2e2;
  }
}

/* --- Problem Section --- */
.problem {
  padding: 80px 0;
}

.problem-header {
  text-align: center;
  margin-bottom: 56px;
}

.problem-header h2 {
  margin-bottom: 16px;
}

.problem-header p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
  max-width: 560px;
  margin: 0 auto;
}

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

.problem-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
}

.problem-card-icon {
  margin-bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-card h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.40;
  color: #000;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  color: #4b4b4b;
}

/* --- Services Section --- */
.services {
  padding: 80px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header h2 {
  margin-bottom: 16px;
}

.services-header p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #afafaf;
  max-width: 520px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
  transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 6px 20px 0px;
  }
}

.section--black .service-card {
  background: #fff;
}

.section--black .service-card h3 {
  color: #000;
}

.section--black .service-card p {
  color: #4b4b4b;
}

.service-card-chip {
  display: inline-block;
  background: #efefef;
  color: #000;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.33;
  color: #000;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
}

/* --- How It Works --- */
.how-it-works {
  padding: 80px 0;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 56px;
}

.how-it-works-header h2 {
  margin-bottom: 16px;
}

.how-it-works-header p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
  max-width: 520px;
  margin: 0 auto;
}

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

.step {
  text-align: left;
}

.step-number {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.23;
  color: #000;
  margin-bottom: 16px;
}

.step h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.40;
  color: #000;
  margin-bottom: 8px;
}

.step p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
}

/* --- Pricing --- */
.pricing {
  padding: 80px 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}

.pricing-header h2 {
  margin-bottom: 16px;
}

.pricing-header p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #afafaf;
  max-width: 520px;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
  display: flex;
  flex-direction: column;
}

.pricing-card-chip {
  display: inline-block;
  background: #efefef;
  color: #000;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 20px;
  align-self: flex-start;
}

.pricing-starting {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b4b4b;
  margin-bottom: 4px;
}

.pricing-asterisk {
  font-size: 1.5rem;
  vertical-align: super;
  color: #afafaf;
  font-weight: 400;
}

.pricing-amount {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.23;
  color: #000;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  color: #4b4b4b;
  padding: 10px 0;
  border-bottom: 1px solid #efefef;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 6px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.section--black .pricing-card {
  background: #fff;
}

.section--black .pricing-amount {
  color: #000;
}

.section--black .pricing-period {
  color: #4b4b4b;
}

.section--black .pricing-features li {
  color: #4b4b4b;
  border-color: #efefef;
}

.pricing-disclaimer {
  margin-top: 32px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.67;
  color: #afafaf;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Urgency --- */
.urgency {
  padding: 80px 0;
  text-align: center;
}

.urgency h2 {
  margin-bottom: 16px;
}

.urgency p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 96px 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.50;
  color: #afafaf;
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-section .small-note {
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #afafaf;
}

/* --- Footer --- */
.footer {
  padding: 48px 0 32px;
}

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

.footer-col h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #afafaf;
  padding: 4px 0;
  transition: color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: #fff;
  }
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.75rem;
  font-weight: 400;
  color: #afafaf;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .display-hero {
    font-size: 2.25rem;
  }

  .hero .section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-illustration {
    max-width: 360px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .display-hero {
    font-size: 2rem;
  }

  .section-heading {
    font-size: 1.75rem;
  }

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

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

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-dropdown-wrapper {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .problem,
  .services,
  .how-it-works,
  .pricing,
  .urgency,
  .cta-section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .display-hero {
    font-size: 1.75rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .service-card,
  .pricing-card,
  .problem-card {
    padding: 24px 20px;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn-black,
  .hero-ctas .btn-chip {
    width: 100%;
    text-align: center;
  }

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

/* --- Mobile Menu --- */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 24px;
}

.nav-mobile-menu.active {
  display: block;
}

.nav-mobile-menu > a {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  padding: 16px 0;
  border-bottom: 1px solid #efefef;
}

.mobile-menu-section {
  padding-top: 16px;
}

.mobile-menu-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #afafaf;
  text-transform: uppercase;
  padding: 8px 0;
}

.mobile-menu-section a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  padding: 10px 0;
  border-bottom: 1px solid #efefef;
}

/* --- Industry Pages --- */
.hero--centered {
  padding: 96px 0 64px;
}

.hero--centered .section-inner {
  display: block;
  text-align: center;
}

.hero--centered .hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero--centered .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.hero--centered .hero-ctas {
  justify-content: center;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b4b4b;
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

.solution-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
  transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (hover: hover) and (pointer: fine) {
  .solution-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 6px 20px 0px;
  }
}

.solution-card h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.40;
  color: #000;
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.50;
  color: #4b4b4b;
}

.section--black .solution-card {
  background: #fff;
}

.section--black .solution-card h3 {
  color: #000;
}

.section--black .solution-card p {
  color: #4b4b4b;
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .hero--centered {
    padding: 80px 0 48px;
  }
}

/* --- Hero Intro Animation --- */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  opacity: 0;
}

.hero-visual {
  opacity: 0;
}

body.intro-ready .hero-content {
  animation: heroEnter 500ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

body.intro-ready .hero-visual {
  animation: heroEnter 500ms cubic-bezier(0.23, 1, 0.32, 1) 120ms forwards;
}

body.skip-intro .hero-content,
body.skip-intro .hero-visual {
  opacity: 1;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-visual {
    opacity: 1 !important;
    animation: none !important;
  }

  .service-card {
    transition: none;
  }

  .btn-black,
  .btn-white,
  .btn-chip {
    transition: none;
  }

  .nav-links a,
  .nav-cta,
  .footer-col a {
    transition: none;
  }
}
