:root {
  --bg: #090909;
  --bg-soft: #111111;
  --surface: #151515;
  --surface-2: #1a1a1a;
  --text: #f3ead7;
  --muted: #c9b891;
  --line: #3b3120;
  --gold: #d4af37;
  --gold-2: #f0cf73;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(212,175,55,0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(240,207,115,0.12), transparent 55%),
    linear-gradient(180deg, #080808 0%, #0e0e0e 60%, #090909 100%);
}

h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; letter-spacing: .02em; margin: 0 0 .5rem; color: #fff6e2; }
p { margin: 0; line-height: 1.65; color: var(--muted); }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100vw - 24px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(8,8,8,.8);
  border-bottom: 1px solid rgba(212,175,55,.28);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .08em; color: #ffefc3; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #8a6b1f, #d4af37 55%, #f0cf73);
  box-shadow: 0 10px 24px rgba(212,175,55,.35);
}
.nav-links { display: flex; gap: 10px; }
.nav-links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; color: #e7d7b2;
}
.nav-links a.active, .nav-links a:hover {
  border-color: rgba(212,175,55,.45);
  background: rgba(212,175,55,.12);
  color: #fff4d7;
}

.hero {
  padding: 72px 0 36px;
  display: grid; gap: 24px;
  grid-template-columns: 1.2fr .8fr;
}
.hero-card, .side-card {
  background: linear-gradient(165deg, rgba(26,26,26,.95), rgba(16,16,16,.92));
  border: 1px solid rgba(212,175,55,.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.eyebrow { color: var(--gold-2); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.06; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.emoji-row span {
  font-size: .86rem;
  color: #f0dca8;
  border: 1px solid rgba(212,175,55,.28);
  background: rgba(212,175,55,.08);
  border-radius: 999px;
  padding: 6px 10px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; font-weight: 800; transition: .25s ease;
}
.btn-primary {
  color: #130f07;
  background: linear-gradient(120deg, #c39a2f, #f0cf73);
  box-shadow: 0 12px 26px rgba(212,175,55,.25);
}
.btn-secondary { background: #161616; border: 1px solid rgba(212,175,55,.45); color: #f4e6bf; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.03); }

.ticker {
  margin: 6px 0 34px;
  border-top: 1px solid rgba(212,175,55,.33);
  border-bottom: 1px solid rgba(212,175,55,.33);
  overflow: hidden;
  background: rgba(17,17,17,.72);
}
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 0;
  animation: scroll 22s linear infinite;
  font-weight: 700;
  color: #f1dfb3;
}
.ticker-track span { margin: 0 26px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 38px; }
.feature {
  padding: 22px;
  background: linear-gradient(155deg, #161616, #121212);
  border: 1px solid rgba(212,175,55,.27);
  border-radius: 14px;
}
.feature h3 { font-size: 1.3rem; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.mini-feature {
  background: linear-gradient(155deg, #171717, #121212);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 14px;
  padding: 20px;
}
.mini-feature h3 { font-size: 1.1rem; margin-bottom: 8px; }

.program-panel {
  background: linear-gradient(140deg, rgba(35, 28, 16, 0.65), rgba(16,16,16,.95));
  border: 1px solid rgba(212,175,55,.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 30px;
}
.program-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.program-head h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-bottom: 6px; }
.program-tag {
  font-weight: 800;
  color: #f7e4b4;
  border: 1px solid rgba(212,175,55,.46);
  background: rgba(212,175,55,.14);
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.program-card {
  background: linear-gradient(155deg, #181818, #121212);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 14px;
  padding: 18px;
}
.program-card h3 { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #f1d289; }
.program-card h4 { margin: 6px 0 8px; font-size: 1.8rem; color: #fff3cf; }

.section { padding: 30px 0 56px; }
.table-wrap {
  background: var(--surface);
  border: 1px solid rgba(212,175,55,.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; }
thead { background: #1f1a10; color: #ffeebf; }
tr + tr td { border-top: 1px solid #2e2618; }
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(212,175,55,.18);
  border: 1px solid rgba(212,175,55,.4);
  color: #ffe9b0;
  font-weight: 800;
  font-size: .8rem;
}

.social-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.social-card {
  background: linear-gradient(155deg, #171717, #111111);
  border: 1px solid rgba(212,175,55,.33);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.social-card p { margin: 12px 0 20px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

footer { color: #baa680; font-size: .92rem; }

.site-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(212,175,55,.24);
  border-bottom: 1px solid rgba(212,175,55,.2);
  background: radial-gradient(1200px 360px at 50% -10%, rgba(212,175,55,.08), transparent 65%), rgba(10,10,10,.8);
}
.footer-top {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 30px 0 18px;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap: 18px;
}
.footer-brand h3 { margin-bottom: 8px; font-size: 2rem; }
.footer-brand p { max-width: 320px; }
.footer-pill {
  margin-top: 12px;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(212,175,55,.08);
  color: #f2deab;
}
.footer-col h4 {
  color: #f1d289;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .86rem;
  margin-bottom: 10px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.footer-links a { color: #d8c49a; }
.footer-links a:hover { color: #ffedbd; }
.footer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.footer-stat {
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 12px;
  padding: 10px;
  background: rgba(19,19,19,.95);
}
.footer-stat strong { display: block; color: #fff2cc; font-size: 1.2rem; margin-bottom: 4px; }
.footer-bottom {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(212,175,55,.18);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.footer-bottom .right { text-align: right; color: #d5c093; }

.chat-wrap {
  background: linear-gradient(165deg, rgba(26,26,26,.95), rgba(16,16,16,.92));
  border: 1px solid rgba(212,175,55,.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.chat-log {
  height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px;
}
.chat-msg {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.45;
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(212,175,55,.2);
  border: 1px solid rgba(212,175,55,.5);
}
.chat-msg.bot {
  align-self: flex-start;
  background: #171717;
  border: 1px solid rgba(212,175,55,.24);
}
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}
.chat-form input {
  background: #101010;
  color: #f3ead7;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 12px;
  padding: 12px;
  outline: none;
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .nav-wrap {
    padding: 12px 0 10px;
    gap: 10px;
    align-items: stretch;
  }

  .brand {
    font-size: .95rem;
    letter-spacing: .06em;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    gap: 8px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: .92rem;
  }

  .hero {
    padding: 28px 0 24px;
    gap: 16px;
  }

  .hero-card,
  .side-card,
  .program-panel,
  .chat-wrap,
  .social-card,
  .mini-feature,
  .feature {
    padding: 18px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .btn-secondary,
  .btn-primary {
    min-height: 46px;
  }

  .ticker {
    margin: 6px 0 24px;
  }

  .ticker-track {
    padding: 10px 0;
    font-size: .88rem;
  }

  .ticker-track span {
    margin: 0 16px;
  }

  .section {
    padding: 20px 0 40px;
  }

  .table-wrap {
    border-radius: 14px;
  }

  table {
    min-width: 640px;
  }

  th, td {
    padding: 12px 14px;
  }

  .chat-log {
    height: 56vh;
  }

  .chat-msg {
    max-width: 92%;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(1.7rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.35rem, 6vw, 2rem); }

  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .program-head {
    gap: 10px;
  }

  .program-tag {
    width: 100%;
    text-align: center;
  }

  .footer-top,
  .footer-bottom {
    width: min(var(--max), calc(100vw - 24px));
  }

  .footer-brand h3 {
    font-size: 1.7rem;
  }

  .footer-stats {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 6px;
  }

  .footer-pill {
    font-size: .9rem;
  }

  .mini-feature h3,
  .program-card h4 {
    font-size: 1.35rem;
  }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3, .social-grid, .mini-grid, .program-grid { grid-template-columns: 1fr; }
  .program-head { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-stats { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; text-align: left; }
  .footer-bottom .right { text-align: left; }
}
