/* ============================================================
   LANDING.CSS — Home page styles
   LiveJS Playground © 2025
   ============================================================ */

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 12px;
  background: rgba(11,11,16,0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}
body.light .nav {
  background: rgba(245,246,250,0.85);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo .accent { color: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 36px;
  list-style: none;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }

.nav-spacer { flex: 1; }

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

@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
}

/* ── HERO ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

/* animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* glow orbs */
.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow-1 {
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.10) 0%, transparent 70%);
  bottom: 100px; right: 5%;
}
.hero-glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34,211,238,0.07) 0%, transparent 70%);
  bottom: 50px; left: 5%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.08);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px var(--green);
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -3px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.1s ease both;
}
.hero-title .line2 {
  display: block;
}
.grad-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.4s ease both;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  font-family: var(--mono);
}
.stat-val .accent { color: var(--accent-light); }
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* ── CODE PREVIEW ── */
.preview-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 72px auto 0;
  z-index: 1;
  animation: fadeUp 0.7s 0.5s ease both;
}
.preview-glow {
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent), var(--violet), var(--cyan));
  border-radius: calc(var(--radius-xl) + 1px);
  opacity: 0.35;
  filter: blur(1px);
  z-index: 0;
}
.preview-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.preview-topbar {
  height: 44px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 8px;
}
.traffic-light { display: flex; gap: 7px; }
.tl { width: 13px; height: 13px; border-radius: 50%; }
.tl-red    { background: #ff5f57; }
.tl-yellow { background: #febc2e; }
.tl-green  { background: #28c840; }
.preview-filename {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.preview-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.preview-tag {
  font-size: 11px;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.preview-run {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}
.preview-code-area {
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  border-right: 1px solid var(--border);
  overflow: hidden;
  counter-reset: line;
}
.code-line {
  display: flex;
  gap: 16px;
}
.ln {
  color: var(--text-dim);
  font-size: 12px;
  min-width: 16px;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
}
.code-line:nth-child(8) .ln,
.code-line:nth-child(9) .ln { color: var(--accent-light); }
.code-line:nth-child(8),
.code-line:nth-child(9) { background: rgba(99,102,241,0.06); margin: 0 -28px; padding: 0 28px; }

.ck  { color: #7c85f7; }   /* keyword */
.cs  { color: #f1a66a; }   /* string */
.cn  { color: #7ecb8f; }   /* number */
.cf  { color: #e5c07b; }   /* function/method */
.cc  { color: #4a5568; font-style: italic; } /* comment */
.cp  { color: var(--text-secondary); }       /* punctuation */
.cid { color: var(--text-secondary); }       /* identifier */

.preview-output-area {
  padding: 24px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.out-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.out-icon { color: var(--text-dim); font-size: 12px; padding-top: 2px; flex-shrink: 0; }
.out-val  { color: #4af04a; }
.out-obj  { color: #4ec9b0; }
.out-num  { color: #7ecb8f; }
.out-err  { color: var(--red); }

.preview-status {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--green-dim);
  border: 1px solid rgba(52,211,153,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ps-text { font-size: 11px; color: var(--green); font-weight: 500; }
.ps-sub { font-size: 11px; color: var(--text-muted); margin-left: auto; }

@media (max-width: 720px) {
  .preview-body { grid-template-columns: 1fr; }
  .preview-output-area { display: none; }
}

/* ── FEATURES ── */
.features-section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--accent-subtle) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--accent-subtle);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--accent-light);
  background: var(--accent-subtle);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 3px 10px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.feature-link:hover {
  color: var(--accent-light);
}

/* ── HOW IT WORKS ── */
.how-section {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  position: relative;
}
.steps-grid::after {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(100%/6 + 16px);
  right: calc(100%/6 + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--cyan));
  opacity: 0.3;
  pointer-events: none;
}
@media (max-width: 700px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::after { display: none; }
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.step-number {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── THEMES SHOWCASE ── */
.themes-section {
  padding: 100px 0;
}
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
@media (max-width: 800px) {
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .themes-grid { grid-template-columns: 1fr; }
}
.theme-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.theme-preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 16px;
  overflow: hidden;
}
.theme-label {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-label .tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ── CTA SECTION ── */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 700px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(40px);
}
.cta-section h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
.cta-section .cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .brand-logo {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand .brand-logo span { color: var(--accent-light); }
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface2);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-copy a { color: var(--accent-light); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--text); }

/* ── STATS SECTION ── */
.stats-section {
  position: relative;
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(99,102,241,0.03));
  border-top: 1px solid rgba(124,58,237,0.1);
  border-bottom: 1px solid rgba(124,58,237,0.1);
}

body.light .stats-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.02), rgba(99,102,241,0.01));
  border-top-color: rgba(124,58,237,0.1);
  border-bottom-color: rgba(124,58,237,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
  list-style: none;
}

.stats-card {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}
.stats-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.12);
  transform: translateY(-4px);
}

body.light .stats-card {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.1);
}
body.light .stats-card:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.2);
}

.stats-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.stats-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stats-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-light);
  font-family: var(--mono);
  margin-bottom: 4px;
}

.stats-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.stats-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.modal-backdrop.modal-open {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.1);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-backdrop.modal-open .modal-content {
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(99, 102, 241, 0.05));
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  width: 36px;
  height: 36px;
}
.modal-close:hover {
  background: rgba(124, 58, 237, 0.2);
  color: var(--text);
}
.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  font-family: var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-body strong {
  color: var(--accent-light);
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

/* ── HOME REFRESH ── */
.hero {
  padding: 88px 0 72px;
  text-align: left;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero-desc {
  max-width: 100%;
  margin-bottom: 36px;
}

.hero-cta {
  justify-content: flex-start;
}

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

.hero-proof-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.hero-proof-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-proof-card span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview-wrap {
  max-width: none;
  margin: 0;
}

.preview-run {
  text-decoration: none;
}

.hero-learn-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-track-card {
  display: block;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-track-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-track-label {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-track-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.3;
}

.hero-track-card span:last-child {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-track-html:hover { border-color: rgba(239,68,68,0.35); }
.hero-track-css:hover { border-color: rgba(59,130,246,0.35); }
.hero-track-js:hover { border-color: rgba(168,85,247,0.35); }

.value-section {
  padding: 20px 0 24px;
}

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

.value-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.value-index {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-light);
}

.value-card h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.learn-section {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(99,102,241,0.06), rgba(99,102,241,0.01));
  border-top: 1px solid rgba(99,102,241,0.12);
  border-bottom: 1px solid rgba(99,102,241,0.12);
}

body.light .learn-section {
  background: linear-gradient(180deg, rgba(79,70,229,0.04), rgba(79,70,229,0.015));
}

.learn-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.learn-overview {
  position: sticky;
  top: 92px;
}

.learn-desc {
  max-width: 100%;
  margin: 0;
}

.learn-summary {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.learn-summary-item {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.learn-summary-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.learn-summary-item span {
  font-size: 13px;
  color: var(--text-secondary);
}

.learn-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.learn-grid {
  display: grid;
  gap: 18px;
}

.learn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.learn-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.learn-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.learn-card:hover::before {
  opacity: 1;
}

.learn-card-html::before { background: radial-gradient(circle at top left, rgba(239,68,68,0.12), transparent 65%); }
.learn-card-css::before { background: radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 65%); }
.learn-card-js::before { background: radial-gradient(circle at top left, rgba(168,85,247,0.12), transparent 65%); }

.learn-card-html:hover { border-color: rgba(239,68,68,0.35); }
.learn-card-css:hover { border-color: rgba(59,130,246,0.35); }
.learn-card-js:hover { border-color: rgba(168,85,247,0.35); }

.learn-card-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--surface2);
  color: var(--text-secondary);
}

.learn-card h3,
.learn-card p,
.learn-topics,
.learn-cta {
  position: relative;
  z-index: 1;
}

.learn-card h3 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -1px;
}

.learn-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.learn-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learn-topic {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  font-size: 11px;
  color: var(--text-muted);
}

.learn-cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

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

body.light .hero-proof-card,
body.light .value-card {
  background: rgba(255,255,255,0.72);
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  background: rgba(124, 58, 237, 0.05);
  justify-content: flex-end;
}

body.light .modal-content {
  background: linear-gradient(135deg, #f5f6fa 0%, #eff0f4 100%);
  border-color: rgba(124, 58, 237, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 60px rgba(124, 58, 237, 0.05);
}

body.light .modal-header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(99, 102, 241, 0.02));
  border-bottom-color: rgba(124, 58, 237, 0.1);
}

body.light .modal-body {
  color: #5a6471;
}

body.light .modal-body strong {
  color: #7c3aed;
}

body.light .modal-footer {
  background: rgba(124, 58, 237, 0.03);
  border-top-color: rgba(124, 58, 237, 0.1);
}
