:root {
  --bg-dark: #0d1017;
  --bg-panel: #151a24;
  --bg-card: #1b212e;
  --bg-card-hover: #222a3a;
  --bg-input: #12161f;
  --border-subtle: #2a3344;
  --border-bright: #42506a;

  --text-primary: #f2f6fc;
  --text-secondary: #94a2ba;
  --text-muted: #606e86;

  --accent-cyan: #38c6ff;
  --accent-mint: #34e09e;
  --accent-amber: #ffc242;
  --accent-coral: #ff5c70;
  --accent-violet: #ac76ff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui,
    sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.bg-glow-cyan {
  width: 580px;
  height: 580px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.bg-glow-coral {
  width: 520px;
  height: 520px;
  top: 120px;
  right: -180px;
  background: radial-gradient(circle, var(--accent-violet), var(--accent-coral) 45%, transparent 72%);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(56, 198, 255, 0.08);
  border: 1px solid rgba(56, 198, 255, 0.16);
  color: #bcecff;
  padding: 0.12em 0.42em;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 16, 23, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(42, 51, 68, 0.72);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  border-radius: 8px;
  display: block;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 198, 255, 0.12);
  border: 1px solid rgba(56, 198, 255, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

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

.btn-sm {
  font-size: 0.86rem;
  padding: 8px 14px;
}

.btn-lg {
  font-size: 0.98rem;
  padding: 13px 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #38c6ff 0%, #2498eb 100%);
  color: #06131d;
  box-shadow: 0 8px 28px rgba(56, 198, 255, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(56, 198, 255, 0.42);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
}

.btn-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(6, 19, 29, 0.18);
  padding: 3px 8px;
  border-radius: 999px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Hero */
.hero {
  padding: 58px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(27, 33, 46, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 12px var(--accent-mint);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 4.4vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(95deg, #38c6ff 0%, #34e09e 58%, #ffc242 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.07rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

.hero-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(42, 51, 68, 0.72);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-value {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Interactive Studio Widget */
.studio-card {
  background: linear-gradient(180deg, rgba(27, 33, 46, 0.96), rgba(18, 22, 31, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
}

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

.studio-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.studio-title strong {
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.studio-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(56, 198, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 198, 255, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-demo:hover {
  background: rgba(56, 198, 255, 0.2);
}

.btn-demo.is-playing {
  background: rgba(52, 224, 158, 0.16);
  border-color: rgba(52, 224, 158, 0.45);
  color: var(--accent-mint);
}

.demo-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.highway-shell {
  position: relative;
  background: #0a0d14;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

#highway-canvas {
  display: block;
  width: 100%;
  height: 156px;
}

.highway-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(21, 26, 36, 0.92);
  border-top: 1px solid rgba(42, 51, 68, 0.7);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.judgment-badge {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.timing-readout {
  color: var(--text-secondary);
}

/* 4x4 Pad Grid */
.pad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pad-btn {
  --pad-rgb: 56, 198, 255;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 64px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(var(--pad-rgb), 0.32);
  background: linear-gradient(180deg, rgba(var(--pad-rgb), 0.13), rgba(18, 22, 31, 0.95));
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.06s ease, box-shadow 0.09s ease, border-color 0.09s ease,
    background 0.09s ease;
  font-family: var(--font-sans);
}

.pad-btn:hover {
  border-color: rgba(var(--pad-rgb), 0.68);
  background: linear-gradient(180deg, rgba(var(--pad-rgb), 0.22), rgba(24, 30, 42, 0.98));
}

.pad-btn.is-active {
  transform: scale(0.96);
  border-color: rgb(var(--pad-rgb));
  background: rgba(var(--pad-rgb), 0.36);
  box-shadow: 0 0 22px rgba(var(--pad-rgb), 0.52), inset 0 0 12px rgba(255, 255, 255, 0.18);
}

.pad-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.pad-key {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(13, 16, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-weight: 700;
}

.pad-short {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgb(var(--pad-rgb));
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(21, 26, 36, 0.55), rgba(13, 16, 23, 0.25));
  border-top: 1px solid rgba(42, 51, 68, 0.55);
  border-bottom: 1px solid rgba(42, 51, 68, 0.55);
}

.section-head {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.feature-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.feature-wide {
  grid-column: span 2;
}

.feature-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.badge-cyan {
  color: var(--accent-cyan);
  background: rgba(56, 198, 255, 0.12);
}
.badge-mint {
  color: var(--accent-mint);
  background: rgba(52, 224, 158, 0.12);
}
.badge-amber {
  color: var(--accent-amber);
  background: rgba(255, 194, 66, 0.12);
}
.badge-violet {
  color: var(--accent-violet);
  background: rgba(172, 118, 255, 0.14);
}
.badge-coral {
  color: var(--accent-coral);
  background: rgba(255, 92, 112, 0.13);
}

.feature-card h3 {
  margin: 2px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.spec-chips span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Lesson Explorer */
.lesson-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
}

.pill.is-active {
  background: rgba(56, 198, 255, 0.16);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pill.is-active .pill-count {
  color: var(--accent-cyan);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0 13px;
  width: min(360px, 100%);
  color: var(--text-muted);
}

.search-wrap:focus-within {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.search-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 10px 0;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lesson-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.lesson-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.lesson-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lesson-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
}

.diff-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.diff-beginner {
  color: var(--accent-mint);
  background: rgba(52, 224, 158, 0.12);
}

.diff-intermediate {
  color: var(--accent-cyan);
  background: rgba(56, 198, 255, 0.14);
}

.diff-challenge {
  color: var(--accent-violet);
  background: rgba(172, 118, 255, 0.16);
}

.lesson-title {
  margin: 0;
  font-size: 1.03rem;
  letter-spacing: -0.015em;
}

.lesson-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.lesson-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(42, 51, 68, 0.7);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.pad-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lessons-footer {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  background: var(--bg-panel);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

/* Download & Install */
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  background: linear-gradient(135deg, rgba(27, 33, 46, 0.96), rgba(18, 22, 31, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.download-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.download-brand h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.download-icon {
  border-radius: 16px;
  flex: none;
}

.download-desc {
  margin: 0 0 24px;
  color: var(--text-secondary);
  max-width: 56ch;
}

.download-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.release-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.checksum-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 9px 12px;
}

.checksum-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-mint);
  flex: none;
}

.checksum-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.copy-btn {
  flex: none;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.install-steps {
  background: rgba(13, 16, 23, 0.62);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.install-steps h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56, 198, 255, 0.14);
  border: 1px solid rgba(56, 198, 255, 0.35);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}

.step-list strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.step-list p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.cmd-chip {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 6px 8px;
}

.cmd-chip code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  overflow-x: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(42, 51, 68, 0.7);
  padding: 26px 0 38px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

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

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-left strong {
  color: var(--text-primary);
}

.sep {
  opacity: 0.45;
}

/* Video Demo Showcase */
.video-frame {
  background: linear-gradient(180deg, rgba(27, 33, 46, 0.96), rgba(18, 22, 31, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.video-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.video-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.video-title strong {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.video-title span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.video-ext-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 198, 255, 0.1);
  border: 1px solid rgba(56, 198, 255, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.video-ext-link:hover {
  background: rgba(56, 198, 255, 0.2);
  border-color: var(--accent-cyan);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #080b11;
  border: 1px solid var(--border-subtle);
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #080b11;
}

.video-embed-native {
  aspect-ratio: 1280 / 594;
}

.video-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.video-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(13, 16, 23, 0.65);
  border: 1px solid rgba(42, 51, 68, 0.8);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.video-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.dot-cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.dot-mint {
  background: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint);
}

.dot-amber {
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

/* Download Verification Modal */
.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 9, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, rgba(27, 33, 46, 0.98), rgba(16, 20, 29, 0.99));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(13, 16, 23, 0.7);
  color: var(--text-secondary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-right: 32px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.modal-icon {
  border-radius: 12px;
  flex: none;
}

.modal-desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 198, 255, 0.16);
}

.turnstile-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
}

.modal-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.modal-status.is-error {
  color: #ff7a8a;
}

.modal-status.is-success {
  color: var(--accent-mint);
}

.modal-submit {
  width: 100%;
  justify-content: center;
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Buy Me a Coffee Support Styles */
.download-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-coffee {
  background: rgba(255, 196, 61, 0.12);
  color: #ffd166;
  border: 1px solid rgba(255, 196, 61, 0.36);
}

.btn-coffee:hover {
  background: rgba(255, 196, 61, 0.22);
  border-color: #ffd166;
  color: #ffe39b;
  transform: translateY(-1px);
}

.modal-coffee-box {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 51, 68, 0.75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.modal-coffee-link {
  color: #ffd166;
  font-weight: 600;
  white-space: nowrap;
}

.modal-coffee-link:hover {
  color: #ffe39b;
  text-decoration: underline;
}

.footer-coffee-link {
  color: #ffd166;
  font-weight: 600;
}

.footer-coffee-link:hover {
  color: #ffe39b;
  text-decoration: underline;
}

/* Pro License Retrieval */
.claim-cta-row {
  margin-top: 2px;
}

.claim-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.claim-link-btn:hover {
  color: #79dcff;
  text-decoration: underline;
}

.claim-key-box[hidden] {
  display: none;
}

.claim-key-box {
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(56, 198, 255, 0.35);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-key-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-mint);
}

.claim-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.claim-key-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: none;
  border: none;
  padding: 0;
  word-break: break-all;
}

.claim-key-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .video-highlights {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .header-coffee-label {
    display: none;
  }

  .header-coffee-btn {
    padding: 8px 10px;
  }

  .hero {
    padding: 36px 0 54px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-grid,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .feature-wide {
    grid-column: span 1;
  }

  .download-panel {
    padding: 22px;
  }

  .pad-btn {
    height: 58px;
    padding: 6px 8px;
  }
}
