/* Teachy — Apple clarity */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --clicky: #3380ff;
  --danger: #ff3b30;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

body.intro-active {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}

.soft {
  color: var(--ink-soft);
  font-weight: 400;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.022em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.8;
}

.logo-mark {
  width: 12px;
  height: 12px;
  background: var(--clicky);
  clip-path: polygon(12% 8%, 92% 48%, 12% 92%);
  transform: rotate(-18deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 980px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  opacity: 0.8;
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  margin-left: 8px;
  font-weight: 500 !important;
  padding: 6px 14px !important;
}

.nav-cta:hover {
  opacity: 0.88;
  text-decoration: none;
}

.ghost-btn,
.text-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  padding: 6px 8px;
}

.ghost-btn:hover,
.text-btn:hover {
  color: var(--ink);
}

/* —— Hero —— */

.hero {
  padding: 120px 0 88px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-transform: none;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  padding-bottom: 0.08em;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
  overflow: visible;
}

.lede {
  margin: 20px auto 0;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.022em;
  transition: opacity 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.88;
  transform: none;
}

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

.btn-secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  padding-inline: 8px;
}

.btn-secondary:hover {
  text-decoration: underline;
  opacity: 1;
}

/* —— Mission —— */

.mission {
  padding: 24px 0 72px;
  text-align: center;
}

.mission-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.mission h2 {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}

.mission-body {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--ink-soft);
}

.mission-points {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
  max-width: 900px;
}

.mission-points li {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
}

.mission-points strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 6px;
  color: var(--ink);
}

.mission-points span {
  display: block;
  font-size: 14px;
  line-height: 1.42859;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .mission-points {
    grid-template-columns: 1fr;
  }
}

/* —— Flagship path —— */

.flagship {
  padding: 8px 0 72px;
  text-align: center;
}

.flagship-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.flagship h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.flagship-lede {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--ink-soft);
}

.flagship-beats {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
}

.flagship-beats li {
  background: var(--surface);
  border-radius: 980px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.flagship-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.flagship-next {
  margin: 18px auto 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.flagship-next a {
  font-weight: 600;
}

.flagship-secondary {
  padding-top: 0;
}

.trust {
  padding: 8px 0 56px;
  text-align: center;
}

/* —— Learning paths —— */

.paths {
  padding: 24px 0 64px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.003em;
  font-weight: 600;
}

.section-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 400;
}

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

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

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

  .nav {
    display: none;
  }

  .hero {
    padding: 88px 0 64px;
  }

  .lede {
    font-size: 19px;
  }
}

.path-card {
  position: relative;
  background: var(--surface);
  border: 0;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: none;
  overflow: hidden;
  transition: background 0.2s ease;
}

.path-card::before {
  display: none;
}

.path-card:hover {
  transform: none;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.path-card.is-featured {
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
}

.path-featured-tag {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.path-card .author {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 8px;
}

.path-card h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.011em;
  font-weight: 600;
  color: var(--ink);
}

.path-card .sub {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
}

.path-card .blurb {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.42859;
}

.path-card .suggestion-badge {
  display: inline-flex;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 400;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
}

.closing {
  padding: 8px 0 96px;
}

.closing-card {
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  border-radius: 28px;
  padding: 64px 28px;
  box-shadow: none;
}

.closing-mark {
  display: none;
}

.closing-card h2 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}

.closing-card p {
  margin: 12px auto 28px;
  max-width: 380px;
  opacity: 1;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.47059;
}

.closing-card .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: 20px;
  border: 0;
}

.course-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.course-tools input,
.install-row input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  background: var(--surface);
  min-width: 180px;
}

.filters {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px;
  border-radius: 980px;
}

.filters button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 980px;
  cursor: pointer;
}

.filters button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.install-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.install-bar label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.install-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.install-row input {
  flex: 1;
  min-width: 220px;
  border-radius: var(--radius-sm);
}

.hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
}

.course-card .author {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

.course-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.course-card .sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.course-card .blurb {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 980px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--ink-soft);
}

.teach-cta {
  text-align: center;
  padding: 48px 0 72px;
}

