/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1e5fd8;
  --blue-dark: #1548a8;
  --blue-light: #3b82f6;
  --bg: #0a1428;
  --bg-2: #0d1a33;
  --bg-3: #111f3d;
  --ink: #e8eefc;
  --muted: #8b9bbd;
  --border: rgba(120, 160, 240, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(30, 95, 216, 0.7);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(120,160,240,0.4); background: rgba(120,160,240,0.05); }

/* ============ SPLASH ============ */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.hide { opacity: 0; visibility: hidden; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.splash-logo {
  width: 80px; height: 80px;
  border-radius: 18px;
  animation: pulse 1.6s ease-in-out infinite;
}
.splash-name {
  font-size: 26px; font-weight: 700; letter-spacing: 0.12em;
  color: #fff;
  animation: fadeUp 0.9s ease both;
}
.splash-bar {
  width: 160px; height: 3px; border-radius: 3px;
  background: rgba(120,160,240,0.15); overflow: hidden; margin-top: 6px;
}
.splash-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--blue-light); border-radius: 3px;
  animation: load 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.08);opacity:.85} }
@keyframes load { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ============ NAV ============ */
.nav-wrap {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 20px;
}
.nav {
  width: 100%; max-width: 900px;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: rgba(13, 26, 51, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(13, 26, 51, 0.9);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.6);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav-links {
  display: flex; gap: 26px; list-style: none; margin-left: auto;
}
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 180px 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(30,95,216,0.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(30,95,216,0.08), transparent 50%),
    linear-gradient(180deg, #0a1428 0%, #0d1a33 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,160,240,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,240,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 40px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-copy p {
  color: var(--muted); font-size: 17px;
  max-width: 520px; margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 340px;
}
.hero-halo {
  position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,95,216,0.35), transparent 65%);
  filter: blur(30px);
}
.hero-logo {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 32px;
  box-shadow: 0 30px 80px -20px rgba(30,95,216,0.8);
}

/* ============ TRUSTED (text-based) ============ */
.trusted {
  position: relative; z-index: 1;
  margin-top: 100px; padding: 40px 24px 60px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.trusted-label {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}
.trusted-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 56px; flex-wrap: wrap;
}
.t-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 600;
  color: #7f8ea8;
  letter-spacing: -0.01em;
  opacity: 0.75;
  transition: opacity 0.25s, color 0.25s;
  cursor: default;
}
.t-logo:hover { opacity: 1; color: #c7d2e8; }
.t-mark {
  font-size: 14px;
  color: #7f8ea8;
  display: inline-block;
  transform: rotate(0deg);
}
.t-logo:hover .t-mark { color: var(--blue-light); }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--muted);
  max-width: 560px; margin: 0 auto 60px; font-size: 16px;
}

/* ============ FEATURES ============ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17,31,61,0.9), rgba(13,26,51,0.6));
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(120,160,240,0.35); }
.feature-icon {
  font-size: 26px; color: var(--blue-light);
  margin-bottom: 16px; line-height: 1;
}
.feature h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ============ STEPS ============ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(17,31,61,0.4);
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--blue-light);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============ JOIN CARD ============ */
.join-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30,95,216,0.18), rgba(30,95,216,0.05));
  border: 1px solid rgba(59,130,246,0.3);
}
.join-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.join-card p { color: var(--muted); max-width: 520px; }

/* ============ CTA ============ */
.cta {
  padding: 110px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(30,95,216,0.25), transparent 60%),
    linear-gradient(180deg, transparent, rgba(13,26,51,0.6));
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px;
}
.cta-inner p { color: var(--muted); margin-bottom: 28px; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(10,20,40,0.8);
  padding: 60px 0 20px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 2fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-brand .brand-logo { width: 32px; height: 32px; border-radius: 8px; display: inline-block; vertical-align: middle; }
.footer-brand .brand-name { margin-left: 10px; font-weight: 700; font-size: 18px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 300px; font-size: 15px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.footer-cols h4 {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.footer-cols a {
  display: block; color: var(--ink); font-size: 15px;
  padding: 5px 0; opacity: 0.8; transition: opacity 0.2s;
}
.footer-cols a:hover { opacity: 1; color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px; padding-bottom: 22px;
  font-size: 14px; color: var(--muted);
  text-align: center;
}

/* ============ DOCS / LEGAL PAGES ============ */
.page-hero {
  padding: 160px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px;
}
.page-hero p { color: var(--muted); font-size: 16px; }
.page-body {
  max-width: 800px; margin: 0 auto; padding: 60px 24px 100px;
}
.page-body h2 {
  font-size: 22px; font-weight: 700; margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.page-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.page-body p, .page-body li { color: #c7d2e8; font-size: 15.5px; margin-bottom: 12px; }
.page-body ul { padding-left: 22px; margin-bottom: 16px; }
.page-body strong { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; min-height: 240px; }
  .hero-logo { width: 140px; height: 140px; }
  .features, .steps { grid-template-columns: 1fr; }
  .trusted-logos { gap: 30px; }
  .t-logo { font-size: 17px; }
  .footer-inner { grid-template-columns: 1fr; }
  .join-card { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .nav { padding: 8px 10px 8px 14px; gap: 12px; }
  .brand-name { display: none; }
  .t-logo { font-size: 15px; }
}