:root {
  --md-sys-color-primary: #3ddc84;
  --md-sys-color-on-primary: #003917;
  --md-sys-color-surface: #0f1311;
  --md-sys-color-on-surface: #e3e6e3;
  --md-sys-color-surface-variant: #1b211e;
  --md-sys-color-outline: #3a413d;

  --md-sys-elevation-1: 0 1px 2px rgba(0,0,0,.2), 0 1px 3px rgba(0,0,0,.15);
  --md-sys-elevation-2: 0 2px 6px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.15);

  --radius-m: 16px;
  --radius-s: 12px;
  --radius-l: 28px;

  --container-max: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Helvetica, Arial, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: var(--md-sys-color-on-surface);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(61,220,132,.08), transparent 40%),
              radial-gradient(1000px 600px at 100% 0%, rgba(0,229,255,.06), transparent 40%),
              linear-gradient(180deg, #0a0d0c 0%, #0f1311 100%);
}

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

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.space-between { justify-content: space-between; }

.elevation-1 { box-shadow: var(--md-sys-elevation-1); }
.elevation-2 { box-shadow: var(--md-sys-elevation-2); }

.app-bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 23, 21, .7);
  backdrop-filter: saturate(1.15) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.app-bar__row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; gap: 10px; }
.brand__logo { width: 28px; height: 28px; }
.brand__name { font-weight: 800; letter-spacing: .2px; }

