/* ============================================================
   LSI — Stellar Dream UX/UI · Blue & White Theme
   Shared design system for www.lsistream.ai
   ============================================================ */

:root {
  --blue-900: #0f2f52;
  --blue-800: #1e3a5f;
  --blue-700: #2b4f87;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --navy: #0f1f33;
  --ink: #1e293b;
  --muted: #64748b;
  --line: rgba(37, 99, 235, 0.14);
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f5f9ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 47, 82, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 47, 82, 0.14);
  --grad: linear-gradient(135deg, #1e3a5f, #2563eb);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans TC', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--blue-600); }

/* ---------- Nav (Stellar Dream style, glassy light) ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.5rem; max-width: 1400px; margin: 0 auto; gap: 1rem;
}
.logo {
  font-size: 1.25rem; font-weight: 800; color: var(--blue-800);
  text-decoration: none; display: flex; align-items: center; gap: 0.7rem; letter-spacing: -0.02em;
}
.logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.logo b { color: var(--blue-600); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue-600); }
.btn-nav {
  background: var(--grad); color: #fff !important; padding: 0.6rem 1.3rem;
  border-radius: 100px; font-weight: 700; font-size: 0.9rem;
}
.btn-nav:hover { box-shadow: 0 6px 18px rgba(37,99,235,.35); }
.lang-toggle { display: flex; background: var(--blue-50); border-radius: 100px; overflow: hidden; }
.lang-toggle a { padding: 0.45rem 1rem; text-decoration: none; font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.lang-toggle a.active { background: var(--grad); color: #fff; }

/* Mobile nav */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--blue-800); line-height: 1; }
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255,255,255,0.98); padding: 5rem 2rem 2rem; flex-direction: column; gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .close-x { position: absolute; top: 1.4rem; right: 1.4rem; font-size: 1.8rem; border: none; background: none; color: var(--blue-800); cursor: pointer; }
.mobile-menu a { text-decoration: none; color: var(--blue-800); font-weight: 700; font-size: 1.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .lang-toggle { width: fit-content; margin-top: 1.2rem; }

/* ---------- Hero (Stellar Dream page-hero, light) ---------- */
.page-hero, .hero {
  position: relative; padding: 9.5rem 1.5rem 6rem; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(900px 400px at 0% 0%, rgba(37,99,235,0.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}
.beam { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .5; }
.beam-strong { width: 48vw; height: 48vw; background: rgba(59,130,246,0.25); }
.beam.thin { width: 30vw; height: 30vw; background: rgba(37,99,235,0.20); }
.hero-content { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; color: var(--blue-600); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; color: var(--blue-900); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.hero h1 span { color: var(--blue-600); }
.hero .sub { font-size: 1.2rem; color: var(--muted); max-width: 560px; line-height: 1.7; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--grad); color: #fff; padding: 0.95rem 2rem; border-radius: 100px;
  text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 8px 24px rgba(37,99,235,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,99,235,.4); }
.btn-secondary {
  background: #fff; color: var(--blue-800); padding: 0.95rem 2rem; border-radius: 100px;
  text-decoration: none; font-weight: 700; border: 1.5px solid var(--line); transition: all .2s;
}
.btn-secondary:hover { border-color: var(--blue-500); color: var(--blue-600); }
.hero-media { position: relative; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-media iframe { display: block; width: 100%; }

/* ---------- Sections ---------- */
.section-tight { padding: 4.5rem 1.5rem; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; color: var(--blue-900); text-align: center; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.05rem; margin: 0 auto 2.5rem; max-width: 720px; }

/* ---------- Course cards (Stellar Dream ai-card style, blue) ---------- */
.courses-section { background: var(--bg-soft); padding: 4.5rem 1.5rem; }
.courses-header { text-align: center; margin-bottom: 2.5rem; }
.badge {
  display: inline-block; background: var(--blue-100); color: var(--blue-700);
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; padding: 0.4rem 1.1rem;
  border-radius: 100px; margin-bottom: 0.9rem; text-transform: uppercase;
}
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; }
.course-card-simple, .ai-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  cursor: pointer; transition: border-color .3s, transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.course-card-simple:hover, .ai-card:hover { border-color: rgba(59,130,246,.5); transform: translateY(-5px); box-shadow: var(--shadow); }
.course-card-simple .icon { font-size: 2.2rem; margin-bottom: 0.9rem; display: inline-block; }
.course-card-simple h3 { color: var(--blue-900); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.4rem; }
.course-card-simple p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.course-card-simple .tag {
  display: inline-block; background: var(--blue-50); color: var(--blue-600);
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 100px;
}
.ai-card b { display: block; font-size: 1.05rem; color: var(--blue-700); margin-bottom: 0.5rem; font-weight: 800; }
.ai-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.7; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.ai-feature {
  border: 2px solid var(--blue-500); background: var(--blue-50); border-radius: 12px;
  padding: 0.95rem 1.1rem; font-weight: 800; font-size: 1.05rem; color: var(--blue-700); text-align: center;
}
.ai-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 0.9rem; }
.ai-benefit { text-align: center; padding: 1.4rem 1rem; }
.ai-benefit .num { font-size: 2.2rem; font-weight: 900; color: var(--blue-500); line-height: 1; margin-bottom: 0.7rem; }
.ai-benefit p { margin: 0; font-size: 0.95rem; color: var(--blue-800); font-weight: 600; line-height: 1.6; }
.ai-big { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; color: var(--blue-600); text-align: center; line-height: 1.1; letter-spacing: -0.02em; }
.ai-big-sub { text-align: center; color: var(--muted); font-size: 1.1rem; margin-top: 0.8rem; }
.ai-quote { border-left: 3px solid var(--blue-500); background: var(--blue-50); border-radius: 0 12px 12px 0; padding: 1.4rem 1.6rem; font-size: 1.05rem; color: var(--blue-800); font-style: italic; line-height: 1.8; }
.ai-poster-wrap { text-align: center; }
.ai-poster { max-width: 380px; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }

/* ---------- Schools marquee ---------- */
.schools-section { padding: 3.5rem 0; background: #fff; overflow: hidden; }
.schools-title { text-align: center; font-size: 1.3rem; font-weight: 700; color: var(--muted); margin-bottom: 2rem; }
.logo-marquee-container { display: flex; flex-direction: column; gap: 1.2rem; }
.logo-marquee { display: flex; gap: 2.5rem; animation: marquee 30s linear infinite; }
.logo-marquee.reverse { animation-direction: reverse; }
.logo-item { flex-shrink: 0; }
.logo-item img { height: 60px; width: auto; opacity: 0.55; filter: grayscale(1); transition: all .3s; }
.logo-item img:hover { opacity: 1; filter: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA ---------- */
.cta-section { padding: 5rem 1.5rem; background: var(--grad); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content:''; position:absolute; inset:0; background: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,0.12), transparent 60%); }
.cta-section h2 { color: #fff; font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 900; margin-bottom: 0.9rem; position: relative; }
.cta-section p { color: rgba(255,255,255,0.92); margin-bottom: 2rem; position: relative; }
.cta-button {
  display: inline-block; background: #fff; color: var(--blue-800); padding: 1rem 2.2rem;
  border-radius: 100px; text-decoration: none; font-weight: 800; position: relative; transition: transform .2s, box-shadow .2s;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }

/* ---------- Footer (Stellar Dream style, navy) ---------- */
.footer { background: var(--navy); color: #fff; padding: 4rem 1.5rem 2rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.7rem; color:#fff; }
.footer-brand p { color: #94a3b8; line-height: 1.7; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; color: #fff; }
.footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--blue-400); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: #64748b; font-size: 0.875rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero .sub { margin-left:auto; margin-right:auto; }
  .hero-buttons { justify-content: center; }
  .hero-media { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand h3 { justify-content: center; }
  .courses-grid { grid-template-columns: 1fr; }
  .ai-features { grid-template-columns: 1fr; }
  .section-tight { padding: 3rem 1.25rem; }
  .hero { padding: 7.5rem 1.25rem 4rem; }
}
