/* ─── unscriptED Landing - Base ────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-hover: #f0eeea;
  --border: #e2dfd8;
  --text: #2c2a25;
  --text-muted: #7c7a72;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.08);
  --success: #16a34a;
  --error: #dc2626;
  --radius: 14px;
  --font: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ─── Nav ──────────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo-ed {
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.nav-link-accent {
  color: var(--accent);
  font-weight: 600;
}

.nav-link-accent:hover { color: var(--accent-hover); }

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(160deg, #f7f5f0 0%, #eeecf5 50%, #f0eff8 100%);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.hero-title .logo-ed {
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-num {
  font-weight: 700;
  color: var(--text);
}

.stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ─── Sections ─────────────────────────────────────────────────────────── */

.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Game Cards Grid ──────────────────────────────────────────────────── */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-primary, var(--accent));
}

/* Card visual - top 2/3 */
.card-visual {
  position: relative;
  height: 180px;
  background: var(--card-bg, #f5f2ed);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.card-scene svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Card body - bottom 1/3 */
.card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
  font-style: italic;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.meta-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Social Classroom Section ─────────────────────────────────────────── */

.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-info .section-desc {
  margin: 0 0 20px;
  text-align: left;
}

.product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pill {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);
}

/* Social preview mock */
.social-preview {
  background: #1a1625;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.social-mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-post {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px;
}

.social-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.social-content { flex: 1; min-width: 0; }

.social-name {
  color: #e2e0f0;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.social-text {
  color: #a8a4b8;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ─── Social Classroom - How It Works ─────────────────────────────────── */

.sc-how-it-works {
  display: flex;
  gap: 32px;
  margin-top: 56px;
}

.sc-step {
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sc-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sc-step strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.sc-step p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

/* ─── Social Classroom - Pack Samples ─────────────────────────────────── */

.sc-packs-preview {
  margin-top: 56px;
}

.sc-packs-preview h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.sc-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sc-pack-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}

.sc-pack-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.sc-pack-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.sc-pack-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sc-packs-more {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 16px;
}

.sc-packs-more a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.sc-packs-more a:hover {
  text-decoration: underline;
}

/* ─── Clickable Game Cards ─────────────────────────────────────────────── */

.game-card-link {
  cursor: pointer;
}

/* ─── Teacher Access Section ───────────────────────────────────────────── */

.access-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.access-card {
  text-align: center;
}

.access-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.access-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.access-btn {
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 12px;
}

.access-note {
  font-size: 0.82rem !important;
  color: var(--text-muted);
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.access-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.access-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.access-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.access-feature strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.access-feature p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.hidden { display: none; }

/* ─── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  -webkit-text-fill-color: var(--text);
}

.footer-brand .logo-ed {
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

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

/* ─── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .site-nav { padding: 14px 16px; }
  .nav-links { gap: 14px; }
  .nav-link { font-size: 0.82rem; }
  .hero { padding: 60px 16px 50px; }
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-stats { flex-wrap: wrap; gap: 8px; }
  .section { padding: 48px 16px; }
  .section-head h2 { font-size: 1.5rem; }
  .games-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-info .section-desc { text-align: center; }
  .product-info { text-align: center; }
  .product-stats { justify-content: center; }
  .sc-how-it-works { flex-direction: column; gap: 20px; }
  .sc-packs-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .access-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .access-card { text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .card-visual { height: 140px; }
  .nav-links { gap: 10px; }
}
