:root {
  --bg: #0a0a0a;
  --bg-alt: #131313;
  --panel: #161616;
  --border: rgba(212,175,106,0.18);
  --gold: #d4af6a;
  --gold-bright: #e8c98a;
  --gold-dim: #9c7f45;
  --text: #f2efe9;
  --text-dim: #b8b3a8;
  --text-faint: #837e73;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

img { max-width: 100%; display: block; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Nav ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 42px; width: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-text .sub {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 2px;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  color: #16130a;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-ghost {
  border-color: transparent;
  color: var(--text-dim);
  background: transparent;
  padding: 13px 20px;
}
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 9px 18px; font-size: 12px; }

.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 24px 130px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(212,175,106,0.10), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,106,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,106,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 168px;
  margin: 0 auto 36px;
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  max-width: 880px;
  margin: 0 auto 22px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 42px;
  color: var(--text-dim);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
}

.badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
}

.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ---------- Section shared ---------- */
section { padding: 110px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 14px 0 18px;
  color: var(--text);
}

.section-head p {
  color: var(--text-dim);
  font-size: 16px;
}

hr.rule {
  border: none;
  height: 1px;
  width: 60px;
  background: var(--border);
  margin: 0 auto;
}

/* ---------- About ---------- */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-copy h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 14px 0 20px;
}

.about-copy p { color: var(--text-dim); margin-bottom: 16px; font-size: 16px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
}

.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.stat .label {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.about-visual {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  background: radial-gradient(ellipse at center, rgba(212,175,106,0.08), transparent 70%), var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual img { width: 100%; max-width: 340px; }

/* ---------- Programs ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) { .programs-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .programs-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 26px;
  background: linear-gradient(180deg, var(--panel), #121212);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
}

.card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 18px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ---------- Why / Map ---------- */
.why {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 780px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

.why-item {
  display: flex;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
}

.why-item .icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(212,175,106,0.1);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.why-item h3 { font-size: 16px; margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--text-dim); }

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 900px) { .steps-list { grid-template-columns: repeat(4, 1fr); } }

.step {
  counter-increment: step;
  position: relative;
  padding: 30px 24px;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .step { border-top: none; border-left: 1px solid var(--border); }
  .step:first-child { border-left: none; }
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(212,175,106,0.12), transparent 70%),
    linear-gradient(180deg, #101010, #0a0a0a);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 700px;
  margin: 16px auto 20px;
}

.cta-banner p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-info h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 14px 0 18px; }
.contact-info p { color: var(--text-dim); margin-bottom: 30px; font-size: 15.5px; }

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.contact-line:last-child { border-bottom: 1px solid var(--border); }

.contact-line .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 15px;
}

.contact-line .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 3px; }
.contact-line .value { font-size: 15.5px; color: var(--text); }
.contact-line a.value:hover { color: var(--gold-bright); }

form.contact-form {
  display: grid;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

input, textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--gold-bright);
  font-size: 14.5px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 34px;
  background: var(--bg);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

@media (min-width: 720px) {
  .footer-grid { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 34px; }
.footer-brand .name { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--text); }
.footer-brand .loc { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--gold-bright); }

.footer-legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-legal a { font-size: 12px; color: var(--text-faint); }
.footer-legal a:hover { color: var(--gold-bright); }
.footer-legal button.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: var(--text-faint);
  padding: 0;
}
.footer-legal button.link-btn:hover { color: var(--gold-bright); }

.footer-copy {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

::selection { background: var(--gold); color: #0a0a0a; }

/* ---------- Legal / prose pages ---------- */
.legal-hero {
  padding: 160px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
}
.legal-hero .eyebrow { display: block; margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(30px, 4.4vw, 46px); }
.legal-hero .updated { color: var(--text-faint); font-size: 13px; margin-top: 14px; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}
.prose h2 {
  font-size: 22px;
  margin: 44px 0 14px;
  color: var(--gold-bright);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-dim); margin-bottom: 16px; font-size: 15.5px; }
.prose ul, .prose ol { color: var(--text-dim); margin: 0 0 16px 22px; font-size: 15.5px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-bright); }
.prose strong { color: var(--text); }

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  max-width: 640px;
  margin: 0 auto;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
}
#cookie-banner.visible { display: block; }
#cookie-banner p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
#cookie-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-actions .btn { padding: 11px 20px; font-size: 12px; }

