/* ═══════════════════════════════════════════════════
   LearningLust — Main Stylesheet
   Theme: dark #09070f, accent #C840FF (purple)
   Fonts: Fraunces (serif headings), Inter (UI/body)
   Rule: NO grey. All text is white (#f0eaf8) on dark bg.
═══════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  background: #09070f;
  color: #f0eaf8;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --purple: #C840FF;
  --purple-dim: rgba(200, 64, 255, 0.10);
  --purple-border: rgba(200, 64, 255, 0.20);
  --text: #f0eaf8;
  --border: rgba(255, 255, 255, 0.07);
  --surface: #0f0c1a;
}

/* ── NAV ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav.scrolled {
  background: rgba(9, 7, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.3px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo span { color: var(--purple); font-style: normal; }
.nav-logo-img {
  height: 80px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 45% at 50% 28%,
    rgba(200, 64, 255, 0.07) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(52px, 8.5vw, 92px);
  font-weight: 700;
  line-height: 1.03;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title em {
  color: var(--purple);
  font-style: italic;
}
.hero-sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 16px;
}
.hero-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: inline-block;
  border: 0.5px solid var(--purple-border);
  color: var(--purple);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 30px;
  transition: background 0.2s;
}
.hero-cta:hover { background: var(--purple-dim); }
.hero-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: rgba(200, 64, 255, 0.22);
  z-index: 2;
}

/* ── STRIP ──────────────────────────────────────────── */
.strip {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 14px 28px;
}
.strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}
.strip-dot {
  color: var(--purple);
  font-size: 18px;
  line-height: 1;
}

/* ── SHARED SECTION ─────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.13;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 14px;
  color: var(--text);
  line-height: 1.78;
  max-width: 560px;
  margin-bottom: 40px;
}

/* ── PLATFORMS (4+2 block cards) ────────────────────── */
.platforms { padding: 80px 0 48px; }

.eco-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.eco-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: calc(50% - 8px);
  margin: 0 auto;
}
.eco-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.eco-card:hover {
  border-color: var(--purple-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(138, 43, 226, 0.18);
}
.eco-card:hover .eco-tag { color: var(--purple); }
.eco-card-self {
  border-color: rgba(200, 64, 255, 0.15);
}
.eco-logo {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.eco-logo-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text);
}
.eco-logo-text span { color: var(--purple); font-style: normal; }
[data-track="eco-parucka"] .eco-logo {
  filter: brightness(0) invert(1);
  height: 64px;
}
[data-track="eco-aijr"] .eco-logo {
  filter: invert(1);
}

.eco-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

/* ── TRANSLATE WIDGET ───────────────────────────────── */
.nav-inner { position: relative; }
.nav-translate {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
}
.tr-wrap { position: relative; }
.tr-btn {
  background: none; border: none; cursor: pointer;
  padding: 0.3rem 0.5rem; line-height: 1;
  transition: opacity 0.15s; min-height: 44px;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.tr-btn:hover { opacity: 0.75; }
.tr-icon { font-size: 1.1rem; color: var(--purple); }
.tr-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text); }
.tr-original-btn {
  font-size: 0.8rem; font-weight: 600; color: var(--purple); text-decoration: none;
  padding: 0.3rem 0.5rem; min-height: 44px;
  display: inline-flex; align-items: center; transition: opacity 0.15s;
}
.tr-original-btn:hover { opacity: 0.75; }
.tr-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #1a1525; border: 1px solid var(--purple-border);
  border-radius: 8px; list-style: none; margin: 0; padding: 0.4rem 0;
  min-width: 140px; z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  max-height: 260px; overflow-y: auto;
}
.tr-dropdown li a {
  display: block; padding: 0.45rem 1rem; font-size: 0.9rem;
  color: var(--text); text-decoration: none; transition: background 0.1s;
}
.tr-dropdown li a:hover { background: rgba(200,64,255,0.10); }
iframe.goog-te-banner-frame, iframe.skiptranslate,
.goog-te-banner-frame, .goog-te-menu-frame,
.goog-te-gadget, #google_translate_element { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.skiptranslate { display: none !important; }
/* Mobile: translate moves below logo, centered */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    gap: 6px;
    padding: 16px 28px;
  }
  .nav-translate {
    position: static;
    transform: none;
  }
  .tr-dropdown { right: auto; left: 50%; transform: translateX(-50%); }
  /* Extra top padding so hero clears the taller stacked nav */
  .hero { padding-top: 180px; }
}
@media (max-width: 480px) {
  .plat-video-grid { gap: 10px; }
  .plat-card-body { padding: 14px 10px 12px; }
}

/* ── PLATFORM VIDEO CARDS ───────────────────────────── */
.plat-videos {
  padding: 48px 0 80px;
  border-top: 0.5px solid var(--border);
}
.plat-video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.plat-card {
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 11px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.plat-card:hover {
  border-color: var(--purple-border);
  transform: translateY(-4px);
}
.plat-video-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #09070f;
}
.plat-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plat-card-body {
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plat-card-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}
.plat-card-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
  flex: 1;
}
.plat-card-cta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  transition: opacity 0.2s;
}
.plat-card:hover .plat-card-cta { opacity: 0.75; }

/* ── PHILOSOPHY ─────────────────────────────────────── */
.philosophy {
  padding: 80px 0;
  border-top: 0.5px solid var(--border);
}
.philosophy-inner {
  max-width: 720px;
}
.philosophy-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.82;
  margin-bottom: 18px;
}
.philosophy-body:last-child { margin-bottom: 0; }
.philosophy-quote {
  border-left: 1px solid var(--purple-border);
  padding-left: 28px;
  margin-top: 36px;
}
.quote-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--text);
  line-height: 1.65;
}

/* ── SUBSCRIBE ──────────────────────────────────────── */
.subscribe {
  padding: 80px 0;
  border-top: 0.5px solid var(--border);
  text-align: center;
}
.subscribe-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.subscribe-sub {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto 32px;
}
.subscribe-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
}
.subscribe-form input {
  flex: 1;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 13px 18px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.subscribe-form input::placeholder { color: rgba(240, 234, 248, 0.35); }
.subscribe-form input:focus { border-color: var(--purple-border); }
.subscribe-form button {
  background: none;
  border: 0.5px solid var(--purple-border);
  color: var(--purple);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 22px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.subscribe-form button:hover { background: var(--purple-dim); }
.subscribe-msg {
  font-size: 13px;
  color: var(--text);
  margin-top: 14px;
  min-height: 20px;
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { font-size: 18px; }
.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text);
  margin-top: 8px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding: 18px 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text);
}
.footer-bottom a {
  color: var(--text);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--purple); }

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 7, 15, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { font-size: 24px; }
  .nav-toggle { display: flex; }

  /* Hero — padding-top handled by translate breakpoint above */
  .hero { padding: 180px 20px 64px; }
  .hero-glow {
    background: radial-gradient(
      ellipse 100% 40% at 50% 25%,
      rgba(200, 64, 255, 0.06) 0%,
      transparent 60%
    );
  }

  /* Ecosystem */
  .eco-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .eco-row-2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; gap: 12px; }

  /* Platform video cards — 2 per row, centered */
  .plat-card { width: calc(50% - 8px); }

  /* Philosophy */
  .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-quote { padding-left: 24px; }

  /* Subscribe */
  .subscribe-form { flex-direction: column; max-width: 320px; }
  .subscribe-form input { border-right: 0.5px solid var(--border); border-bottom: none; }
  .subscribe-form button { border-top: none; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .eco-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .eco-card { padding: 20px 12px 18px; }
  .strip-inner { gap: 14px; }
}
