:root {
  --primary: #4b22e6;
  --secondary: #6c4dff;
  --dark: #071133;
  --muted: #626a84;
  --background: #f6f4ff;
  --surface: #ffffff;
  --soft: #fbfaff;
  --border: rgba(7, 17, 51, 0.09);
  --shadow: 0 22px 60px rgba(7, 17, 51, 0.09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1140px, calc(100% - 32px)); }

.site-nav {
  min-height: 82px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(7, 17, 51, 0.06);
  backdrop-filter: blur(14px);
}
.brand-logo { width: 168px; height: auto; display: block; border-radius: 6px; }
.nav-link {
  color: var(--dark);
  font-weight: 700;
  margin: 0 0.28rem;
}
.nav-link:hover,
.nav-link.active { color: var(--primary) !important; }

.btn-primary-custom,
.btn-outline-custom,
.btn-light-custom {
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
}
.btn-primary-custom {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 32px rgba(75, 34, 230, 0.25);
}
.btn-primary-custom:hover { color: #fff; transform: translateY(-1px); }
.btn-outline-custom {
  color: var(--primary);
  border: 1px solid rgba(75, 34, 230, 0.4);
  background: #fff;
}
.btn-outline-custom:hover { color: var(--primary); border-color: var(--primary); }
.btn-light-custom { color: var(--primary); background: #fff; border: 0; }
.btn-sm-lg { padding: 0.68rem 1.05rem; }

.hero,
.page-hero {
  position: relative;
  padding: 92px 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(108, 77, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #fff, var(--background));
}
.hero-image { padding: 72px 0 120px; }
.hero h1,
.page-hero h1,
.article-header h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.35rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.055em;
}
.page-hero h1 { margin-left: auto; margin-right: auto; }
.hero-text,
.section-lead {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: #27304f;
  font-size: 1.16rem;
  line-height: 1.75;
}
.page-hero .hero-text { margin-left: auto; margin-right: auto; }
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(75, 34, 230, 0.16);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(246, 244, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 850;
}
.eyebrow-light { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.2); }
.hero-panel {
  padding: 12px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.home-hero {
  min-height: calc(100vh - 82px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.92) 36%, rgba(255,255,255,.22) 68%),
    url("../hero-student.png") center right / cover no-repeat;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(246,244,255,.96));
  pointer-events: none;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  padding: 112px 0 220px;
}
.home-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.068em;
}
.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, var(--primary), #7258ff);
  -webkit-background-clip: text;
  background-clip: text;
}
.home-hero .hero-text {
  max-width: 575px;
  color: #27304f;
  font-size: 1.28rem;
  line-height: 1.65;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.student-avatars img {
  width: 43px;
  height: 43px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
  margin-left: -12px;
  box-shadow: 0 8px 20px rgba(7,17,51,.12);
}
.student-avatars img:first-child { margin-left: 0; }
.hero-proof span { color: var(--muted); }

.feature-strip { margin-top: -76px; position: relative; z-index: 2; }
.strip-card,
.info-card,
.subject-card,
.pricing-card,
.step-card,
.testimonial-card,
.stack-card,
.contact-form,
.highlight-panel,
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(7, 17, 51, 0.055);
}
.strip-card { padding: 28px; }
.strip-item { display: flex; gap: 1rem; align-items: flex-start; }
.strip-item i,
.icon-soft,
.subject-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--primary);
  background: #eee9ff;
  font-size: 1.55rem;
}
.strip-item h2 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 850; }
.strip-item p { margin: 0; color: var(--muted); }

