/* ===== Design Tokens ===== */
:root {
  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  --radius: 20px;
}

/* ===== DARK MODE (default) ===== */
:root,
html[data-theme="dark"] {
  --bg-0: #14121C;
  --bg-1: #1E1A29;
  --bg-2: #262035;
  --bg-3: #322C42;
  --border: #322C42;
  --border-hover: rgba(156, 142, 224, .45);
  --text: #F5F2FA;
  --text-dim: #B3ACC4;
  --muted: #7A7390;
  --shadow: 0 4px 24px rgba(0, 0, 0, .4);
  --nav-bg: rgba(20, 18, 28, .88);
  --mobile-nav-bg: rgba(20, 18, 28, .97);
  --overlay-start: rgba(20, 18, 28, .25);
  --overlay-mid: rgba(20, 18, 28, .82);
  --overlay-end: rgba(20, 18, 28, .96);
  --accent: #9C8EE0;
  --accent-hover: #b3a7e8;
  --accent-text: #2A2340;
  --badge-bg: #E896C0;
  --badge-text: #3A1E2E;
  --gradient: linear-gradient(100deg, #9DC4E0 0%, #B6AEDD 45%, #E0A8C6 100%);
  --logo-fill: #FFFFFF;
  color-scheme: dark;
}

/* ===== LIGHT MODE ===== */
html[data-theme="light"] {
  --bg-0: #FAF8FC;
  --bg-1: #FFFFFF;
  --bg-2: #F2EDF8;
  --bg-3: #E4DEEE;
  --border: #E4DEEE;
  --border-hover: rgba(110, 92, 196, .35);
  --text: #1E1B29;
  --text-dim: #6B647F;
  --muted: #9891A8;
  --shadow: 0 4px 24px rgba(30, 27, 41, .06);
  --nav-bg: rgba(250, 248, 252, .88);
  --mobile-nav-bg: rgba(250, 248, 252, .97);
  --overlay-start: rgba(30, 27, 41, .25);
  --overlay-mid: rgba(30, 27, 41, .82);
  --overlay-end: rgba(30, 27, 41, .96);
  --accent: #6E5CC4;
  --accent-hover: #7d6bd0;
  --accent-text: #FFFFFF;
  --badge-bg: #C25A94;
  --badge-text: #FFFFFF;
  --gradient: linear-gradient(100deg, #9DC4E0 0%, #B6AEDD 45%, #E0A8C6 100%);
  --logo-fill: #6E5CC4;
  color-scheme: light;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }

/* Skip to main content - Accessibility */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-to-main:focus { left: 0; top: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

/* ===== Animated Space Background ===== */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Floating gradient orbs */
.space-bg::before,
.space-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
  animation: float 20s ease-in-out infinite;
}

.space-bg::before {
  width: 600px;
  height: 600px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, #9DC4E0 0%, transparent 70%);
  animation-duration: 25s;
}

.space-bg::after {
  width: 500px;
  height: 500px;
  bottom: -10%;
  left: -10%;
  background: radial-gradient(circle, #E0A8C6 0%, transparent 70%);
  animation-duration: 30s;
  animation-delay: -10s;
}

/* Third orb via separate element */
.space-bg .orb {
  position: absolute;
  width: 450px;
  height: 450px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #B6AEDD 0%, transparent 70%);
  filter: blur(80px);
  opacity: .2;
  animation: float 22s ease-in-out infinite;
  animation-delay: -5s;
}

/* Tiny stars / particles */
.space-bg .stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 80%, rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 65%, rgba(255,255,255,.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 90%, rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 95% 15%, rgba(255,255,255,.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 45%, rgba(255,255,255,.35) 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,.45) 50%, transparent 100%),
    radial-gradient(1px 1px at 35% 40%, rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 25%, rgba(255,255,255,.3) 50%, transparent 100%);
  background-size: 100% 100%;
  animation: twinkle 8s ease-in-out infinite alternate;
}

[data-theme="light"] .space-bg::before { opacity: .4; filter: blur(60px); }
[data-theme="light"] .space-bg::after { opacity: .4; filter: blur(60px); }
[data-theme="light"] .space-bg .orb { opacity: .3; filter: blur(60px); }
[data-theme="light"] .space-bg .stars {
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(110,92,196,.45) 50%, transparent 100%),
    radial-gradient(2px 2px at 25% 80%, rgba(156,142,224,.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(110,92,196,.4) 50%, transparent 100%),
    radial-gradient(2px 2px at 55% 65%, rgba(194,90,148,.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 35%, rgba(110,92,196,.4) 50%, transparent 100%),
    radial-gradient(2px 2px at 85% 90%, rgba(156,142,224,.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 95% 15%, rgba(110,92,196,.45) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 55%, rgba(194,90,148,.25) 50%, transparent 100%),
    radial-gradient(2px 2px at 60% 45%, rgba(156,142,224,.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 70%, rgba(110,92,196,.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 40%, rgba(156,142,224,.3) 50%, transparent 100%),
    radial-gradient(2px 2px at 50% 25%, rgba(194,90,148,.25) 50%, transparent 100%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes twinkle {
  0% { opacity: .6; }
  100% { opacity: 1; }
}

/* Signature gradient bar */
.gradient-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(100deg, #9DC4E0 0%, #B6AEDD 45%, #E0A8C6 100%);
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Theme Toggle ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  flex-shrink: 0;
}
.theme-toggle button {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.theme-toggle button.active {
  background: var(--accent);
  color: var(--accent-text);
}
.theme-toggle svg { width: 15px; height: 15px; }

/* ===== Brand Mark (logo icon) ===== */
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(156, 142, 224, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  transition: background .3s ease, border-color .3s ease;
}

.nav-content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo .brand-tag {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  margin-left: 4px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
}

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

.nav-cta {
  background: var(--accent);
  color: var(--accent-text) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(156, 142, 224, .2);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(156, 142, 224, .3);
}

/* ===== Hero ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  position: relative;
}

.hero-content {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: 36px 28px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow: var(--shadow);
  transition: background .3s ease, border-color .3s ease;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(156, 142, 224, .1);
  border: 1px solid rgba(156, 142, 224, .25);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-badge .dot,
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(156, 142, 224, .5);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 14px 0 12px;
  color: var(--text);
}

.hero h1 span { color: var(--accent); }

.hero-description {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 720px;
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px rgba(156, 142, 224, .2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(156, 142, 224, .3);
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--text);
  border: 0.5px solid var(--border);
}

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

.hero-video {
  margin-top: 24px;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Sections ===== */
section {
  padding: 56px 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 1080px;
  margin: 0 auto 24px;
  text-align: left;
  border-bottom: 0.5px solid var(--border);
  padding-bottom: 16px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-text);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.section-label svg { display: none; }

.section-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-header p {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.6;
}

/* Variations on section pill colors */
.features-section .section-label { background: var(--accent); }
.apps-section .section-label { background: var(--accent); }
.announcements-section .section-label { background: var(--badge-bg); }
#community .section-label { background: var(--accent); }
#about .section-label { background: var(--muted); }

/* ===== Features ===== */
.features-section { background: transparent; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-1);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .3s ease;
  position: relative;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(156, 142, 224, .1);
  border: 1px solid rgba(156, 142, 224, .25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Feature expand */
.feature-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
  opacity: 0;
}

.feature-card.expanded .feature-expand {
  max-height: 500px;
  opacity: 1;
}

.feature-detail {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 0.5px solid var(--border);
}

.feature-detail > p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-links a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 8px 12px;
  background: rgba(156, 142, 224, .08);
  border: 1px solid rgba(156, 142, 224, .2);
  border-radius: 8px;
  transition: background .2s, border-color .2s;
}

.feature-links a:hover {
  background: rgba(156, 142, 224, .15);
  border-color: rgba(156, 142, 224, .35);
}

.feature-toggle-hint {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-card.expanded .feature-toggle-hint { opacity: 0; }

/* ===== Apps (cards with image) ===== */
.apps-section { background: transparent; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.app-card {
  position: relative;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-1);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--overlay-start) 35%,
    var(--overlay-mid) 70%,
    var(--overlay-end) 100%
  );
  z-index: 1;
}

.app-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.app-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(156, 142, 224, .3);
}

.app-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-text);
}

.app-content {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
}

.app-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: #fff;
}

.app-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-description {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
  margin-bottom: 12px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(156, 142, 224, .2);
  border: 1px solid rgba(156, 142, 224, .4);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* ===== Community ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.community-card {
  background: var(--bg-1);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .3s ease;
}

.community-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.community-icon {
  width: 44px;
  height: 44px;
  background: rgba(156, 142, 224, .1);
  border: 1px solid rgba(156, 142, 224, .25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.community-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.community-content p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.6;
}

.community-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s;
}

.community-link:hover { gap: 10px; }
.community-link svg { width: 14px; height: 14px; }

/* ===== Announcements / Cursos ===== */
.announcements-section {
  background: transparent;
  border-bottom: 0.5px solid var(--border);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.course-card {
  background: var(--bg-1);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .3s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.course-number {
  width: 32px;
  height: 32px;
  background: rgba(156, 142, 224, .1);
  border: 1px solid rgba(156, 142, 224, .25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.course-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 42px;
  color: var(--text);
}

.course-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(156, 142, 224, .08);
  border: 1px solid rgba(156, 142, 224, .2);
  color: var(--accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  align-self: flex-start;
}

.course-link:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.course-link svg { width: 14px; height: 14px; }

/* ===== Founders ===== */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.founder-card {
  position: relative;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-1);
  transition: transform .15s ease, border-color .15s ease;
  cursor: pointer;
}

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

.founder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--overlay-start) 40%,
    var(--overlay-mid) 72%,
    var(--overlay-end) 100%
  );
  z-index: 1;
}

.founder-image {
  position: absolute;
  inset: 0;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-content {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
}

.founder-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  color: #fff;
}

.founder-card .founder-role {
  display: inline-block;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.founder-card .founder-bio {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
}

/* ===== Videos (carrusel) ===== */
.videos-section .section-label {
  background: var(--badge-bg);
  color: var(--badge-text);
}

.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto 16px;
}

.filter-chip {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0.5px solid var(--border);
  background: var(--bg-1);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-chip.active {
  background: rgba(156, 142, 224, .12);
  border-color: rgba(156, 142, 224, .4);
  color: var(--accent);
}

.video-carousel-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.video-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.video-carousel::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 clamp(280px, 80vw, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-1);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
}

.video-thumb img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .3s ease;
}

.video-thumb-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 20px rgba(156, 142, 224, .35);
  transition: transform .2s ease, background .2s ease;
}
.play-icon svg { width: 22px; height: 22px; margin-left: 2px; }
.video-thumb:hover .play-icon { transform: translate(-50%, -50%) scale(1.08); }

.video-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.video-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.video-tag.tag-wh   { background: rgba(156, 142, 224, .1);  border: 1px solid rgba(156, 142, 224, .25); color: var(--accent); }
.video-tag.tag-talk { background: rgba(232, 150, 192, .1);  border: 1px solid rgba(232, 150, 192, .25); color: var(--badge-bg); }
.video-tag.tag-tut  { background: rgba(122, 115, 144, .1); border: 1px solid rgba(122, 115, 144, .25); color: var(--text-dim); }

.video-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.video-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s ease;
}
.video-watch svg { width: 15px; height: 15px; }
.video-watch:hover { gap: 10px; }

