/* ============================================================
   HOME-PAGE STYLES
   ============================================================ */

/* —— HERO —— */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 60% 50% at 70% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 70% 40%, black, transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 420px;
}
.trust-avatars { display: flex; }
.trust-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-0);
  margin-right: -10px;
}

/* hero photo collage */
.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1.2fr auto 1fr;
  gap: 16px;
  min-height: 540px;
}
.hp-main { grid-column: 1 / -1; grid-row: 1 / 2; }
.hero-note { grid-column: 1 / 2; grid-row: 2 / 4; }
.hp-side { grid-column: 2 / 3; grid-row: 2 / 4; }

.hero-photo {
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-photo-bg {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  min-height: 180px;
}
.hero-photo-bg::before {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: oklch(0% 0 0 / 0.5);
  border: 1px solid oklch(100% 0 0 / 0.3);
  color: var(--ink-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  backdrop-filter: blur(6px);
  opacity: 0.9;
}
.hero-photo-cap {
  padding: 14px 18px;
  background: var(--bg-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-1);
  border-top: 1px solid var(--line);
}
.hero-note {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--acc-line);
  border-radius: var(--r-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 980px) {
  .hero-art {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }
  .hp-main, .hero-note, .hp-side {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }
}

/* hero video */
.hero-vid-wrap {
  position: relative;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--acc-line);
  min-height: 220px;
}
.hero-vid-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
}

/* legacy hero-card hidden */
.hero-chart, .hero-card { display: none; }

/* —— SECTION HEAD —— */
.section-head {
  margin-bottom: 64px;
}

/* —— LOGOS RAIL —— */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.logo-item {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-align: center;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.market-item {
  padding: 16px 20px;
  border-left: 1px solid var(--line);
}
.market-item:first-child { border-left: 0; }
@media (max-width: 720px) {
  .market-item { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .market-item:first-child { border-top: 0; }
}
.logo-item:hover { color: var(--ink-1); }

/* —— STATS —— */
.stats-section {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--bg-0);
}
.stat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  color: var(--ink-0);
  margin-bottom: 12px;
}
.stats-disclaimer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--ink-3);
  max-width: 720px;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* —— CURRICULUM —— */
.curriculum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.curric-card {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  transition: background 0.2s var(--ease);
}
.curric-card:hover { background: var(--bg-2); }
.curric-card:nth-child(3n) { border-right: 0; }
.curric-card:nth-last-child(-n+3) { border-bottom: 0; }
.curric-num {
  font-size: 18px;
  color: var(--acc);
  letter-spacing: 0.1em;
}
.curric-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acc);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.curric-link:hover { gap: 12px; transition: gap 0.2s var(--ease); }

@media (max-width: 900px) {
  .curriculum { grid-template-columns: 1fr; }
  .curric-card { border-right: 0; }
  .curric-card:not(:last-child) { border-bottom: 1px solid var(--line); }
}

/* —— METHOD —— */
.method {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.method-list {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
.method-row {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.method-row:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* —— TESTIMONIALS —— */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.testimonial {
  margin: 0;
  padding: 32px;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
}
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(40% 0.04 145), oklch(60% 0.06 145));
  border: 1px solid var(--line);
}
@media (max-width: 980px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* —— FAQ —— */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  transition: color 0.18s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acc); }
.faq-plus {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-plus { transform: rotate(45deg); border-color: var(--acc-line); color: var(--acc); }
.faq-item p { padding-bottom: 28px; }

/* —— CTA BLOCK —— */
.cta-block {
  position: relative;
  padding: 96px 32px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  text-align: center;
  overflow: hidden;
}
.cta-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 60% 60% at center, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at center, black, transparent);
  pointer-events: none;
}
.cta-block > * { position: relative; }
