/* ============================================================
   AI Learning Space — landing page
   Fresh, warm, friendly. Light theme, soft gradient blobs,
   rounded cards. Plain CSS, no framework.
   ============================================================ */

:root {
  --bg: #fbf8f4;
  --ink: #201a2e;
  --ink-dim: #6b6478;
  --card: #ffffff;
  --border: #eae3f5;
  --accent: #7c5cff;
  --accent-2: #ff8a5c;
  --accent-3: #2ec5a1;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(45, 26, 92, 0.08);
  --shadow-hover: 0 16px 40px rgba(45, 26, 92, 0.14);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--ink-dim); }

/* ---------- Background blobs ----------
   Kept deliberately faint and pushed away from the hero heading — these
   overlapped directly behind the h1 before and washed out its contrast. */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  z-index: -1;
  pointer-events: none;
}
.blob-1 {
  width: 420px; height: 420px;
  background: var(--accent);
  top: -220px; left: -160px;
}
.blob-2 {
  width: 360px; height: 360px;
  background: var(--accent-2);
  top: 520px; right: -180px;
  opacity: 0.12;
}
.blob-3 {
  width: 400px; height: 400px;
  background: var(--accent-3);
  bottom: -220px; left: 30%;
  opacity: 0.1;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 244, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 26, 92, 0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
}
.brand-mark { font-size: 18px; }

.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.88; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; }
.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.08;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Notice ---------- */
.notice-wrap { padding: 0 0 60px; }
.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff7ec;
  border: 1.5px solid #f3d9a8;
  border-radius: var(--radius);
  padding: 22px 26px;
}
.notice-icon { font-size: 26px; line-height: 1; margin-top: 2px; }
.notice strong { display: block; margin-bottom: 6px; font-size: 16px; }
.notice p { margin: 0; color: #6b5a35; font-size: 14.5px; }

/* ---------- Apps grid ---------- */
.apps { padding: 20px 0 80px; }
.apps h2 { font-size: 30px; }
.section-sub { color: var(--ink-dim); margin-bottom: 36px; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.app-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.app-card h3 { font-size: 20px; margin-bottom: 2px; }
.app-desc { color: var(--ink-dim); font-size: 14.5px; flex: 1; }

.app-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.app-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f4f0fb;
  color: var(--accent);
}

.app-link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  background: #f4f0fb;
  align-self: flex-start;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.app-link:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.app-card.coming-soon {
  background: transparent;
  border: 1.5px dashed var(--border);
  box-shadow: none;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  color: var(--ink-dim);
}
.app-card.coming-soon:hover { transform: none; box-shadow: none; }
.coming-icon { font-size: 26px; }

/* ---------- About ---------- */
.about {
  padding: 70px 0 100px;
}
.about-inner {
  background: var(--ink);
  color: #f4f1fb;
  border-radius: 28px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text h2 { color: #fff; font-size: 28px; }
.about-text p { color: #cbc4e0; font-size: 15.5px; }

.about-stats {
  display: flex;
  gap: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--accent-2);
}
.stat-label {
  font-size: 13px;
  color: #a79cc9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.footer { padding: 10px 0 50px; text-align: center; }
.footer-inner p { margin: 0 0 4px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; padding: 40px 28px; }
  .about-stats { gap: 20px; }
  .hero { padding: 60px 0 40px; }
  .notice { flex-direction: column; padding: 20px; }
}
