.landing-body {
  background: #04151a;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-sans);
  color: #ffffff;
}

/* ---- Animated Background Orbs ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  top: -140px; left: -100px;
  background: radial-gradient(circle, #00b4c5, transparent 70%);
  animation: float1 22s ease-in-out infinite;
}
.orb-2 {
  width: 580px; height: 580px;
  bottom: -180px; right: -140px;
  background: radial-gradient(circle, #054f57, transparent 70%);
  animation: float2 26s ease-in-out infinite;
}
.orb-3 {
  width: 400px; height: 400px;
  top: 40%; left: 55%;
  background: radial-gradient(circle, #0d94a3, transparent 70%);
  animation: float3 30s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -50px) scale(1.1); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 60px) scale(0.9); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
}

/* ---- Topbar Header ---- */
.landing-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
}
.brand-lg {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.2px;
}
.brand-lg .tri {
  width: 18px; height: 18px;
  background: #00b4c5;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.brand-thin { font-weight: 400; color: rgba(255,255,255,0.7); }
.brand-subtag {
  font-size: 11px;
  font-weight: 700;
  color: #69c9d0;
  background: rgba(0, 180, 197, 0.15);
  border: 1px solid rgba(0, 180, 197, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.landing-nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.landing-nav-link:hover { color: #ffffff; }

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.landing-nav-login-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.landing-nav-login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}
.landing-nav-cta-btn {
  background: #00b4c5;
  color: #14191b;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 180, 197, 0.3);
}
.landing-nav-cta-btn:hover {
  background: #00cadc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 180, 197, 0.5);
}

.landing-topbar .icon-btn,
#themeBtn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}
.landing-topbar .icon-btn:hover,
#themeBtn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #00b4c5 !important;
}

/* ---- Hero Section ---- */
.landing-main-v2 {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-v2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #00b4c5;
  background: rgba(0, 180, 197, 0.12);
  border: 1px solid rgba(0, 180, 197, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.8px;
}
.hero-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotate(4deg);
  animation: letterIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
  background: linear-gradient(135deg, #ffffff 20%, #7fe0ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
.hero-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 32px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-primary-btn {
  background: #00b4c5;
  color: #14191b;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 6px 20px rgba(0, 180, 197, 0.4);
}
.hero-primary-btn:hover {
  background: #00cadc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 197, 0.55);
}
.hero-secondary-btn {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}
.hero-secondary-btn:hover {
  color: #ffffff;
  border-color: #69c9d0;
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats div {
  font-size: 12px;
  color: #718096;
  font-weight: 700;
}
.hero-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 2px;
}

/* ---- App Preview Mockup ---- */
.hero-preview-wrapper {
  position: relative;
}
.hero-preview-card {
  background: #14191b;
  border: 1px solid #232d31;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.hero-preview-card:hover {
  transform: translateY(-4px);
  border-color: #00b4c5;
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #192023;
  padding: 12px 16px;
  border-bottom: 1px solid #232d31;
}
.preview-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.preview-dot.red { background: #ff5f56; }
.preview-dot.yellow { background: #ffbd2e; }
.preview-dot.green { background: #27c93f; }
.preview-title {
  font-size: 12px;
  font-weight: 700;
  color: #8899a6;
  margin-left: 8px;
}

.preview-body {
  padding: 20px;
}
.preview-stem {
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.preview-stem b { color: #69c9d0; }
.preview-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.preview-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #192023;
  border: 1px solid #2b383d;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
}
.preview-option.correct {
  border-color: #00b4c5;
  background: rgba(0, 180, 197, 0.12);
  color: #ffffff;
}
.preview-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.opt-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(0, 180, 197, 0.15);
  border: 1px solid rgba(0, 180, 197, 0.35);
  font-weight: 800;
  font-size: 11.5px;
  color: #00b4c5;
  flex-shrink: 0;
}
.opt-text {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}
.opt-bar {
  font-size: 11.5px;
  font-weight: 800;
  color: #69c9d0;
  flex-shrink: 0;
}
.preview-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #232d31;
  font-size: 11.5px;
  font-weight: 700;
  color: #8899a6;
}

.hero-preview-wrapper {
  position: relative;
  padding: 16px 10px;
}

.floating-badge {
  position: absolute;
  background: #192023;
  border: 1px solid #00b4c5;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: floatBadge 4s ease-in-out infinite;
  white-space: nowrap;
  z-index: 10;
}
.badge-1 { top: -14px; left: -10px; animation-delay: 0s; }
.badge-2 { bottom: -14px; right: -10px; animation-delay: 1.5s; }
.badge-3 { top: -14px; right: 20px; animation-delay: 2.5s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Long Form Feature Showcase Sections ---- */
.showcase-section {
  position: relative;
  z-index: 5;
  padding: 80px 32px;
}
.showcase-section.alt-bg {
  background: rgba(10, 25, 30, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.showcase-container.reverse {
  grid-template-columns: 1fr 1fr;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section-tag {
  font-size: 11.5px;
  font-weight: 900;
  color: #00b4c5;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.showcase-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: -0.4px;
}
.showcase-text p {
  font-size: 16px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 24px;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-bullets li {
  font-size: 14.5px;
  line-height: 1.5;
  color: #cbd5e1;
  position: relative;
  padding-left: 24px;
}
.feature-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00b4c5;
  font-weight: 900;
}

.card-glass {
  background: #14191b;
  border: 1px solid #232d31;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* FSRS Visual Chart Box */
.fsrs-demo-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fsrs-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}
.retention-chart {
  position: relative;
  height: 90px;
  border-bottom: 2px solid #2b383d;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 10px 10px;
}
.chart-line {
  position: absolute;
  top: 25px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00b4c5, rgba(0,180,197,0.2));
}
.chart-node {
  position: relative;
  z-index: 2;
  background: #00b4c5;
  color: #14191b;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,180,197,0.5);
}
.fsrs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #232d31;
}
.fsrs-metrics div {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #718096;
}
.fsrs-metrics b {
  font-size: 14px;
  color: #ffffff;
  margin-top: 2px;
}

/* Filter Showcase Grid */
.filter-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.f-badge {
  background: #192023;
  border: 1px solid #2b383d;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
}
.filter-demo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fd-head {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.fd-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px;
  background: #192023;
  border-radius: 6px;
  border: 1px solid #2b383d;
}
.fd-row span { color: #8899a6; }
.fd-row b { color: #ffffff; }

/* Stats Demo Box */
.sd-head {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}
.sd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sd-card {
  background: #192023;
  border: 1px solid #2b383d;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}
.sd-num {
  font-size: 28px;
  font-weight: 900;
  color: #00b4c5;
}
.sd-lbl {
  font-size: 12px;
  color: #8899a6;
  margin-top: 4px;
}

/* ---- Glassmorphic Auth Modal ---- */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  background: #14191b;
  border: 1px solid #2b383d;
  border-radius: 14px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-modal-backdrop.active .auth-modal-card {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #8899a6;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.auth-modal-close:hover { color: #ffffff; }

.auth-tabs {
  display: flex;
  gap: 6px;
  background: #192023;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid #2b383d;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #8899a6;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab.active { background: #00b4c5; color: #14191b; }

.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form.hidden { display: none; }
.auth-form .create-label { color: #8899a6; margin-top: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.auth-form .text-input {
  background: #192023;
  border: 1px solid #2b383d;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
}
.auth-form .text-input:focus { border-color: #00b4c5; outline: none; }

.auth-submit {
  margin-top: 18px;
  background: #00b4c5;
  color: #14191b;
  font-weight: 800;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.auth-submit:hover { background: #00cadc; }

.auth-msg {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
}
.auth-msg-error { background: rgba(255,107,107,0.15); color: #ff9d9d; }
.auth-msg-ok { background: rgba(74,222,140,0.15); color: #7ef0ac; }

/* ---- Footer ---- */
.landing-footer {
  position: relative;
  z-index: 5;
  background: #020b0e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 32px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand .tri {
  width: 14px; height: 14px;
  background: #00b4c5;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.footer-text {
  font-size: 13px;
  color: #718096;
}
.footer-copy {
  font-size: 12px;
  color: #718096;
}

/* ---- Responsive Breakdown ---- */
@media (max-width: 900px) {
  .landing-topbar {
    padding: 12px 14px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .brand-lg {
    font-size: 15px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .brand-subtag {
    display: none !important;
  }
  .landing-nav {
    display: none !important;
  }
  .landing-nav-actions {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .landing-nav-login-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .landing-nav-cta-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .landing-main-v2 { grid-template-columns: 1fr; gap: 40px; padding: 20px 20px 60px; }
  .showcase-container, .showcase-container.reverse { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .floating-badge { display: none; }
  .footer-container { flex-direction: column; text-align: center; }
}