#cookie-settings-link {
  cursor: pointer;
}

/* ---------- Dashboard ---------- */
.dash-main { padding: 150px 24px 100px; }
.dash-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:36px; }
.dash-title { font-size: clamp(24px,3vw,32px); }
.dash-sub { color: var(--text-faint); font-size: 13px; margin-top: 6px; }
.dash-actions { display:flex; gap:10px; }

.stat-tiles { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-bottom:36px; }
@media (min-width:900px){ .stat-tiles{ grid-template-columns:repeat(5,1fr);} }
.stat-tile { border:1px solid var(--border); border-radius:6px; padding:20px; background:var(--panel); }
.stat-tile .label{ font-size:10.5px; text-transform:uppercase; letter-spacing:.1em; color:var(--text-faint); margin-bottom:8px; }
.stat-tile .value{ font-family:'Playfair Display',serif; font-size:26px; color:var(--gold-bright); }

.chart-card { border:1px solid var(--border); border-radius:8px; padding:28px; background:var(--panel); margin-bottom:28px; }
.chart-card h3 { font-size:15px; color:var(--text); margin-bottom:4px; }
.chart-card .sub { font-size:12.5px; color:var(--text-faint); margin-bottom:22px; }

.chart-row { display:grid; grid-template-columns:1fr; gap:28px; }
@media (min-width:900px){ .chart-row{ grid-template-columns:1fr 1fr; } }

.daybar-wrap { display:flex; align-items:flex-end; gap:3px; height:140px; }
.daybar { flex:1; background:linear-gradient(180deg,var(--gold-bright),var(--gold-dim)); border-radius:3px 3px 0 0; min-height:2px; cursor:pointer; transition:filter .15s ease; }
.daybar:hover { filter:brightness(1.25); }
.daybar-axis { display:flex; justify-content:space-between; font-size:10px; color:var(--text-faint); margin-top:8px; }

.rankbar-row { display:grid; grid-template-columns:112px 1fr 44px; align-items:center; gap:10px; margin-bottom:10px; font-size:13px; }
.rankbar-label { color:var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rankbar-track { height:16px; background:rgba(255,255,255,0.04); border-radius:3px; overflow:hidden; }
.rankbar-fill { height:100%; border-radius:3px; background:linear-gradient(90deg,var(--gold-dim),var(--gold-bright)); }
.rankbar-value { text-align:right; color:var(--text-faint); font-size:12px; }

.nvr-legend { display:flex; gap:20px; margin-bottom:16px; font-size:12.5px; color:var(--text-dim); }
.nvr-legend .swatch { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:6px; }
.nvr-bar { display:flex; height:28px; border-radius:4px; overflow:hidden; background:rgba(255,255,255,0.04); }
.nvr-new { background:#3987e5; }
.nvr-returning { background:#d95926; }
.nvr-caption { display:flex; justify-content:space-between; font-size:12px; color:var(--text-faint); margin-top:8px; }

.tooltip { position:fixed; background:#0d0d0d; border:1px solid var(--border); border-radius:4px; padding:8px 12px; font-size:12px; color:var(--text); pointer-events:none; z-index:200; display:none; white-space:nowrap; }

table.dash-table { width:100%; border-collapse:collapse; font-size:13px; }
table.dash-table th { text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint); padding:10px 12px; border-bottom:1px solid var(--border); white-space:nowrap; }
table.dash-table td { padding:12px; border-bottom:1px solid rgba(255,255,255,0.04); color:var(--text-dim); vertical-align:top; white-space:nowrap; }
table.dash-table tr:hover td { background:rgba(255,255,255,0.02); }
.table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:8px; }
.pill { display:inline-block; padding:3px 9px; border-radius:999px; font-size:11px; background:rgba(212,175,106,0.1); color:var(--gold-bright); }

.login-card { max-width:380px; margin:180px auto; border:1px solid var(--border); border-radius:8px; padding:36px; background:var(--panel); text-align:center; }
.login-card h2 { font-size:20px; margin-bottom:10px; }
.login-card p { font-size:13.5px; color:var(--text-dim); margin-bottom:20px; }
.login-card input { margin-bottom:16px; }
.login-error { color:#e88; font-size:12.5px; margin-top:10px; display:none; }

.empty-note { text-align:center; color:var(--text-faint); font-size:13px; padding:30px; }
.dash-hidden { display:none; }
