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

:root {
  --bg: #0a0a14;
  --text: #dddded;
  --muted: #6b6b88;
  --dim: #2a2a40;

  --p1: #885ee7;
  --nav-h: 68px;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.bg-mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-logo:hover {
  opacity: 1;
}

.nav-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  flex: 1;
}


.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero-gem-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#hero-gem {
  width: 100%;
  max-width: 260px;
}

#hero-gem .facet {
  cursor: default;
}

.text-link {
  color: var(--p1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(136, 94, 231, 0.4);
  transition: text-decoration-color 0.18s;
}
.text-link:hover {
  text-decoration-color: var(--p1);
}

.hero-desc {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 28px;
}

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

.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--p1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.btn-primary:hover {
  background: #9b72ef;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--dim);
  border-radius: 4px;
  transition:
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.18s;
}
.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .wrap {
    padding: 0 24px;
  }

  .nav-tagline {
    display: none;
  }

  #hero-gem {
    max-width: 180px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

::selection {
  background: var(--p1);
  color: #fff;
}
