/* style.css — UnderHype Design System & Components */

/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
  /* Typography */
  --font-display: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* Type Scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Colors — Dark Mode (site default) */
  --color-bg:      #131210;
  --color-surface:  #1C1A17;
  --color-border:  #2E2B26;
  --color-text:    #E2DED6;
  --color-muted:   #9B9589;
  --color-accent:  #C4652A;
  --color-dim:     #4A453D;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ===========================
   GLOBAL LAYOUT
   =========================== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

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

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

/* ===========================
   HEADER
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.header__wordmark {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.header__wordmark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 0.75vw, 1.5rem);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header__wordmark-text .ai-suffix {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.75em;
}

.header__accent-bar {
  width: 2rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 3px;
}

/* ===========================
   ELEMENT LOGO MARK
   =========================== */
.logo-element {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--color-muted);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.logo-element__symbol {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-top: 1px;
}

.logo-element__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 8px;
  line-height: 1;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.logo-element--footer {
  width: 36px;
  height: 36px;
}

.logo-element--footer .logo-element__symbol {
  font-size: 14px;
}

.logo-element--footer .logo-element__sub {
  font-size: 7.5px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.header__nav-link:hover {
  color: var(--color-text);
}

.header__cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive);
}

.header__cta:hover {
  background: #D4753A;
  transform: translateY(-1px);
}

.header__cta:active {
  transform: translateY(0);
}

/* Mobile hamburger */
.header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.header__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  .header__mobile-toggle {
    display: flex;
  }
  .header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(19, 18, 16, 0.98);
    backdrop-filter: blur(12px);
    padding: var(--space-6);
    gap: var(--space-5);
    border-bottom: 1px solid var(--color-border);
  }
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.heading-display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.heading-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.heading-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.body-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-muted);
}

.label-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: var(--color-accent);
}

.btn--primary:hover {
  background: #D4753A;
  box-shadow: 0 4px 20px rgba(196, 101, 42, 0.3);
}

.btn--secondary {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn--large {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.hero__content {
  max-width: 780px;
}

.hero__label {
  margin-bottom: var(--space-6);
}

.hero__headline {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.hero__subhead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: var(--space-10);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ===========================
   THE MOMENT SECTION
   =========================== */
.moment {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.moment__content {
  max-width: 720px;
}

.moment__headline {
  margin-bottom: var(--space-8);
}

.moment__body p {
  margin-bottom: var(--space-6);
}

.moment__body p:last-child {
  margin-bottom: 0;
}

.moment__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-top: var(--space-10);
}

/* ===========================
   PROBLEM SECTION
   =========================== */
.problem__content {
  max-width: 720px;
}

.problem__headline {
  margin-bottom: var(--space-8);
}

.problem__list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-8);
}

.problem__list li {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-muted);
  padding: var(--space-3) 0;
  padding-left: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.6;
  position: relative;
}

.problem__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.problem__list li:first-child {
  border-top: 1px solid var(--color-border);
}

.problem__closer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.4;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.services__headline {
  margin-bottom: var(--space-4);
}

.services__subhead {
  margin-bottom: var(--space-12);
  max-width: 600px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
}

.service-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

.services__note {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 600px;
  line-height: 1.7;
}

.services__note strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===========================
   OUTCOMES SECTION
   =========================== */
.outcomes__headline {
  margin-bottom: var(--space-4);
}

.outcomes__subhead {
  margin-bottom: var(--space-12);
  max-width: 600px;
}

.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.outcome-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
}

.outcome-card__metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.outcome-card__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

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

/* ===========================
   HOW IT WORKS SECTION
   =========================== */
.process {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.process__headline {
  margin-bottom: var(--space-4);
}

.process__subhead {
  margin-bottom: var(--space-12);
  max-width: 600px;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.step {
  position: relative;
}

.step__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

.step__detail {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-3);
  font-style: italic;
}

@media (max-width: 700px) {
  .process__steps {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ===========================
   ASSESSMENT CTA SECTION
   =========================== */
.assessment-cta {
  text-align: center;
}

.assessment-cta__inner {
  max-width: 640px;
  margin-inline: auto;
}

.assessment-cta__headline {
  margin-bottom: var(--space-6);
}

.assessment-cta__body {
  margin-bottom: var(--space-8);
  margin-inline: auto;
}

.assessment-cta__detail {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-4);
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about__content {
  max-width: 720px;
}

.about__label {
  margin-bottom: var(--space-4);
}

.about__headline {
  margin-bottom: var(--space-8);
}

.about__body p {
  margin-bottom: var(--space-5);
}

.about__body p:last-child {
  margin-bottom: 0;
}

.about__signature {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.about__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.about__role {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ===========================
   FINAL CTA SECTION
   =========================== */
.final-cta {
  text-align: center;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}

.final-cta__headline {
  margin-bottom: var(--space-6);
}

.final-cta__body {
  margin-bottom: var(--space-10);
  margin-inline: auto;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.final-cta__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-muted);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__brand-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.footer__wordmark .ai-suffix {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.75em;
}

.footer__accent-bar {
  width: 2rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-end;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__link:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.footer__attribution {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__attribution:hover {
  color: var(--color-text);
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.is-visible {
  opacity: 1;
}

/* Stagger children */
.stagger-children > .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .fade-in:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .fade-in:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .fade-in:nth-child(4) { transition-delay: 240ms; }

/* ===========================
   DIVIDER
   =========================== */
.section-divider {
  width: 3rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: var(--space-8);
}

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */
@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
  }
  .hero__ctas .btn {
    width: 100%;
    text-align: center;
  }
  .final-cta__actions {
    flex-direction: column;
    align-items: center;
  }
  .final-cta__actions .btn {
    width: 100%;
    max-width: 320px;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__links {
    align-items: flex-start;
  }
}
