:root {
  --bg: #0a0a12;
  --bg-soft: #12121f;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0f7;
  --muted: #9aa0b4;
  --gold: #f5c542;
  --green: #2ee6a6;
  --purple: #8b5cf6;
  --on-accent: #1a1305;
  --radius: 18px;
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(50% 45% at 15% 15%, rgba(46, 230, 166, 0.14), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(245, 197, 66, 0.1), transparent 70%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #ffb020);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(245, 197, 66, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(245, 197, 66, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }

/* Header */
.site-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), #ffb020);
  color: var(--on-accent);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(245, 197, 66, 0.3);
}
.brand-text {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-accent { color: var(--gold); }

.header-actions { display: flex; gap: 12px; }

/* Hero — grows to fill remaining vertical space */
.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px clamp(20px, 5vw, 64px);
  text-align: center;
  min-height: 0;
}
.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  padding: 6px 15px;
  border: 1px solid rgba(46, 230, 166, 0.3);
  border-radius: 999px;
  background: rgba(46, 230, 166, 0.06);
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.grad {
  background: linear-gradient(120deg, var(--gold), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 64px);
  list-style: none;
}
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats strong {
  font-family: "Sora", sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--text);
}
.stats span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Features */
.features {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px clamp(20px, 5vw, 64px) 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 66, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 20px;
  margin-bottom: 14px;
}
.card h3 {
  font-family: "Sora", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card p { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Footer */
.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  padding: 16px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-sm .brand-mark { width: 30px; height: 30px; font-size: 17px; }
.brand-sm .brand-text { font-size: 16px; }

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}
.link-btn:hover { color: var(--gold); }
.copyright { font-size: 12px; color: rgba(154, 160, 180, 0.7); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(6px);
  animation: fade 0.2s ease;
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  animation: pop 0.22s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.1); }
.modal-dialog h2 {
  font-family: "Sora", sans-serif;
  font-size: 24px;
  margin-bottom: 22px;
  padding-right: 30px;
}
.modal-body h4 {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  margin: 18px 0 6px;
  color: var(--gold);
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { color: var(--muted); font-size: 15px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Fall back to normal scrolling when the viewport is too small/short
   to fit everything on a single screen. */
@media (max-width: 720px), (max-height: 640px) {
  body { height: auto; min-height: 100%; overflow: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-footer { justify-content: center; text-align: center; }
}
@media (max-width: 440px) {
  .header-actions .btn-ghost { display: none; }
  .features { grid-template-columns: 1fr; }
  .modal-dialog { padding: 28px 22px; }
}
