@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

/* ===================================================================
   1. DESIGN SYSTEM & TOKENS (LaunchItIndigo & Coral Theme)
   =================================================================== */
:root {
  /* Brand Palette */
  --bg-main:       #FCF8F9;
  --bg-surface:    #FFFFFF;
  --bg-hero:       #1C1014; /* Midnight Deep Space */
  --bg-hero-alt:   #32151F;
  
  --primary-indigo:#9F1239; /* Core Brand Indigo */
  --primary-hover: #881337;
  --coral-accent:  #BE185D; /* Energetic Coral / Action CTAs */
  --coral-hover:   #9D174D;
  --cyan-tag:      #BE185D; /* Logic & Quiz Badges */
  --amber-tag:     #B45309; /* Olympiad Badges */

  --text-main:     #24171B;
  --text-muted:    #7C6970;
  --text-light:    #FCF8F9;
  --line-color:    #E9DDE1;

  /* Typography */
  --font-heading:  'Plus Jakarta Sans', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Radii & Shadows */
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;

  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md:     0 4px 14px rgba(11, 15, 25, 0.08);
  --shadow-lg:     0 14px 30px rgba(11, 15, 25, 0.12);
  --shadow-glow:   0 0 24px rgba(190, 24, 93, 0.35);

  --transition:    all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================================
   2. GLOBAL RESETS
   =================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* ===================================================================
   3. NAVIGATION BAR (.topbar)
   =================================================================== */
.topbar {
  background: var(--bg-hero);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.topbar .logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-light);
}

.topbar .logo span {
  color: var(--coral-accent);
}

.topbar .nav-group {
  display: flex;
  align-items: center;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar nav a {
  color: #94A3B8;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.topbar nav a:hover {
  color: var(--text-light);
}

.account-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 24px;
  transition: var(--transition);
}

.account-btn:hover {
  background: var(--primary-indigo);
  border-color: var(--primary-indigo);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ===================================================================
   4. HERO SECTION (.hero)
   =================================================================== */
.hero {
  background: var(--bg-hero);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(159, 18, 57, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(190, 24, 93, 0.14) 0%, transparent 50%);
  color: var(--text-light);
  padding: 80px 24px 110px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.hero-right-image {
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 42%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.8;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 1) 90%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 1) 90%);
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 0 16px 0;
  text-align: left;
  background: linear-gradient(180deg, #FFFFFF 0%, #E9DDE1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 17px;
  color: #94A3B8;
  max-width: 460px;
  margin: 0 0 32px 0;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: left;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  top: 32px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral-accent);
  color: #FFFFFF;
  padding: 16px 32px;
  border-radius: 35px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  margin-right: auto;
}

.btn-secondary:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(190, 24, 93, 0.5);
}

/* ===================================================================
   5. LAYOUT & CONTENT CARDS (.grid & .card)
   =================================================================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
  position: relative;
  z-index: 20;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #D8C8CE;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: var(--primary-indigo);
  border-radius: 0 4px 4px 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #FCE7F3;
  color: var(--primary-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card .btn {
  align-self: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hero);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-indigo);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-free {
  background: #E0E7FF;
  color: #9F1239;
}

.tag-premium {
  background: #F5E1E7;
  color: #881337;
}

/* ===================================================================
   6. KEY FEATURES SECTION
   =================================================================== */
.key-features-section {
  padding: 60px 0;
  background-color: var(--bg-main);
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #D8C8CE;
  box-shadow: var(--shadow-md);
}

/* ===================================================================
   7. SECTION HEADINGS & STEPS (.steps-section)
   =================================================================== */
.section-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: var(--text-main);
  margin-top: 60px;
  margin-bottom: 6px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}

.steps-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  padding: 60px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  background: var(--bg-main);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.step:hover {
  border-color: #D8C8CE;
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--primary-indigo);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===================================================================
   8. SITE FOOTER
   =================================================================== */
.site-footer {
  background: var(--bg-hero);
  color: #94A3B8;
  padding-top: 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13.5px;
  max-width: 340px;
}

.footer-bottom {
  background: #120A0D;
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-legal a {
  margin-left: 20px;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--text-light);
}

.footer-disclaimer {
  font-size: 11.5px;
  color: #7C6970;
  text-align: center;
  line-height: 1.5;
}

/* ===================================================================
   9. RESPONSIVE BREAKPOINTS
   =================================================================== */
@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding: 40px 16px 60px;
  }

  .hero h1 { 
    font-size: 26px; 
    max-width: 240px;
  }

  .hero p {
    font-size: 14px;
    max-width: 240px;
  }

  .btn-secondary {
    font-size: 17px;
    padding: 12px 24px;
  }

  .hero-right-image {
    height: 75%;
    max-height: 320px;
    max-width: 55%;
  }

  .grid { 
    margin-top: 40px; 
  }

  .footer-inner, .footer-bottom-inner { 
    flex-direction: column; 
    gap: 16px; 
    text-align: center; 
  }
}