/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 32px) 0 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 85% 10%, rgba(52, 89, 166, 0.1), transparent 70%),
    radial-gradient(40% 40% at 0% 90%, rgba(52, 89, 166, 0.06), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(46px, 7.2vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.048em;
}

.hero-title .accent {
  color: var(--blue);
}

.hero-sub {
  max-width: 520px;
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-2);
}

.hero-location svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

/* Hero visual */

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(160deg, #f4f7fc 0%, #e2e9f6 100%);
}

.hv-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(52, 89, 166, 0.2) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 72%);
}

.hv-glow {
  position: absolute;
  left: 15%;
  top: 15%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 89, 166, 0.34), transparent 65%);
  filter: blur(24px);
  animation: glow-pulse 7s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  to { transform: scale(1.15); opacity: 0.7; }
}

.hv-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border: 1px dashed rgba(52, 89, 166, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hv-orbit::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(52, 89, 166, 0.15);
}

.hv-orbit-1 {
  width: 54%;
  animation: orbit 36s linear infinite;
}

.hv-orbit-2 {
  width: 84%;
  animation: orbit 60s linear infinite reverse;
}

@keyframes orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hv-layer {
  position: absolute;
  will-change: transform;
}

.hv-pop {
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  transition: opacity 0.7s ease, transform 1s var(--ease);
  transition-delay: calc(0.45s + 0.12s * var(--i, 0));
}

.hero-visual.is-in .hv-pop {
  opacity: 1;
  transform: none;
}

.hv-float {
  animation: float 6s ease-in-out infinite alternate;
  animation-delay: calc(-1.3s * var(--i, 0));
}

@keyframes float {
  from { transform: translateY(-7px); }
  to { transform: translateY(7px); }
}

.hv-center {
  left: 50%;
  top: 50%;
}

.hv-mark {
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  display: grid;
  place-items: center;
  border-radius: 44px;
  background: var(--white);
  box-shadow:
    0 40px 80px -30px rgba(37, 63, 122, 0.5),
    0 0 0 1px rgba(11, 13, 18, 0.04);
}

.hv-mark img {
  width: 92px;
  height: auto;
}

.hv-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 11px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(37, 63, 122, 0.4);
  white-space: nowrap;
}

.hv-chip strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.hv-chip small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
}

.hv-chip-dark {
  padding: 14px 20px;
  border-color: transparent;
  background: var(--ink);
  color: var(--white);
}

.hv-chip-dark .big {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hv-chip-dark small {
  color: rgba(255, 255, 255, 0.65);
}

.hv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 30px -16px rgba(37, 63, 122, 0.45);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.hv-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.hv-pos-1 { left: 6%; top: 13%; }
.hv-pos-2 { right: 4%; top: 23%; }
.hv-pos-3 { left: 6%; bottom: 15%; }
.hv-pos-4 { right: 8%; bottom: 8%; }
.hv-pos-5 { right: 7%; top: 6%; }

/* ---------- Challenges ---------- */

.challenge-grid {
  display: grid;
  gap: 20px;
}

.challenge-grid > div {
  display: flex;
}

.challenge-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 400px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  transition:
    transform 0.5s var(--ease),
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.5s ease;
}

.challenge-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 89, 166, 0.25);
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(37, 63, 122, 0.35);
}

.cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-top .dropdown-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--white);
}

.challenge-card:hover .cc-top .dropdown-icon {
  background: var(--blue);
  color: var(--white);
}

.cc-top .dropdown-icon svg {
  width: 24px;
  height: 24px;
}

.cc-num {
  font-size: 14px;
  font-weight: 600;
  color: rgba(11, 13, 18, 0.3);
}