.video-ppt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  color: var(--text);
  background: var(--bg-2);
  transition: border-color .2s ease, background .2s ease;
}
.video-ppt svg { width: 14px; height: 14px; color: var(--accent); }
.video-ppt:hover { border-color: var(--border-hover); background: var(--bg-3); }

.carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-1);
  border: 0.5px solid var(--border);
  color: var(--text);
  cursor: pointer;
  z-index: 3;
  box-shadow: var(--shadow);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.carousel-btn:hover { border-color: var(--border-hover); background: var(--bg-2); }
.carousel-btn:active { transform: translateY(-50%) scale(.94); }
.carousel-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.carousel-btn.hidden { display: none; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }

/* ===== Footer ===== */
footer {
  margin-top: 32px;
  padding: 22px 24px;
  border-top: 0.5px solid var(--border);
  background: var(--bg-1);
  position: relative;
  z-index: 1;
  transition: background .3s ease, border-color .3s ease;
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-logo .brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color .2s;
}

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

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--mobile-nav-bg);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity .3s;
}

.mobile-nav.open { display: flex; opacity: 1; }

.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s;
}

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

.mobile-nav .nav-cta {
  background: var(--accent);
  color: var(--accent-text) !important;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
}

/* ===== Fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .founders-grid { grid-template-columns: 1fr; max-width: 400px; }
  .hero h1 { font-size: 28px; }
  .section-header h2 { font-size: 22px; }
}

@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 16px 40px; }
  .hero-text { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  section { padding: 40px 16px; }
  .section-header { margin-bottom: 20px; }
  .section-header h2 { font-size: 20px; }
  .courses-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .logo .brand-tag { display: none; }
  .carousel-btn { display: none; }
}