.theme-switcher { display: inline-flex; gap: 8px; margin-right: 8px; }
.color-chip { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); background: var(--md-sys-color-primary); padding: 0; }
.color-chip[data-color="#3ddc84"] { background: #3ddc84; }
.color-chip[data-color="#00e5ff"] { background: #00e5ff; }
.color-chip[data-color="#b388ff"] { background: #b388ff; }

.nav { position: relative; display: flex; align-items: center; }
.nav__actions { display: inline-flex; gap: 8px; margin-right: 8px; }
.nav__toggle { display: inline-grid; place-items: center; background: transparent; border: 0; color: inherit; padding: 8px; border-radius: 50%; }
.nav__list { display: none; position: absolute; right: 0; top: 56px; background: rgba(18,23,21,.95); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 8px; flex-direction: column; min-width: 180px; z-index: 25; }
.nav__list.is-open { display: flex; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; color: inherit; text-decoration: none; opacity: .9; }
.nav__link:hover { background: rgba(255,255,255,.06); opacity: 1; }

/* Navigation Rail */
.nav-rail { position: fixed; left: 12px; top: 72px; bottom: 72px; width: 72px; border-radius: 24px; padding: 8px; background: rgba(18,23,21,.6); border: 1px solid rgba(255,255,255,.06); display: grid; gap: 6px; align-content: start; z-index: 15; }
.nav-rail__action { display: grid; justify-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; color: #cdd4cf; text-decoration: none; }
.nav-rail__action:hover { background: rgba(255,255,255,.06); }
.nav-rail__label { font-size: 12px; opacity: .9; }

/* Bottom App Bar */
.bottom-bar { position: sticky; bottom: 0; z-index: 19; display: none; gap: 8px; background: rgba(18,23,21,.85); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.06); padding: 8px 10px; justify-content: space-around; }
.bottom-bar__action { display: inline-grid; justify-items: center; text-decoration: none; color: #cfd5d1; gap: 6px; padding: 8px 12px; border-radius: 12px; }
.bottom-bar__action:hover { background: rgba(255,255,255,.06); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 48px 0 24px; }
.overline { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(61,220,132,.16); color: #b6ffd1; margin-bottom: 10px; font-weight: 600; }
.hero__title { font-size: clamp(40px, 6vw, 68px); margin: 0 0 8px; line-height: 1.05; letter-spacing: -0.02em; }
.hero__subtitle { margin: 0 0 18px; color: #b8beb9; font-weight: 400; }
.hero__badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: #d8dfda; font-size: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__art { justify-self: end; }
.hero__img { filter: drop-shadow(0 20px 60px rgba(61, 220, 132, .2)); width: min(440px, 90%); }

.section { padding: 56px 0; }
.section--alt { background: linear-gradient(180deg, var(--md-sys-color-surface-variant), #141a17); }
.section__head h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.section__head p { margin: 0; color: #aab1ac; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.stats > .card { grid-column: span 4; }
.tokenomics > .card { grid-column: span 4; }
.socials > .card { grid-column: span 6; }

.card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-m); overflow: hidden; }
.card--link { text-decoration: none; color: inherit; }
.card__header { padding: 16px 18px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.06); }
.card__content { padding: 16px 18px; font-size: 18px; }
.card__title { font-weight: 600; margin-bottom: 4px; }
.card__desc { color: #aab1ac; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: #cfd5d1; }

.btn { --bg: rgba(255,255,255,.06); --fg: var(--md-sys-color-on-surface); --bd: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--bd); border-radius: 999px; text-decoration: none; color: var(--fg); background: var(--bg);
}
.btn--primary { --bg: var(--md-sys-color-primary); --fg: #00210c; --bd: transparent; font-weight: 700; }
.btn--tonal { --bg: rgba(61, 220, 132, .16); --fg: #b6ffd1; }
.btn--outline { --bg: transparent; --fg: var(--md-sys-color-on-surface); --bd: rgba(255,255,255,.24); }
.btn:hover { filter: brightness(1.03); }

.link { background: none; border: 0; padding: 0; color: var(--md-sys-color-primary); text-decoration: underline; cursor: pointer; }
.link--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; text-decoration: none; color: #c7cfc9; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); padding: 16px; border-radius: var(--radius-m); }
.step__icon { color: var(--md-sys-color-primary); }
.step__body h3 { margin: 0 0 6px; font-size: 18px; }
.step__body p { margin: 0; color: #b8beb9; }

.timeline { position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.08); }
.timeline__item { position: relative; padding-left: 48px; margin: 20px 0; }
.timeline__dot { position: absolute; left: 12px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--md-sys-color-primary); box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
.timeline__card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-s); padding: 14px 16px; }

.fab { position: fixed; right: 20px; bottom: 84px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--md-sys-color-primary); color: #00210c; text-decoration: none; box-shadow: var(--md-sys-elevation-2); }

.footer { border-top: 1px solid rgba(255,255,255,.06); margin-top: 40px; padding: 20px 0; background: rgba(18,23,21,.7); }
.footer__logo { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; display: inline-block; }
.footer__left { display: inline-flex; align-items: center; gap: 10px; }
.footer__right { display: inline-flex; align-items: center; gap: 6px; }
.footer__meta { margin-top: 10px; color: #9aa19c; }

.snackbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); background: #1b211e; color: #dce2dd; padding: 10px 14px; border-radius: 8px; box-shadow: var(--md-sys-elevation-2); opacity: 0; pointer-events: none; transition: all .25s ease; }
.snackbar--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Active section highlight */
.nav__link.is-active { background: rgba(61,220,132,.16); color: #b6ffd1; }
.nav-rail__action.is-active { background: rgba(61,220,132,.16); color: #b6ffd1; }

/* Ripple */
.md-ripple { position: relative; overflow: hidden; }
.md-ripple::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; background: radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,.35), transparent 40%); transition: opacity .35s ease; }
.md-ripple:active::after { opacity: 1; transition: opacity .15s ease; }

/* Responsive */
@media (max-width: 1200px) {
  .nav-rail { display: none; }
}

@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__art { justify-self: center; }
  .grid { grid-template-columns: repeat(6, 1fr); }
  .stats > .card, .tokenomics > .card, .socials > .card { grid-column: span 6; }
}

@media (max-width: 720px) {
  .app-bar__row { height: 60px; }
  .nav__list { top: 52px; }
  .nav__actions { display: none; }
  .bottom-bar { display: flex; }
  .fab { bottom: 88px; }
} 