.cc-tag {
  margin-top: 48px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.cc-title {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cc-text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.challenge-card .link-arrow {
  margin-top: auto;
  padding-top: 32px;
}

/* ---------- The right way ---------- */

.rw-text {
  max-width: 1080px;
  margin-top: 40px;
  font-size: clamp(26px, 3.3vw, 44px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.rw-equation {
  display: grid;
  gap: 12px;
  align-items: center;
  margin-top: 72px;
}

.rw-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 200px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.rw-card .dropdown-icon {
  background: var(--white);
}

.rw-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rw-card-dark {
  border-color: transparent;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(52, 89, 166, 0.55), transparent 70%),
    var(--ink);
  color: var(--white);
}

.rw-card-dark .dropdown-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.rw-op {
  justify-self: center;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
}

.rw-op svg {
  width: 18px;
  height: 18px;
}

/* ---------- Stats ---------- */

.stats-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 28px;
  border-radius: 36px;
  color: var(--white);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
}

.stats-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
}

.stat-num {
  font-size: clamp(48px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- BTP journey ---------- */

.journey-grid {
  display: grid;
  gap: 56px;
}

.journey-intro .section-lead {
  margin-top: 24px;
}

.journey-intro .btn {
  margin-top: 36px;
}

.journey-steps {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-steps::before,
.journey-steps::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: var(--line);
}

.journey-steps::after {
  background: var(--blue);
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
}

.journey-step {
  position: relative;
  padding-left: 56px;
}

.journey-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  transition: border-color 0.4s ease, box-shadow 0.5s ease;
}

.journey-step.is-active .journey-card {
  border-color: rgba(52, 89, 166, 0.25);
  box-shadow: 0 24px 50px -30px rgba(37, 63, 122, 0.35);
}

.journey-dot {
  position: absolute;
  z-index: 1;
  left: 20px;
  top: 36px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(11, 13, 18, 0.15);
  border-radius: 50%;
  background: var(--white);
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.journey-step.is-active .journey-dot {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(52, 89, 166, 0.15);
}

.journey-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.journey-step h3 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.journey-step p:last-child {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Why / why not ---------- */

.why-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.why-head {
  display: none;
}

.why-row {
  display: grid;
  border-top: 1px solid var(--line);
}

.why-row:first-of-type {
  border-top: 0;
}

.why-cell {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  line-height: 1.45;
  transition: background-color 0.3s ease;
}

.why-yes {
  font-weight: 600;
}

.why-no {
  padding-top: 0;
  color: var(--ink-2);
}

.why-no span:last-child {
  text-decoration: line-through;
  text-decoration-color: rgba(11, 13, 18, 0.25);
}

.why-row:hover .why-yes {
  background: var(--blue-50);
}

.why-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.why-icon svg {
  width: 15px;
  height: 15px;
}

.why-icon.yes {
  background: var(--blue);
  color: var(--white);
}

.why-icon.no {
  background: rgba(11, 13, 18, 0.06);
  color: rgba(11, 13, 18, 0.45);
}

/* ---------- About teaser ---------- */

.about-grid {
  display: grid;
  gap: 40px;
}

.about-text {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--ink-2);
}

.founders {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.founder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.founder-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.founder strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.founder small {
  font-size: 14px;
  color: var(--ink-2);
}

.about-grid .link-arrow {
  margin-top: 32px;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 639px) {
  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .hero-actions .btn-light {
    justify-content: center;
  }

  .rw-card {
    min-height: 0;
    gap: 28px;
  }

  .hv-chip {
    gap: 8px;
    padding: 7px 12px 7px 7px;
    border-radius: 14px;
  }

  .hv-chip .dropdown-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .hv-chip .dropdown-icon svg {
    width: 16px;
    height: 16px;
  }

  .hv-chip strong {
    font-size: 13px;
  }

  .hv-chip small,
  .hv-pos-5 {
    display: none;
  }

  .hv-chip-dark {
    padding: 10px 14px;
  }

  .hv-chip-dark .big {
    font-size: 22px;
  }

  .hv-chip-dark small {
    display: block;
    font-size: 11px;
  }

  .hv-mark {
    width: 128px;
    height: 128px;
    margin: -64px 0 0 -64px;
    border-radius: 34px;
  }

  .hv-mark img {
    width: 66px;
  }

  .hv-pos-2 { top: 30%; }
}

@media (min-width: 768px) {
  .challenge-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-panel {
    padding: 80px 64px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat + .stat {
    padding-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }

  .why-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .why-head span {
    padding: 20px 28px;
    color: var(--blue);
  }

  .why-head span + span {
    color: var(--ink-2);
    background: var(--surface);
  }

  .why-row {
    grid-template-columns: 1fr 1fr;
  }

  .why-row:first-of-type {
    border-top: 0;
  }

  .why-cell {
    padding: 22px 28px;
  }

  .why-no {
    padding-top: 22px;
    background: var(--surface);
  }

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

@media (min-width: 768px) and (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(100svh, 940px);
    padding: calc(var(--header-h) + 40px) 0 72px;
  }

  .hero-grid {
    width: 100%;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }

  .rw-equation {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
  }

  .journey-grid {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
  }

  .journey-intro {
    position: sticky;
    top: calc(var(--header-h) + 64px);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
  }
}
