:root {
  --bg: #050816;
  --bg-alt: #070d1b;
  --bg-soft: #0c1324;
  --primary: #2b8fff;
  --primary-soft: rgba(43, 143, 255, 0.14);
  --accent: #50e3ff;
  --danger: #ff3366;
  --text: #f5f7ff;
  --muted: #9ba4c6;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.7);
  --spacing: 20px;

  --font-sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Global reset */

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

html,
body {
  padding: 0;
  margin: 0;
  background: radial-gradient(circle at top, #101632 0, #050816 52%, #02040a 100%);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Animated background overlay */

body::before {
  content: "";
  position: fixed;
  inset: -40%;
  background: radial-gradient(circle at 10% 0%, rgba(80, 227, 255, 0.14) 0, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(43, 143, 255, 0.15) 0, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255, 51, 102, 0.12) 0, transparent 52%);
  opacity: 0.45;
  filter: blur(14px);
  pointer-events: none;
  z-index: -3;
  animation: bgShift 22s linear infinite alternate;
}

@keyframes bgShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  50% {
    transform: translate3d(-3%, -2%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(3%, 3%, 0) scale(1.03);
  }
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.18;
  z-index: -2;
}

.page-bg-img {
  width: 120%;
  max-width: none;
  position: absolute;
  top: -10%;
  left: -5%;
  filter: blur(6px);
}

/* Layout */

.section {
  padding: 96px min(6vw, 72px);
}

.section-alt {
  background: radial-gradient(circle at top, #0e1635 0, #050816 52%, #02040a 100%);
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 8px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.96),
    rgba(5, 8, 22, 0.88),
    rgba(5, 8, 22, 0.82)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px min(6vw, 72px);
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(80, 227, 255, 0.5));
}

.brand-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.18s ease-out;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 10px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out,
    background 0.15s ease-out,
    color 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 32px rgba(43, 143, 255, 0.5);
}

.btn-primary:hover {
  filter: brightness(1.07);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(43, 143, 255, 0.7);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(5, 8, 22, 0.7);
}

.btn-outline:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(9, 15, 40, 0.7);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.98rem;
}

.btn-full {
  width: 100%;
}

/* Hero */

.hero {
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.4rem, 3.8vw, 3.1rem);
  margin: 14px 0;
  letter-spacing: -0.03em;
}

.accent {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 18px 0;
  color: var(--muted);
  max-width: 560px;
}

.hero-bullets {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-bullet {
  display: grid;
  gap: 4px;
}

.hero-bullet-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.hero-bullet-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.hero-meta {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  margin-top: 4px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-label {
  color: var(--muted);
}

.mono {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

.mono-truncate {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(6, 13, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-right {
  display: grid;
  gap: 18px;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(57, 118, 255, 0.32), #050816 55%);
  border-radius: var(--radius-lg);
  padding: 18px 18px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 120deg,
    rgba(80, 227, 255, 0),
    rgba(80, 227, 255, 0.4),
    rgba(80, 227, 255, 0)
  );
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.35s ease-out;
}

.hero-card:hover::before {
  opacity: 0.35;
}

.hero-card-title {
  font-size: 1.1rem;
  margin: 0 0 12px 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.stat-label {
  color: var(--muted);
}

.stat-value {
  font-weight: 500;
}

.progress-wrap {
  margin: 10px 0 12px 0;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 0 12px rgba(80, 227, 255, 0.7);
  transition: width 0.4s ease-out;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.countdown {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.countdown-digits {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  margin-top: 4px;
}

.countdown-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.hero-image-card {
  background: rgba(5, 8, 22, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  transition:
    box-shadow 0.2s ease-out,
    transform 0.2s ease-out,
    border-color 0.2s ease-out;
}

.hero-image-card:hover {
  border-color: rgba(80, 227, 255, 0.6);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.hero-image {
  border-radius: var(--radius-md);
}

.hero-image-caption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.pill:hover::after {
  opacity: 1;
  transform: translateX(120%);
  transition: transform 0.6s ease-out;
}

.pill-danger {
  border-color: rgba(255, 51, 102, 0.6);
  background: rgba(255, 51, 102, 0.12);
  color: #ffc2d4;
}

.pill-info {
  border-color: rgba(80, 227, 255, 0.7);
  background: rgba(80, 227, 255, 0.08);
  color: #d5f7ff;
}

/* Buy section */

.buy-section {
  background: radial-gradient(circle at top, #0e1635 0, #050816 52%, #02040a 100%);
}

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.buy-card,
.buy-side-card {
  background: rgba(5, 8, 22, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 20px 18px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.buy-card::before,
.buy-side-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(80, 227, 255, 0.5), transparent);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.buy-card:hover::before,
.buy-side-card:hover::before {
  opacity: 0.5;
}

.buy-card h3,
.buy-side-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #050816;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(80, 227, 255, 0.4);
  background: #02040a;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.calc-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.78rem;
}

.list {
  padding-left: 16px;
  margin: 0;
  display: grid;
  gap: 6px;
  list-style-position: outside;
  font-size: 0.9rem;
}

.mesh-mini img {
  margin-top: 12px;
  border-radius: 10px;
  width: 100%;
  height: auto;
  display: block;
}

/* Mesh */

.mesh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mesh-column {
  background: rgba(5, 8, 22, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

.mesh-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  border-color: rgba(80, 227, 255, 0.6);
}

.mesh-image {
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

/* Tokenomics */

.tokenomics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}

.tokenomics-table-wrap {
  overflow-x: auto;
}

.tokenomics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: rgba(5, 8, 22, 0.96);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tokenomics-table th,
.tokenomics-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tokenomics-table thead {
  background: linear-gradient(90deg, rgba(80, 227, 255, 0.16), rgba(43, 143, 255, 0.28));
}

.tokenomics-table th {
  text-align: left;
  font-weight: 600;
}

.tokenomics-table tfoot td {
  font-weight: 600;
}

.tokenomics-side {
  background: rgba(5, 8, 22, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
}

/* Treasury */

.treasury-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.treasury-column {
  background: rgba(5, 8, 22, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.code-block {
  background: #050816;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 10px 10px 10px;
  overflow-x: auto;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.faq-item {
  background: rgba(5, 8, 22, 0.96);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(80, 227, 255, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.9);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px min(6vw, 72px) 22px min(6vw, 72px);
  background: #02040a;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 0.86rem;
}

.brand-footer {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-text {
  color: var(--muted);
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .hero-right {
    max-width: 460px;
  }

  .buy-grid,
  .mesh-grid,
  .tokenomics-grid,
  .treasury-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 18px;
  }

  .header-inner {
    padding-inline: 18px;
  }

  .hero-card {
    padding: 16px;
  }

  .buy-card,
  .buy-side-card,
  .mesh-column,
  .tokenomics-side,
  .treasury-column,
  .faq-item {
    padding: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
