/* ============================================================
   DottorCorpo — Landing page
   Modern Bauhaus design system (see /DESIGN_SYSTEM.md)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --orange: #ff6b2c;
  --orange-dark: #e2521a;
  --peach: #ffc1a8;
  --peach-soft: #ffe7da;
  --lime: #ccff00;
  --lime-dark: #a6cc00;
  --ink: #1f2a30;
  --ink-soft: #2b3942;

  /* Surfaces */
  --cream: #f7ffe0;
  --bg-alt: #fafaf8;
  --white: #ffffff;

  /* Text */
  --fg: #1f2a30;
  --fg-secondary: #3a3a3a;
  --fg-muted: #6b6b66;
  --border: #d9dbd0;

  /* Semantic */
  --success: #2fbf71;

  /* Type */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Shape */
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.25rem;
  --r-2xl: 1.5rem;
  --r-3xl: 2rem;
  --r-full: 9999px;

  /* Hard shadows (signature) */
  --shadow-hard: 6px 6px 0 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 0 var(--ink);
  --shadow-hard-lg: 10px 10px 0 0 var(--ink);
  --shadow-hard-primary: 6px 6px 0 0 var(--orange);
  --shadow-soft: 0 18px 40px -24px rgba(31, 42, 48, 0.4);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --maxw: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--fg);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- Atmosphere: faint grain + grid ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--orange);
}

.highlight {
  position: relative;
  white-space: nowrap;
}
.highlight--orange {
  color: var(--orange);
}
.highlight--mark {
  background: var(--lime);
  color: var(--ink);
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 0.1em;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  z-index: 2;
}

.section-pad {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--ink);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-hard-sm);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--ink);
}
.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.btn svg {
  transition: transform 0.18s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn--accent {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--ink);
  --btn-fg: var(--cream);
}
.btn--lg {
  padding: 1.15rem 2rem;
  font-size: 1.0625rem;
}
.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--ink);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.brand b {
  color: var(--orange);
}

.nav__links {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}
.nav__links a {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--fg-secondary);
  position: relative;
  padding: 0.25rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links a:hover::after {
  width: 100%;
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.85rem, 6.2vw, 5.25rem);
  margin-block: 1.4rem 1.5rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--fg-secondary);
  max-width: 34ch;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

/* Stats row */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
}
.stat__num em {
  color: var(--orange);
  font-style: normal;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-top: 0.35rem;
}

/* Hero geometric collage */
.collage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.collage__tile {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: var(--r-2xl);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.collage svg {
  width: 100%;
  height: 100%;
}
.t1 {
  inset: 0 38% 52% 0;
  background: var(--orange);
  box-shadow: var(--shadow-hard);
}
.t2 {
  inset: 0 0 56% 46%;
  background: var(--ink);
  border-radius: var(--r-full) var(--r-2xl) var(--r-2xl) var(--r-2xl);
}
.t3 {
  inset: 52% 56% 0 0;
  background: var(--lime);
}
.t4 {
  inset: 48% 0 0 30%;
  background: var(--peach);
  box-shadow: var(--shadow-hard-sm);
}
.collage__badge {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-hard-sm);
  padding: 0.7rem 1.1rem 0.7rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.collage__badge .dot {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--success);
  color: var(--white);
  display: grid;
  place-items: center;
  flex: none;
}
.float {
  animation: float 7s var(--ease) infinite;
}
.float--2 {
  animation-delay: -2.3s;
}
.float--3 {
  animation-delay: -4.6s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-block: 1rem;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: var(--r-full);
  background: var(--lime);
  flex: none;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Dual path (core navigation) ---------- */
.paths__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-block: 1rem 1.1rem;
}
.section-lead {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 50ch;
}
.paths__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.path-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--r-3xl);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-hard);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.path-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hard-lg);
}
.path-card--customer {
  background: var(--white);
}
.path-card--pro {
  background: var(--ink);
  color: var(--cream);
}
.path-card--pro h3,
.path-card--pro .path-card__num {
  color: var(--cream);
}
.path-card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  width: fit-content;
}
.path-card--customer .path-card__tag {
  background: var(--peach-soft);
  color: var(--orange-dark);
}
.path-card--pro .path-card__tag {
  background: var(--lime);
  color: var(--ink);
}
.path-card h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin-block: 1.25rem 0.85rem;
}
.path-card p {
  color: var(--fg-secondary);
  margin-bottom: 1.5rem;
}
.path-card--pro p {
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}
.path-card__list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.path-card__list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.98rem;
}
.path-card__list .tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.path-card--customer .tick {
  background: var(--orange);
  color: var(--white);
}
.path-card--pro .tick {
  background: var(--lime);
  color: var(--ink);
}
.path-card__foot {
  margin-top: auto;
}
.path-card__deco {
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: var(--r-full);
  opacity: 0.5;
  pointer-events: none;
}
.path-card--customer .path-card__deco {
  background: var(--lime);
}
.path-card--pro .path-card__deco {
  background: var(--orange);
  opacity: 0.85;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-2xl);
  padding: 2rem 1.75rem;
  position: relative;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.step:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.step__num::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: var(--r-full);
  align-self: center;
}
.step h3 {
  font-size: 1.3rem;
  margin-block: 1rem 0.6rem;
}
.step p {
  color: var(--fg-secondary);
  font-size: 0.98rem;
}

