/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ── */
:root {
  --navy:     #1A3263;
  --blue:     #547792;
  --blue-l:   #8AAFC4;
  --gold:     #FFC570;
  --cream-t:  #EFD2B0;
  --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --font:     "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-d:   "Playfair Display", Georgia, serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
}

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 20px;
  text-align: center;
}

/* ── Suits row ── */
.suits-row {
  font-size: 18px;
  letter-spacing: 14px;
  opacity: 0.12;
  color: #fff;
}

/* ── Logo ── */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  font-size: 36px;
  color: #fff;
  opacity: 0.9;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-d);
  color: var(--gold);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
}

.version-tag {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ── Tagline ── */
.tagline {
  color: var(--cream-t);
  font-size: 13px;
  max-width: 320px;
  line-height: 1.7;
}

/* ── CTA Buttons ── */
.cta-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  will-change: transform;
}

.btn:hover  { transform: scale(1.03); }
.btn:active { transform: scale(0.97); transition-duration: 0.08s; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(255,197,112,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(255,197,112,0.45); }

.btn-outline {
  background: transparent;
  color: var(--cream-t);
  border: 1.5px solid rgba(239,210,176,0.4);
}
.btn-outline:hover { border-color: rgba(239,210,176,0.7); }

/* ── Divider ── */
.divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ── Metric pills ── */
.metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream-t);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: pillIn 0.2s ease-out forwards;
}

.pill-live {
  background: rgba(255,197,112,0.1);
  border-color: rgba(255,197,112,0.25);
  color: var(--gold);
  font-weight: 600;
}

/* Stagger delays */
.pill:nth-child(1) { animation-delay: 0ms; }
.pill:nth-child(2) { animation-delay: 30ms; }
.pill:nth-child(3) { animation-delay: 60ms; }
.pill:nth-child(4) { animation-delay: 90ms; }

@keyframes pillIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  background: #FFFAF2;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: modalIn 0.28s var(--spring) both;
}

@keyframes modalIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--blue-l);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}
.modal-close:hover { color: #fff; }

.modal-tabs {
  display: flex;
  background: #EFD2B0;
  padding: 4px;
}

.tab {
  flex: 1;
  padding: 8px 4px;
  background: transparent;
  border: none;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab.active {
  background: #FFFAF2;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(26,50,99,0.1);
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel h3 {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.tab-panel h3:not(:first-child) { margin-top: 16px; }
.tab-panel p { font-size: 13px; color: var(--blue); line-height: 1.6; margin-bottom: 10px; }

.rule-step {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #F5E8CE;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.5;
}
.rule-step strong { font-weight: 700; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 12px; }
th { padding: 6px 10px; text-align: left; color: var(--blue); font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; border-bottom: 1px solid rgba(26,50,99,0.1); }
td { padding: 7px 10px; color: var(--navy); border-bottom: 1px solid rgba(26,50,99,0.05); }
code { background: #EFD2B0; padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue-l); border-radius: 3px; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .hero { gap: 14px; padding: 36px 16px; }
  .logo-icon { font-size: 26px; }
  .logo-text { font-size: 26px; letter-spacing: 4px; }
  .tagline { font-size: 12px; }
  .btn { padding: 10px 20px; font-size: 13px; }
  .pill-mobile-hide { display: none; }
  .metrics { gap: 6px; }
  .pill { font-size: 11px; padding: 4px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pill { animation: none; opacity: 1; transform: none; }
  .btn:hover, .btn:active { transform: none; }
  .modal { animation: none; }
}
