:root {
  --bg-page: #060a14;
  --bg-elevated: #0f1c2e;
  --bg-elevated-light: #12243a;
  --bg-soft: #f6f9ff;

  /* Creative palette */
  --color-primary: #7c3aed;        /* violet */
  --color-primary-soft: #a78bfa;
  --color-accent: #f59e0b;         /* amber */
  --color-accent2: #2dd4bf;        /* teal */

  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-white: #ffffff;

  --radius-lg: 24px;
  --radius-md: 16px;

  --shadow-soft: 0 18px 45px rgba(20, 25, 45, 0.4);
  --shadow-card: 0 18px 30px rgba(20, 25, 45, 0.25);

  --border-subtle: 1px solid rgba(148, 163, 184, 0.18);
}

/* ============================= */
/* GLOBAL */
/* ============================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--color-white);
  background: radial-gradient(circle at top left, #7c3aed 0%, #060a14 55%);
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(251, 191, 36, 0.14), transparent 45%);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================= */
/* HEADER */
/* ============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 28, 46, 0.95),
    rgba(15, 28, 46, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.55);
}

.brand-mark-small {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* ============================= */
/* NAVIGATION */
/* ============================= */

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #ddd6fe;
  font-size: 0.9rem;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #2dd4bf);
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #2dd4bf);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(124, 58, 237, 0.45);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.btn-ghost {
  background: rgba(15, 28, 46, 0.75);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-sm {
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
}

.full-width {
  width: 100%;
}

/* ============================= */
/* SECTIONS */
/* ============================= */

.section {
  padding: 4.5rem 0;
}

.section-light {
  background: #f8fafc;
  color: var(--color-text-main);
}

.section-dark {
  background: radial-gradient(circle at top right, #7c3aed 0, #020617 55%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.3rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
  padding-top: 3.8rem;
  padding-bottom: 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 3rem;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin: 1rem 0 0.6rem;
}

.gradient-text {
  background: linear-gradient(135deg, #f59e0b, #2dd4bf, #a78bfa);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0;
  color: #e2e8f0;
  max-width: 32rem;
  font-size: 0.98rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 28, 46, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.7rem;
  color: #e5e7eb;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2dd4bf;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-meta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-meta-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e7eb;
}

.hero-meta-text {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ============================= */
/* PHONE MOCKUP */
/* ============================= */

.hero-visual {
  position: relative;
}

.phone-frame {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 36px;
  padding: 12px;
  background: radial-gradient(circle at top left, #2dd4bf, #7c3aed);
  box-shadow: var(--shadow-soft);
}

.phone-screen {
  background: #020617;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  height: 520px;
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 36%;
  height: 18px;
  background: #020617;
  border-bottom-left-radius: 999px;
  border-bottom-right-radius: 999px;
}

.phone-header {
  padding: 0.7rem 0.85rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.6);
  background: linear-gradient(to right, #020617, #0f1c2e);
}

.phone-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fde047);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.phone-info {
  display: flex;
  flex-direction: column;
}

.phone-title {
  font-size: 0.86rem;
  font-weight: 600;
}

.phone-status {
  font-size: 0.7rem;
  color: #9ca3af;
}

.phone-chat {
  flex: 1;
  padding: 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
}

.msg {
  max-width: 84%;
  padding: 0.6rem 0.75rem;
  border-radius: 16px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.msg-student {
  align-self: flex-end;
  background: #7c3aed;
  border-bottom-right-radius: 4px;
}

.msg-bot {
  align-self: flex-start;
  background: #0f1c2e;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-bottom-left-radius: 4px;
}

.msg strong {
  font-weight: 600;
}

.msg em {
  font-style: normal;
  color: #fbbf24;
}

.phone-input {
  padding: 0.55rem 0.8rem;
  border-top: 1px solid rgba(124, 58, 237, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #6b7280;
  background: #020617;
}

.phone-send {
  font-size: 0.9rem;
  color: #2dd4bf;
}

.hero-badge {
  position: absolute;
  bottom: -1.3rem;
  right: 18%;
  background: rgba(15, 28, 46, 0.9);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
  border: 1px solid rgba(124, 58, 237, 0.6);
}

/* ============================= */
/* GRID UTILITIES */
/* ============================= */

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ============================= */
/* CARDS & FEATURES */
/* ============================= */

.card {
  background: #020617;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-card);
}

.section-light .card {
  background: #ffffff;
  color: var(--color-text-main);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: radial-gradient(circle at top left, #2dd4bf, #7c3aed);
}

.feature-card h3 {
  margin: 0;
}

.feature-card p {
  margin: 0;
  color: #cbd5f5;
}

.section-light .feature-card p {
  color: var(--color-text-muted);
}

/* ============================= */
/* PARENTS SECTION */
/* ============================= */

.parents-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.parents-copy h2 {
  font-size: 1.9rem;
}

.parents-copy p {
  color: #e5e7eb;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.checklist li {
  margin-bottom: 0.35rem;
}

.highlight-box {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(15, 28, 46, 0.8);
  border: 1px dashed rgba(124, 58, 237, 0.7);
  font-size: 0.86rem;
}

.parents-stats h3 {
  margin-top: 0;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 0.4rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
}

.stat-note {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ============================= */
/* TIMELINE */
/* ============================= */

.timeline {
  position: relative;
  margin-top: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#7c3aed, #2dd4bf);
  opacity: 0.25;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding-left: 0.8rem;
}

.timeline-item + .timeline-item {
  margin-top: 1.4rem;
}

.timeline-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #7c3aed, #2dd4bf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem;
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.5);
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  margin-top: 0;
}

.muted {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================= */
/* DEMO SECTION */
/* ============================= */

.demo-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.bullet-list {
  list-style: disc;
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.demo-video {
  padding: 0;
  overflow: hidden;
}

.demo-video-inner {
  padding: 2.1rem 1.6rem;
  text-align: center;
  background: radial-gradient(circle at top, #7c3aed, #0f1c2e);
}

.demo-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  background: #f59e0b;
  color: #fff7ed;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(245, 158, 11, 0.45);
}

/* ============================= */
/* PRICING */
/* ============================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.pricing-card {
  position: relative;
}

.pricing-card h3 {
  margin-top: 0;
}

.pricing-price {
  font-size: 1.8rem;
  margin: 0.3rem 0;
}

.pricing-currency {
  font-size: 1rem;
  vertical-align: top;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.pricing-list li + li {
  margin-top: 0.35rem;
}

.pricing-card-featured {
  border: 1px solid rgba(167, 139, 250, 1);
  box-shadow: 0 24px 55px rgba(124, 58, 237, 0.45);
  transform: translateY(-4px);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(167, 139, 250, 0.18);
  color: #e9d5ff;
}

.pill-small {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
}

/* ============================= */
/* FAQ */
/* ============================= */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.7rem 1rem;
  background: #ffffff;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.5rem 0 0.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 28, 46, 0.96);
  padding: 1.1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-copy {
  color: #6b7280;
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .parents-inner,
  .demo-inner,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pricing-card-featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(15, 28, 46, 0.98);
    flex-direction: column;
    padding: 0.7rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 3rem;
  }
  .hero-copy h1 {
    font-size: 2.1rem;
  }
  .phone-frame {
    max-width: 280px;
  }
}