.teach-cta p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.footer-tag {
  font-size: 12px;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.footer-links a {
  color: var(--accent);
}

.footer-links a:hover {
  text-decoration: underline;
}

/* —— Intro cinematic —— */

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a0b;
  color: #fff;
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stage {
  width: min(720px, calc(100% - 32px));
  text-align: center;
}

.intro-panel {
  animation: fadeUp 0.7s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-skip-all {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.55);
}

.intro-skip-all:hover {
  color: #fff;
}

/* Fake YouTube */

.yt-chrome {
  position: relative;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.yt-thumb {
  aspect-ratio: 16 / 9;
  background: #111;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.yt-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-play {
  width: 68px;
  height: 48px;
  background: #ff0000;
  border-radius: 14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.yt-play::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.yt-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.yt-progress {
  height: 3px;
  background: #333;
}

.yt-progress-fill {
  width: 0%;
  height: 100%;
  background: #f00;
  animation: scrub 2.4s linear forwards;
}

@keyframes scrub {
  to {
    width: 38%;
  }
}

.yt-meta {
  display: flex;
  gap: 12px;
  padding: 14px 16px 16px;
  align-items: center;
}

.yt-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #666, #333);
  flex-shrink: 0;
}

.yt-meta strong {
  display: block;
  font-size: 14px;
}

.yt-meta span {
  font-size: 12px;
  color: #aaa;
}

.yt-cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.yt-cross.is-on {
  opacity: 1;
}

.yt-cross::before,
.yt-cross::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 6px;
  background: var(--danger);
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(255, 59, 48, 0.55);
  transform-origin: center;
  transform: scaleX(0);
}

.yt-cross.is-on::before {
  transform: scaleX(1) rotate(18deg);
  transition: transform 0.55s var(--ease);
}

.yt-cross.is-on::after {
  transform: scaleX(1) rotate(-18deg);
  transition: transform 0.55s var(--ease) 0.12s;
}

.yt-chrome.is-struck {
  filter: grayscale(1) brightness(0.55);
  transition: filter 0.5s ease;
}

/* Manifesto */

.manifesto-line {
  margin: 0 0 18px;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
}

.manifesto-line.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.introducing {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-clicky-mark {
  width: 36px;
  height: 36px;
  margin: 0 auto 18px;
  background: #3380ff;
  clip-path: polygon(12% 8%, 92% 48%, 12% 92%);
  transform: rotate(-28deg);
  filter: drop-shadow(0 10px 28px rgba(51, 128, 255, 0.55));
  animation: clickyPop 0.7s var(--ease) both;
}

@keyframes clickyPop {
  from {
    opacity: 0;
    transform: rotate(-28deg) scale(0.6);
  }
  to {
    opacity: 1;
    transform: rotate(-28deg) scale(1);
  }
}

.brand-reveal {
  margin: 0;
  font-size: clamp(48px, 10vw, 84px);
  letter-spacing: -0.045em;
  font-weight: 700;
}

.brand-sub {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
}

.brand-academy {
  margin: 28px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Meet Clicky — animated demo */

.meet-kicker {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.meet-stage {
  width: min(560px, 100%);
  margin: 0 auto;
}

.meet-desktop {
  position: relative;
  background: linear-gradient(160deg, #1a1a1e 0%, #0e0e10 100%);
  border-radius: 18px;
  padding: 14px 14px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.meet-menubar {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  padding-left: 4px;
}

.meet-menubar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a40;
}

.meet-menubar span:nth-child(1) { background: #ff5f57; }
.meet-menubar span:nth-child(2) { background: #febc2e; }
.meet-menubar span:nth-child(3) { background: #28c840; }

.meet-window {
  background: #f5f5f7;
  border-radius: 10px;
  overflow: hidden;
  height: calc(100% - 22px);
  color: #1d1d1f;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.meet-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: #ebebed;
  font-size: 10px;
  font-weight: 600;
  color: #6e6e73;
}

.meet-titlebar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d0d4;
}

.meet-titlebar span {
  margin-left: 6px;
}

.meet-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.meet-sidebar {
  width: 28%;
  background: #ececef;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meet-row {
  height: 8px;
  border-radius: 4px;
  background: #d5d5da;
}

.meet-row.short {
  width: 60%;
}

.meet-main {
  flex: 1;
  padding: 16px 18px;
  text-align: left;
}

.meet-heading {
  height: 12px;
  width: 55%;
  border-radius: 4px;
  background: #cfcfd4;
  margin-bottom: 12px;
}

.meet-line {
  height: 7px;
  border-radius: 4px;
  background: #e0e0e5;
  margin-bottom: 8px;
}

.meet-line.short {
  width: 70%;
}

.meet-target {
  margin-top: 16px;
  border: 0;
  background: #0a7c66;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: default;
  transform: scale(1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.meet-target.is-hot {
  box-shadow: 0 0 0 4px rgba(51, 128, 255, 0.35);
  transform: scale(1.04);
}

.meet-target.is-pressed {
  transform: scale(0.96);
  background: #086955;
}

.meet-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #3380ff;
  clip-path: polygon(12% 8%, 92% 48%, 12% 92%);
  transform: rotate(-28deg) translate(-40px, 180px) scale(0.4);
  opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(51, 128, 255, 0.45));
  z-index: 5;
  transition: transform 0.9s var(--ease), opacity 0.35s ease;
}

.meet-cursor.is-in {
  opacity: 1;
  transform: rotate(-28deg) translate(58%, 42%) scale(1);
}

.meet-cursor.is-point {
  transform: rotate(-28deg) translate(68%, 58%) scale(1);
}

.meet-cursor.is-click {
  transform: rotate(-28deg) translate(68%, 58%) scale(0.88);
}

.meet-bubble {
  position: absolute;
  z-index: 6;
  left: 52%;
  top: 48%;
  max-width: 180px;
  background: #3380ff;
  color: #fff;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(51, 128, 255, 0.4);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  text-align: left;
}

.meet-bubble.is-on {
  opacity: 1;
  transform: none;
}

.meet-chalk {
  position: absolute;
  z-index: 4;
  width: 72px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  left: 64%;
  top: 62%;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(51, 128, 255, 0.25);
}

.meet-chalk.is-on {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.35s ease, transform 0.55s var(--ease);
}

.meet-success {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(10, 124, 102, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 980px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.meet-success.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.meet-caption {
  margin: 16px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}

#skip-meet {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Clicky guide —— */

.clicky-guide {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  left: 0;
  top: 0;
  transform: translate(-100px, -100px);
  transition: transform 0.85s var(--ease);
}

.clicky-cursor {
  width: 22px;
  height: 22px;
  background: var(--clicky);
  clip-path: polygon(12% 8%, 92% 48%, 12% 92%);
  transform: rotate(-28deg);
  filter: drop-shadow(0 6px 12px rgba(51, 128, 255, 0.45));
}

.clicky-bubble {
  position: absolute;
  left: 28px;
  top: -8px;
  min-width: 160px;
  max-width: 280px;
  background: var(--clicky);
  color: #fff;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  padding: 8px 11px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(51, 128, 255, 0.35);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.clicky-bubble.is-on {
  opacity: 1;
  transform: none;
}

.clicky-guide.is-left .clicky-bubble {
  left: auto;
  right: 28px;
}

.tour-glow {
  outline: 2px solid var(--clicky);
  outline-offset: 4px;
  border-radius: 12px;
  transition: outline-color 0.3s;
}

/* —— Cinematic type + flood + BAM —— */

.type-line {
  margin: 0;
  font-size: clamp(22px, 4.2vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 600;
  min-height: 1.35em;
}

.type-line .caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 3px;
  background: rgba(255, 255, 255, 0.9);
  vertical-align: -0.12em;
  animation: caretBlink 0.75s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.intro-flood {
  position: relative;
  width: min(960px, 100%);
  height: min(72vh, 540px);
  margin: 0 auto;
}

.flood-grid {
  position: absolute;
  inset: -10%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  transform: perspective(900px) rotateX(14deg) scale(1.08);
  opacity: 0.4;
  filter: saturate(0.65);
}

.flood-card {
  background: #18181b;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  animation: floodIn 0.55s var(--ease) forwards;
}

.flood-card .fc-thumb {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #2a2a32, #121216 60%),
    radial-gradient(circle at 30% 40%, rgba(255, 0, 0, 0.28), transparent 50%);
  position: relative;
}

.flood-card .fc-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 16px;
  margin: -8px 0 0 -11px;
  background: #f00;
  border-radius: 4px;
  opacity: 0.85;
}

.flood-card .fc-meta {
  padding: 6px 7px 8px;
}

.flood-card .fc-title {
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 5px;
}

.flood-card .fc-sub {
  height: 5px;
  width: 55%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

@keyframes floodIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.flood-veil {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: radial-gradient(ellipse at center, rgba(10, 10, 11, 0.35), rgba(10, 10, 11, 0.88) 72%);
  text-align: center;
  pointer-events: none;
  color: #fff;
}

.flood-kicker {
  margin: 0;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.flood-kicker.is-on {
  opacity: 1;
  transform: none;
}

.flood-veil .type-line,
.flood-veil .flood-type {
  max-width: min(16ch, 92vw);
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  font-size: clamp(28px, 5.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  min-height: 2.4em;
}

.yt-problem-type {
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 500;
  max-width: 26ch;
  letter-spacing: -0.02em;
}

.intro-manifesto {
  max-width: min(62ch, 94vw);
  margin: 0 auto;
  width: 100%;
}

.manifesto-type {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.manifesto-line-typed {
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1.35;
  min-height: 1.35em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .manifesto-line-typed {
    white-space: normal;
  }
}

.introducing-type {
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  min-height: 1.5em;
}

.bam-wrap {
  margin-top: 32px;
  position: relative;
}

.bam-flash {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0;
  pointer-events: none;
}

.bam-wrap.is-in .bam-flash {
  animation: bamFlash 0.55s ease-out both;
}

.bam-wrap.is-in .bam-mark {
  animation: bamMark 0.75s var(--ease) both;
}

.bam-wrap.is-in .bam-title {
  animation: bamTitle 0.9s var(--ease) both;
}

.bam-wrap.is-in .bam-sub {
  animation: fadeUp 0.75s var(--ease) 0.4s both;
}

.bam-wrap.is-in .bam-academy {
  animation: fadeUp 0.75s var(--ease) 0.6s both;
}

@keyframes bamFlash {
  0% { opacity: 0.95; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(1.45); }
}

@keyframes bamMark {
  0% { opacity: 0; transform: rotate(-28deg) scale(0.15); }
  55% { opacity: 1; transform: rotate(-28deg) scale(1.3); }
  100% { opacity: 1; transform: rotate(-28deg) scale(1); }
}

@keyframes bamTitle {
  0% { opacity: 0; transform: scale(0.35); filter: blur(14px); }
  50% { opacity: 1; transform: scale(1.1); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.intro-stage.is-shake {
  animation: stageShake 0.5s ease-out;
}

@keyframes stageShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(12px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(5px); }
}

.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 8px 0 48px;
}

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

.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.problem-card.accent {
  background: var(--accent-soft);
  border-color: transparent;
}

.problem-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.problem-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* —— Stacked flood thumbs —— */

.flood-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.flood-card-big {
  position: absolute;
  width: min(340px, 72vw);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate(0, 40px) scale(0.88) rotate(0deg);
  animation: stackIn 0.7s var(--ease) forwards;
}

.flood-card-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flood-card-big .fc-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 34px;
  margin: -17px 0 0 -24px;
  background: #f00;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.flood-card-big .fc-play::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 9px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}

@keyframes stackIn {
  to {
    opacity: 1;
    transform: var(--stack-end, none);
  }
}

/* Hide legacy flood grid if present */
.flood-grid { display: none !important; }

/* —— Interactive demo browser (IRL teaching loop) —— */

.intro-demo {
  width: min(880px, 100%);
  margin: 0 auto;
}

.demo-shell {
  display: grid;
  gap: 16px;
}

.demo-browser {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.45);
  color: #21242c;
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #ebedf0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d3d8;
}

.demo-dots i:nth-child(1) { background: #ff5f57; }
.demo-dots i:nth-child(2) { background: #febc2e; }
.demo-dots i:nth-child(3) { background: #28c840; }

.demo-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #5c6570;
}

.demo-lock::before {
  content: "🔒";
  font-size: 10px;
}

.demo-page {
  position: relative;
  min-height: 340px;
  background: #fff;
}

.demo-view {
  padding: 18px 20px 24px;
}

.demo-view[hidden] {
  display: none !important;
}

.gh-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

.gh-logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.gh-nav {
  display: flex;
  gap: 14px;
  color: #5c6570;
  font-size: 13px;
  font-weight: 600;
}

.gh-nav span {
  opacity: 0.7;
}

.gh-new {
  margin-left: auto;
  border: 0;
  background: #1f883d;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.gh-new em {
  font-style: normal;
  opacity: 0.75;
  margin-left: 2px;
}

.gh-new.is-hot,
.gh-create.is-hot,
input.is-hot {
  box-shadow: 0 0 0 3px rgba(51, 128, 255, 0.45);
  animation: demoPulse 1.2s ease-in-out infinite;
}

@keyframes demoPulse {
  50% { box-shadow: 0 0 0 5px rgba(51, 128, 255, 0.2); }
}

.gh-home-body h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.gh-muted {
  margin: 0 0 18px;
  color: #5c6570;
  font-size: 14px;
}

.gh-empty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.gh-empty-list li {
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f0f2f4, #f7f8f9);
  border: 1px dashed rgba(0, 0, 0, 0.06);
}

.gh-form h2 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.gh-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.gh-field em {
  font-style: normal;
  font-weight: 500;
  color: #5c6570;
}

.gh-field input {
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.gh-field input:focus {
  outline: none;
  border-color: var(--clicky);
  box-shadow: 0 0 0 3px rgba(51, 128, 255, 0.2);
}

.gh-visibility {
  display: flex;
  gap: 18px;
  margin: 8px 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #5c6570;
}

.gh-create {
  border: 0;
  background: #1f883d;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.gh-create:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gh-done {
  text-align: center;
  padding: 36px 12px 20px;
}

.gh-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.gh-done h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.gh-done p {
  margin: 8px 0 18px;
  color: #5c6570;
}

.gh-code-block {
  display: inline-block;
  background: #0d1117;
  color: #c9d1d9;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.demo-cursor {
  width: 18px;
  height: 18px;
  background: var(--clicky);
  clip-path: polygon(12% 8%, 92% 48%, 12% 92%);
  transform: rotate(-18deg);
  filter: drop-shadow(0 6px 12px rgba(51, 128, 255, 0.4));
  flex-shrink: 0;
}

.demo-cursor.is-click {
  transform: rotate(-18deg) scale(0.85);
}

.demo-clicky {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
  left: 48px;
  top: 120px;
  transition: left 0.55s var(--ease), top 0.55s var(--ease);
}

.demo-clicky.is-flipped {
  flex-direction: row-reverse;
}

.demo-speech {
  max-width: 240px;
  background: var(--clicky);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(51, 128, 255, 0.4);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.demo-speech.is-on {
  opacity: 1;
  transform: none;
}

.demo-speech .caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.9);
  vertical-align: -0.1em;
  animation: caretBlink 0.7s steps(1) infinite;
}

.demo-chalk {
  position: absolute;
  border: 2px solid rgba(51, 128, 255, 0.85);
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  box-shadow: 0 0 0 4px rgba(51, 128, 255, 0.12);
  transition: opacity 0.25s, left 0.45s var(--ease), top 0.45s var(--ease),
    width 0.45s var(--ease), height 0.45s var(--ease);
}

.demo-chalk.is-on {
  opacity: 1;
}

.demo-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-phase {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.demo-phase.is-wait {
  color: #7dd3fc;
}

.demo-phase.is-done {
  color: #86efac;
}

@media (max-width: 640px) {
  .gh-nav {
    display: none;
  }

  .demo-page {
    min-height: 300px;
  }
}
