:root {
  --color-bg-dark: #070A1A;
  --color-surface: rgba(255, 255, 255, 0.08);
  --color-primary: #5A4FF3;
  --color-secondary: #2D8BFF;
  --color-text: #E7ECFF;
  --color-muted: #AAB4FF;
  --radius: 18px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
  --gradient: linear-gradient(135deg, #5A4FF3, #2D8BFF);
  --animate-duration: 700ms;
  --animate-delay: 0.2s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px at 20% 20%, rgba(45, 139, 255, 0.18), transparent 45%),
    radial-gradient(900px at 80% 5%, rgba(90, 79, 243, 0.18), transparent 45%),
    linear-gradient(180deg, #0D1128 0%, #070A1A 60%, #050714 100%);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  margin: 0 0 12px;
  color: rgba(231, 236, 255, 0.94);
}

h1, h2, h3, h4 {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  color: #fff;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.2rem, 2.8vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.page-shell,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 10, 26, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.site-header.scrolled {
  background: rgba(7, 10, 26, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.brand-mark {
  background: var(--gradient);
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(45, 139, 255, 0.35);
}

.brand-secondary {
  font-weight: 600;
  color: #E7ECFF;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #d7ddff;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 30px rgba(90, 79, 243, 0.35);
  border-radius: 14px;
  padding: 10px 18px;
}

.nav-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

main {
  display: block;
}

.section {
  margin-bottom: 56px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-header {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(90, 79, 243, 0.95), rgba(45, 139, 255, 0.92));
  padding: 48px 44px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  box-shadow: var(--shadow-soft);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px at 20% 10%, rgba(255, 255, 255, 0.2), transparent 50%),
              radial-gradient(500px at 80% 80%, rgba(255, 255, 255, 0.14), transparent 52%);
  opacity: 0.35;
  pointer-events: none;
}

.hero::after {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 35%);
}

.hero-main {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.meta {
  color: rgba(231, 236, 255, 0.86);
  margin-top: 4px;
  margin-bottom: 8px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: var(--gradient);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 30px rgba(90, 79, 243, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(45, 139, 255, 0.35);
}

.btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #E7ECFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary {
  background: var(--gradient);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 18px;
}

.hero-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f5ff;
}

.hero-list li::before {
  content: "•";
  color: #fff;
  opacity: 0.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.28);
}

.card strong {
  color: #fff;
}

.label {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-bottom: 6px;
  display: block;
}

.input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: 'Manrope', 'Space Grotesk', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(45, 139, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

textarea {
  min-height: 120px;
}

select option {
  background: #0D1128;
  color: #fff;
}

.select-dark {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(13, 17, 40, 0.9);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), radial-gradient(circle at 95% 50%, rgba(90,79,243,0.9), rgba(45,139,255,0.9));
  background-position: left center, right 12px center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 10px 10px;
  color: #E7ECFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.select-dark:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(45, 139, 255, 0.25);
}

select::-ms-expand {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(90, 79, 243, 0.16);
  color: #fff;
  font-weight: 600;
}

.small {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.table-like {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.table-like th {
  padding: 12px 10px;
  background: rgba(45, 139, 255, 0.16);
  color: #f1f4ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.table-like td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.stat .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-error {
  background: rgba(253, 232, 232, 0.08);
  color: #ffb2b2;
  border-color: rgba(255, 132, 132, 0.32);
}

.footer {
  background: linear-gradient(135deg, #0D1128, #1B1F3A);
  padding: 26px 16px 34px;
  color: #d7ddff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 0 8px;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-chip {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
}

.flex {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
}

.reveal.is-visible {
  opacity: 1;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(13, 17, 40, 0.95);
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .page-shell,
  .container {
    padding: 96px 20px 80px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 38px 30px;
  }

  .section {
    padding: 26px;
  }
}
