/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d1b3e;
  --navy-dark:  #070e20;
  --navy-mid:   #132250;
  --navy-light: #1e3370;
  --gold:       #c8a84b;
  --gold-light: #e2c97e;
  --gold-dim:   #9a7d35;
  --white:      #ffffff;
  --off-white:  #f5f4f0;
  --gray-100:   #eaeaea;
  --gray-400:   #888888;
  --text:       #1a1a2e;
  --text-muted: #666680;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius:     12px;
  --radius-sm:  8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(7, 14, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 168, 75, 0.18);
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.nav-logo img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  filter: brightness(1.1);
}

.nav-logo strong { color: var(--gold); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(200,168,75,0.1);
}

.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 500 !important;
  padding: 7px 18px !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(200,168,75,0.5);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold);
  border: 1.5px solid rgba(200,168,75,0.4);
  transition: all var(--transition);
}
.btn-outline-sm:hover { border-color: var(--gold); background: rgba(200,168,75,0.06); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,27,62,0.8) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,168,75,0.08) 0%, transparent 70%);
  bottom: -80px; left: -80px;
}

.hero-content {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(200,168,75,0.2);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 0.5s both;
}

.logo-ring {
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,75,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rotate 20s linear infinite;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,75,0.08);
}

.hero-logo-img {
  width: 240px; height: 240px;
  object-fit: contain;
  animation: rotate-reverse 20s linear infinite;
  filter: drop-shadow(0 0 40px rgba(200,168,75,0.2));
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.section-header h2,
.section-header-row h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* ===== FEATURES ===== */
.features {
  padding: 96px 0;
  background: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,168,75,0.4);
  box-shadow: 0 12px 40px rgba(13,27,62,0.1);
}

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(200,168,75,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.card-link { font-size: 0.85rem; color: var(--gold); font-weight: 500; margin-top: auto; }

/* ===== LEVELS ===== */
.levels {
  padding: 96px 0;
  background: var(--navy-dark);
}

.levels .section-header h2 { color: var(--white); }

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.level-card {
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
}

.level-card:hover,
.level-card.active {
  border-color: var(--gold);
  background: rgba(200,168,75,0.06);
}

.level-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(200,168,75,0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.level-card.active .level-num { color: var(--gold); }

.level-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.level-card p { font-size: 0.87rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ===== RECENT NOTES ===== */
.recent-notes {
  padding: 96px 0;
  background: var(--white);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-card:hover {
  border-color: rgba(200,168,75,0.3);
  box-shadow: 0 8px 30px rgba(13,27,62,0.07);
}

.note-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}
.note-tag.tyt { background: rgba(200,168,75,0.12); color: var(--gold-dim); }
.note-tag.ayt { background: rgba(13,27,62,0.08); color: var(--navy-light); }
.note-tag.lise { background: rgba(30,51,112,0.08); color: var(--navy-mid); }

.note-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.note-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dl-btn {
  padding: 5px 14px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background var(--transition);
}
.dl-btn:hover { background: var(--gold-light); }

/* ===== TEACHERS ===== */
.teachers {
  padding: 96px 0;
  background: var(--off-white);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.teacher-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all var(--transition);
}

.teacher-card:hover {
  border-color: rgba(200,168,75,0.3);
  box-shadow: 0 8px 30px rgba(13,27,62,0.08);
}

.avatar-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(200,168,75,0.3);
}

.teacher-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.teacher-branch {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.teacher-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.teachers-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 96px 24px;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cta-inner { position: relative; z-index: 1; }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 36px;
}

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
  border-top: 1px solid rgba(200,168,75,0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { width: 44px; height: 44px; object-fit: contain; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 240px; }

.footer-links h4 {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-social h4 {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200,168,75,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.social-icon svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(200,168,75,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .notes-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .hero-actions { flex-direction: column; }
}