/* ---------- Features ---------- */
.features {
  background: var(--bg-alt);
  border-block: 2px solid var(--ink);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.feat {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-2xl);
  padding: 1.75rem 1.5rem;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.feat:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-sm);
}
.feat__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.feat:nth-child(1) .feat__icon {
  background: var(--orange);
  color: var(--white);
}
.feat:nth-child(2) .feat__icon {
  background: var(--lime);
  color: var(--ink);
}
.feat:nth-child(3) .feat__icon {
  background: var(--peach);
  color: var(--ink);
}
.feat:nth-child(4) .feat__icon {
  background: var(--ink);
  color: var(--lime);
}
.feat h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.feat p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
}

/* ---------- Stats band ---------- */
.band {
  background: var(--ink);
  color: var(--cream);
  border-block: 2px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.band__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--lime);
}
.band__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  margin-top: 0.6rem;
}

/* ---------- Final CTA ---------- */
.cta {
  text-align: center;
}
.cta__box {
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: var(--r-3xl);
  box-shadow: var(--shadow-hard-lg);
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta__box h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 18ch;
  margin-inline: auto;
}
.cta__box p {
  color: color-mix(in srgb, var(--white) 92%, transparent);
  font-size: 1.15rem;
  max-width: 44ch;
  margin: 1.1rem auto 2rem;
}
.cta__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta__box .deco {
  position: absolute;
  border-radius: var(--r-full);
  border: 2px solid var(--ink);
  pointer-events: none;
}
.cta__box .deco--1 {
  width: 12rem;
  height: 12rem;
  left: -4rem;
  bottom: -5rem;
  background: var(--lime);
}
.cta__box .deco--2 {
  width: 7rem;
  height: 7rem;
  right: -2rem;
  top: -2.5rem;
  background: var(--ink);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
}
.footer .brand {
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer__about {
  color: color-mix(in srgb, var(--cream) 65%, transparent);
  max-width: 32ch;
  font-size: 0.96rem;
}
.footer__col h4 {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.1rem;
}
.footer__col a {
  display: block;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
  padding: 0.35rem 0;
  font-size: 0.96rem;
  transition: color 0.18s var(--ease);
}
.footer__col a:hover {
  color: var(--lime);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  font-family: var(--font-mono);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
[data-delay="1"] {
  transition-delay: 0.08s;
}
[data-delay="2"] {
  transition-delay: 0.16s;
}
[data-delay="3"] {
  transition-delay: 0.24s;
}
[data-delay="4"] {
  transition-delay: 0.32s;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .collage {
    max-width: 460px;
    margin-inline: auto;
    order: -1;
  }
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .band__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__cta .btn--ghost {
    display: none;
  }
  .nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--ink);
    border-radius: var(--r-md);
    background: var(--white);
  }
  .paths__grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0 1.25rem;
  }
  .mobile-menu.open {
    display: flex;
  }
  .mobile-menu a {
    padding: 0.85rem 0.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu .btn {
    margin-top: 0.75rem;
  }
}

@media (max-width: 460px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