.section-pad { padding: 86px 0; }
.soft-section { background: linear-gradient(180deg, var(--background), #fff); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.55rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.section-subtitle {
  margin: 1rem auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}
.info-card,
.subject-card,
.pricing-card,
.step-card,
.testimonial-card,
.stack-card,
.contact-form,
.highlight-panel { padding: 30px; }
.info-card h3,
.subject-card h3,
.pricing-card h3,
.step-card h3 { margin: 1.05rem 0 0.65rem; font-weight: 850; letter-spacing: -0.02em; }
.info-card p,
.subject-card p,
.pricing-card p,
.step-card p,
.testimonial-card p,
.muted { color: var(--muted); line-height: 1.7; }
.subject-card { transition: transform .2s ease, box-shadow .2s ease; }
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.text-link { font-weight: 850; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 1.25rem;
  list-style: none;
}
.tag-list li,
.topic-pill {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--primary);
  background: #f0ecff;
  font-size: 0.88rem;
  font-weight: 750;
}
.topic-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mini-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 68px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
}
.mini-feature i { color: var(--primary); font-size: 1.3rem; }
.step-card span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
  font-size: 1.15rem;
}
.dashboard-preview {
  padding: 30px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(108, 77, 255, 0.42), transparent 36%),
    linear-gradient(145deg, #081133, #171148);
  box-shadow: var(--shadow);
}
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.preview-top strong { font-size: 3rem; line-height: 1; }
.preview-bars { height: 9px; margin-top: 1rem; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; }
.preview-bars span { display: block; height: 100%; border-radius: inherit; background: #8d79ff; }
.preview-tile {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
}
.preview-tile strong,
.preview-tile span { display: block; }
.preview-tile span { color: rgba(255,255,255,0.68); margin-top: 0.25rem; }

.mock-phone {
  max-width: 370px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 42px;
  background: #111827;
  box-shadow: 0 35px 80px rgba(7,17,51,.28);
  transform: rotate(2deg);
}
.phone-screen {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(180deg, #11182d, #0a1022);
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(108,77,255,.22);
  filter: blur(28px);
}
.phone-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.phone-header small,
.phone-card small,
.phone-card span,
.phone-action span { color: rgba(255,255,255,.58); }
.phone-header h3 {
  margin: 0;
  font-weight: 850;
}
.phone-header i { font-size: 1.35rem; }
.phone-card {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}
.progress-ring {
  width: 145px;
  height: 145px;
  display: grid;
  place-items: center;
  margin: 18px auto;
  border-radius: 50%;
  background: conic-gradient(#6c4dff 0 72%, rgba(255,255,255,.12) 72% 100%);
}
.progress-inner {
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d1428;
  text-align: center;
}
.progress-inner h4 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 900;
}
.phone-subject-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  border-radius: 50%;
  color: var(--primary);
  background: #eee8ff;
  font-size: 1.35rem;
}
.phone-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.phone-progress div {
  height: 100%;
  border-radius: inherit;
  background: #6c4dff;
}
.phone-action {
  position: relative;
  z-index: 2;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}
.phone-action i,
.phone-action span { display: block; }
.phone-action i { margin-bottom: 0.35rem; font-size: 1.2rem; }

.price {
  margin-top: 1rem;
  font-size: 3.6rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.price span { font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.pricing-featured { border: 2px solid rgba(75, 34, 230, 0.32); box-shadow: 0 26px 70px rgba(75, 34, 230, 0.16); }
.plan-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
}
.check-list { padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.78rem;
  color: #313a5a;
}
.check-list li::before {
  content: "\F26A";
  position: absolute;
  left: 0;
  top: 0.04rem;
  font-family: "bootstrap-icons";
  color: #11a77b;
}
.stars { color: #f2ad18; margin-bottom: 1rem; }
.testimonial-card strong,
.testimonial-card span { display: block; }
.testimonial-card span { color: var(--muted); font-size: 0.9rem; }

.faq-list { max-width: 900px; margin: 0 auto; }
.faq-list .accordion-item {
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(7,17,51,0.04);
}
.faq-list .accordion-button { font-weight: 850; color: var(--dark); }
.faq-list .accordion-button:not(.collapsed) { color: var(--primary); background: #f4f0ff; }

.cta-wrap { padding: 30px 0 80px; }
.cta-panel {
  padding: 62px 28px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(108, 77, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #081133, #180b45);
}
.cta-panel h2 { max-width: 760px; margin: 0 auto; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; letter-spacing: -0.045em; }
.cta-panel p { max-width: 660px; margin: 1rem auto 1.6rem; color: rgba(255,255,255,0.75); font-size: 1.08rem; }

.contact-form label { display: block; margin-bottom: 0.45rem; font-weight: 800; }
.form-control {
  min-height: 48px;
  border-color: rgba(7,17,51,0.12);
  border-radius: 10px;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(75, 34, 230, 0.12); }
.form-note { color: var(--muted); }
.contact-line { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1rem 0; color: #313a5a; }
.contact-line i { color: var(--primary); }

.blog-card { overflow: hidden; }
.blog-card img { width: 100%; height: 260px; object-fit: cover; }
.blog-body { padding: 26px; }
.blog-body span,
.meta { color: var(--primary); font-size: 0.85rem; font-weight: 800; }
.blog-body h2 { margin: 0.55rem 0; font-size: 1.45rem; font-weight: 850; letter-spacing: -0.025em; }
.blog-body h2 a { color: var(--dark); }
.article-wrap { padding: 78px 0 0; }
.article-header { max-width: 920px; margin: 0 auto; text-align: center; }
.article-header h1 { margin-left: auto; margin-right: auto; }
.article-header img { width: 100%; max-height: 520px; object-fit: cover; margin-top: 2rem; border-radius: 24px; box-shadow: var(--shadow); }
.article-body { max-width: 760px; margin: 48px auto 70px; font-size: 1.08rem; line-height: 1.85; color: #303956; }
.article-body h2 { margin-top: 2rem; color: var(--dark); font-weight: 850; letter-spacing: -0.025em; }
.legal-copy { max-width: 880px; color: #303956; font-size: 1.04rem; line-height: 1.85; }
.legal-copy h2 { margin-top: 2rem; color: var(--dark); font-weight: 850; letter-spacing: -0.025em; }
.legal-copy h2:first-child { margin-top: 0; }
.highlight-panel h2 { font-weight: 900; letter-spacing: -0.04em; }

.site-footer {
  padding: 66px 0 26px;
  color: rgba(255,255,255,0.74);
  background: var(--dark);
}
.footer-logo {
  width: 168px;
  height: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
}
.footer-copy { max-width: 390px; line-height: 1.75; }
.product-line { color: #fff; font-weight: 850; }
.product-line a {
  display: inline;
  margin: 0;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
}
.site-footer a {
  display: block;
  margin-bottom: 0.62rem;
  color: rgba(255,255,255,0.72);
}
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.social-dark a { color: var(--primary); background: #f0ecff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 991px) {
  .site-nav { min-height: 74px; }
  .navbar-collapse { padding: 1rem 0; }
  .hero,
  .page-hero { padding: 64px 0; }
  .hero-image { padding-bottom: 104px; }
  .home-hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.94) 45%, rgba(255,255,255,.58) 100%),
      url("../hero-student.png") center bottom / cover no-repeat;
  }
  .home-hero-content { padding: 72px 0 180px; }
  .home-hero .hero-text { font-size: 1.08rem; }
  .feature-strip { margin-top: -54px; }
  .hero-panel { transform: none; }
  .mock-phone { transform: none; margin-top: 40px; }
}
@media (max-width: 575px) {
  .container { width: min(100% - 24px, 1140px); }
  .brand-logo,
  .footer-logo { width: 148px; }
  .hero h1,
  .page-hero h1,
  .article-header h1 { font-size: 2.8rem; }
  .home-hero h1 { font-size: 3.05rem; }
  .home-hero-content { padding-top: 55px; }
  .hero-actions .btn,
  .site-nav .btn { width: 100%; }
  .section-pad { padding: 62px 0; }
  .strip-card,
  .info-card,
  .subject-card,
  .pricing-card,
  .step-card,
  .testimonial-card,
  .stack-card,
  .contact-form,
  .highlight-panel { padding: 22px; }
  .phone-screen { min-height: 610px; }
  .footer-bottom { flex-direction: column; }
}
