:root {
  /* Logo-inspired, harmonious palette */
  --bg: #0a0b10;
  --fg: #f7f9ff;
  --muted: #bfc7d9;

  --card: #11131a;
  --stroke: #22263a;

  /* From your images (tuned for harmony) */
  --accent-orange: #fd810f; /* B */
  --eth-blue: #627eea; /* E (Ethereum) */
  --solana-green: #00ffa3; /* S (Solana) */
  --solana-magenta: #dc1fff;

  /* Site primaries (deep & royal blues from logo sides) */
  --brand-royal: #2b4fa3;
  --brand-deep: #1f5ab6;
  --brand-soft: #88a6d1;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* Layout */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: linear-gradient(
    180deg,
    rgba(10, 11, 16, 0.75),
    rgba(10, 11, 16, 0.35),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 20;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  font-weight: 800;
}
.logo.small .logo-mark {
  width: 28px;
  height: 28px;
  font-size: 14px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-royal), var(--brand-deep));
  color: #0b0b10;
  font-weight: 900;
}
.logo-text {
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover {
  color: var(--fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.08s ease, background 0.2s ease, border 0.2s ease;
  box-shadow: var(--shadow);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}
.btn-lg {
  padding: 14px 22px;
  font-size: 16px;
}
.primary {
  /* keep orange out of primary button to avoid clash — use logo blues */
  background: linear-gradient(
    90deg,
    var(--brand-royal),
    var(--brand-deep) 50%,
    var(--brand-soft)
  );
  border: none;
  color: white;
  font-weight: 800;
}
.ghost {
  background: transparent;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: 0.2s;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 72px 0 32px;
}

/* Colored BES letters */
.gradient-title {
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.9;
  margin: 0;
}
.bes-letter {
  display: inline-block;
  font-weight: 900;
}
.bes-b {
  background: linear-gradient(135deg, #fff, var(--accent-orange) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bes-e {
  background: linear-gradient(135deg, #fff, var(--eth-blue) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bes-s {
  background: linear-gradient(
    135deg,
    var(--solana-green),
    var(--solana-magenta)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  opacity: 0.85;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.lede {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}

.coming-soon {
  margin-top: 8px;
}
.countdown {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

/* Hero art (same structure as before) */
.hero-art {
  position: relative;
  min-height: 360px;
}
.orb {
  position: absolute;
  filter: blur(28px);
  border-radius: 50%;
  opacity: 0.55;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--brand-royal),
    transparent 60%
  );
  top: 10%;
  right: 10%;
}
.orb-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--brand-soft),
    transparent 60%
  );
  bottom: 12%;
  left: 5%;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.chip {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 290px;
  height: 290px;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.chip-core {
  font-weight: 900;
  font-size: 42px;
  background: linear-gradient(
    135deg,
    var(--brand-soft),
    var(--brand-royal) 60%,
    var(--brand-deep)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chip-ring {
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  animation: spin 12s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sections */
.section {
  padding: 64px 0;
}
.section-title {
  font-size: 34px;
  margin: 0 0 18px;
}
.grad {
  background: linear-gradient(
    90deg,
    var(--brand-soft),
    var(--brand-royal),
    var(--brand-deep)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--fg);
}
.card p {
  color: var(--muted);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tech-item {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
}
.tech-item p {
  color: var(--muted);
}

/* Roadmap → Coming soon line */
.roadmap-coming {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
}
.soon-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--solana-green),
    var(--solana-magenta)
  );
  box-shadow: 0 0 18px rgba(220, 31, 255, 0.35),
    0 0 10px rgba(0, 255, 163, 0.25);
}
.soon-text {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Subscribe */
.subscribe {
  margin-top: 18px;
}
.subscribe-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.subscribe-row.cute {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  align-items: center;
}
.mail-icon {
  margin-left: 10px;
  font-size: 18px;
  opacity: 0.85;
}
.subscribe input {
  flex: 1 1 280px;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  outline: none;
  font-size: 15px;
}
.subscribe input::placeholder {
  color: #9aa4bc;
}
.subscribe input:focus {
  box-shadow: 0 0 0 3px rgba(98, 126, 234, 0.25),
    0 0 25px rgba(98, 126, 234, 0.25);
}
.hint {
  color: var(--muted);
  margin-top: 8px;
}

/* Footer */
.site-footer {
  padding: 36px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.foot-note {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
