/* ===========================
   KnowScale Landing Page
   =========================== */

:root {
  --bg: #faf7f2;
  --bg-alt: #f0ebe2;
  --fg: #1a1a3e;
  --fg-muted: #4a4a6a;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ink: #1a1a3e;
  --cream: #faf7f2;
  --stone: #e8e0d5;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --section-py: 100px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===========================
   NAV
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 80px 40px 100px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-muted);
}
.hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 480px;
}

/* Content Stack */
.content-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack-card {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 20px rgba(26, 26, 62, 0.08);
  border: 1px solid var(--stone);
  position: relative;
  overflow: hidden;
}
.stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.stack-card--shorts::before { background: linear-gradient(90deg, #f59e0b, #fb923c); }
.stack-card--long::before { background: linear-gradient(90deg, #1a1a3e, #3a3a5e); }
.stack-card--app::before { background: linear-gradient(90deg, #d97706, #f59e0b); }

.stack-card-bar {
  height: 4px;
  background: var(--stone);
  border-radius: 2px;
  margin-bottom: 16px;
  width: 100%;
}
.stack-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.short-thumb {
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.short-thumb--a { border: 1px solid rgba(245, 158, 11, 0.3); }
.short-thumb--b { border: 1px solid rgba(26, 26, 62, 0.15); }
.short-thumb--c { border: 1px solid rgba(245, 158, 11, 0.2); }
.short-thumb-icon { width: 20px; height: 20px; }

.long-video-art {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.long-video-progress {
  height: 6px;
  background: var(--stone);
  border-radius: 3px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.long-video-progress::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 62%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 3px;
}
.long-video-markers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.marker {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--stone);
  color: var(--fg-muted);
}
.marker--done { background: rgba(245, 158, 11, 0.12); color: var(--accent-dark); }
.marker--active { background: var(--accent); color: var(--fg); font-weight: 600; }
.marker--soon { opacity: 0.5; }

.app-screen {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.app-header {
  height: 6px;
  width: 60px;
  background: var(--stone);
  border-radius: 3px;
  margin-bottom: 12px;
}
.app-flashcards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.flashcard {
  font-size: 0.72rem;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.4;
}
.flashcard--q { background: rgba(26, 26, 62, 0.08); color: var(--fg); }
.flashcard--a { background: rgba(245, 158, 11, 0.15); color: var(--accent-dark); }
.app-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.streak-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.stack-card-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 400;
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid var(--stone);
}

/* ===========================
   PROOF STATS
   =========================== */
.proof {
  background: var(--fg);
  padding: 60px 40px;
  color: white;
}
.proof-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 40px;
}
.proof-stat:first-child { padding-left: 0; }
.proof-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.proof-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  max-width: 180px;
}
.proof-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.15);
}

/* ===========================
   SECTIONS (shared)
   =========================== */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}

.features {
  padding: var(--section-py) 40px;
  background: var(--cream);
}
.features-header {
  max-width: var(--max-w);
  margin: 0 auto 60px;
}
.features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.feature-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===========================
   STACK
   =========================== */
.stack {
  padding: var(--section-py) 40px;
  background: var(--bg-alt);
}
.stack-header {
  max-width: var(--max-w);
  margin: 0 auto 60px;
}
.stack-channels {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.channel {
  background: white;
  border-radius: 16px;
  padding: 28px 20px;
  border: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.channel:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 26, 62, 0.1);
}
.channel-icon {
  color: var(--accent);
}
.channel h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.channel p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ===========================
   MANIFESTO
   =========================== */
.manifesto {
  padding: var(--section-py) 40px;
  background: var(--cream);
}
.manifesto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.manifesto-quote {
  position: relative;
  padding-left: 32px;
}
.manifesto-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -20px;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.manifesto-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.manifesto-copy {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.manifesto-copy:last-child { margin-bottom: 0; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--fg);
  color: white;
  padding: 60px 40px 30px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .nav-name { color: white; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); max-width: 300px; line-height: 1.5; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { display: none; }
  .hero-lede { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-inner { grid-template-columns: 1fr; gap: 40px; }
  .proof-divider { display: none; }
  .proof-stat { padding: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; }
  .proof-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .stack-channels { grid-template-columns: 1fr 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 24px 70px; }
  .features, .stack, .manifesto { padding-left: 24px; padding-right: 24px; }
  .proof { padding: 50px 24px; }
  .stack-channels { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { padding: 16px 24px; }
}