:root {
  --grad-from: #667eea;
  --grad-to:   #764ba2;
  --dark:      #1a1a2e;
  --dark-deep: #0f0f1a;
  --dark-purple: #2d1b69;
  --bg:        #ffffff;
  --bg-soft:   #fafafa;
  --border:    #ede9ff;
  --text:      #1a1a2e;
  --muted:     #888888;
  --radius-card: 20px;
  --radius-btn:  24px;
  --pad: 80px 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.gradient-text {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* NAV */
#nav { position: sticky; top: 0; z-index: 100; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(255,255,255,0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 18px; font-weight: 800; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-link { transition: color 0.2s; }
.nav-link:hover, .nav-link--active { color: var(--grad-from); }
.nav-cta {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: white; padding: 10px 24px; border-radius: var(--radius-btn);
  font-size: 14px; font-weight: 600;
}

/* HERO */
.hero {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: var(--pad);
  background: linear-gradient(135deg, var(--grad-from) 0%, var(--grad-to) 60%, var(--dark) 100%);
  color: white;
}
.hero-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.hero h1 { font-size: 64px; font-weight: 900; line-height: 1.05; margin-bottom: 20px; max-width: 800px; }
.hero h1 span {
  background: linear-gradient(90deg, #a5b4fc, #f9a8d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 40px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--grad-from); padding: 16px 36px; border-radius: 32px; font-size: 16px; font-weight: 700; display: inline-block; }
.btn-outline { border: 2px solid rgba(255,255,255,0.4); color: white; padding: 14px 34px; border-radius: 32px; font-size: 16px; display: inline-block; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; }
.stat-num { font-size: 40px; font-weight: 900; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* SECTIONS */
.section { padding: var(--pad); }
.section--soft { background: var(--bg-soft); }
.section-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--grad-from); margin-bottom: 12px; font-weight: 600; }
.section h2 { font-size: 44px; font-weight: 800; line-height: 1.1; margin-bottom: 40px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photo { width: 100%; aspect-ratio: 4/3; border-radius: 24px; object-fit: cover; }
.about-photo-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: 24px;
  border: 2px dashed var(--border); background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 48px; color: var(--muted); gap: 8px;
}
.benefits { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.benefit h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.benefit p { font-size: 14px; color: var(--muted); }

/* TUTOR CARDS */
.tutors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tutor-card { background: white; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 4px 24px rgba(102,126,234,0.1); border: 1px solid var(--border); }
.tutor-photo { height: 200px; background: linear-gradient(135deg, rgba(102,126,234,0.13), rgba(118,75,162,0.13)); display: flex; align-items: center; justify-content: center; font-size: 64px; overflow: hidden; }
.tutor-photo img { width: 100%; height: 100%; object-fit: cover; }
.tutor-info { padding: 20px; }
.tutor-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.tutor-exp { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.tutor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { background: #f0edff; color: var(--grad-from); font-size: 11px; padding: 4px 10px; border-radius: 10px; font-weight: 500; }
.tutor-btn {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: white; border: none; padding: 10px; border-radius: 12px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.tutor-btn--outline { background: transparent; border: 1.5px solid var(--border); color: var(--grad-from); }

/* PROMO */
.promo-card {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  border-radius: 24px; padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  color: white; margin-bottom: 20px;
}
.promo-badge { font-size: 48px; font-weight: 900; opacity: 0.2; margin-right: 24px; flex-shrink: 0; }
.promo-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.promo-desc { font-size: 15px; opacity: 0.8; }
.promo-cta {
  background: white; color: var(--grad-from);
  padding: 14px 32px; border-radius: var(--radius-btn);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  margin-left: 40px; flex-shrink: 0; border: none; cursor: pointer;
}

/* EVENTS */
.event-card {
  background: white; border-radius: var(--radius-card);
  padding: 28px 32px; display: flex; gap: 28px; align-items: center;
  border: 1px solid var(--border); margin-bottom: 16px;
}
.event-date {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: white; border-radius: 16px; padding: 12px 18px;
  text-align: center; min-width: 64px; flex-shrink: 0;
}
.event-day { font-size: 28px; font-weight: 900; line-height: 1; }
.event-month { font-size: 11px; opacity: 0.85; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.event-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.event-meta { font-size: 14px; color: var(--muted); }
.event-btn {
  margin-left: auto; flex-shrink: 0;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: white; padding: 10px 24px; border-radius: 16px;
  font-size: 13px; font-weight: 600; white-space: nowrap; border: none; cursor: pointer;
}

/* FORM */
.form-section { padding: var(--pad); display: flex; justify-content: center; }
.form-wrap { max-width: 520px; width: 100%; }
.form-wrap h2 { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.form-subtitle { font-size: 16px; color: var(--muted); margin-bottom: 36px; }
.form-input {
  width: 100%; background: var(--bg-soft); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 16px 20px; font-size: 15px;
  margin-bottom: 12px; outline: none; font-family: inherit;
}
.form-input:focus { border-color: var(--grad-from); }
.form-submit {
  width: 100%; background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: white; border: none; padding: 18px; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 4px; font-family: inherit;
}
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-success { display: none; text-align: center; padding: 24px; background: #ecfdf5; border-radius: 14px; color: #065f46; font-size: 16px; margin-top: 16px; }
.form-error { display: none; text-align: center; padding: 16px; background: #fef2f2; border-radius: 14px; color: #991b1b; font-size: 14px; margin-top: 8px; }

/* JOIN */
.join-section { background: linear-gradient(135deg, var(--dark), var(--dark-purple)); padding: var(--pad); text-align: center; color: white; }
.join-section h2 { font-size: 48px; font-weight: 900; margin-bottom: 16px; }
.join-section p { font-size: 18px; color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 40px; }
.join-btn { display: inline-block; border: 2px solid rgba(255,255,255,0.3); color: white; padding: 16px 40px; border-radius: 32px; font-size: 16px; font-weight: 600; }

/* FOOTER */
#footer .footer-inner {
  background: var(--dark-deep); color: var(--muted);
  padding: 24px 48px; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px;
}
#footer a { color: var(--grad-from); }

/* FOCUS */
.btn-white:focus-visible,
.btn-outline:focus-visible,
.nav-cta:focus-visible,
.tutor-btn:focus-visible,
.promo-cta:focus-visible,
.event-btn:focus-visible,
.join-btn:focus-visible { outline: 3px solid var(--grad-from); outline-offset: 2px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --pad: 48px 24px; }
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .tutors-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { padding: 14px 24px; }
  .nav-links { display: none; }
  .promo-card { flex-direction: column; gap: 20px; }
  .promo-cta { margin-left: 0; width: 100%; }
  .section h2 { font-size: 32px; }
}
@media (max-width: 480px) {
  .tutors-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .event-card { flex-wrap: wrap; }
  .event-btn { margin-left: 0; margin-top: 12px; }
}
