@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --sidebar: #101012;
  --bg-elev: #121214;
  --panel: #1a1a1e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ececee;
  --muted: #8d8d96;
  --accent: #e4e4e8;
  --accent-2: #b4b4bc;
  --accent-ink: #141416;
  --green: #6fbf8a;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--text); }
a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #161618;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--text);
}

.nav-discord {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: line-through;
  cursor: default;
}

.nav-discord::after {
  content: "In progress";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a1a1e;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.nav-discord:hover::after,
.nav-discord:focus-visible::after {
  opacity: 1;
}

.nav-login,
.nav-logout,
.nav-account {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 13px !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04);
}

.nav-logout {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button.nav-logout {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.token-pack label { display: grid; gap: 8px; margin: 16px 0 8px; }
.token-pack input { max-width: 160px; }

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
  flex: 1;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.preview-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.preview-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a40;
}

.preview-bar span:first-child { background: #ff6b6b; }
.preview-bar span:nth-child(2) { background: #f59e0b; }
.preview-bar span:nth-child(3) { background: #22c96a; }

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 12, 14, 0.72);
  font-size: 13px;
}

.preview-row strong { font-size: 16px; }
.up { color: var(--green); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card, form, .auth-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--panel);
}

.card p, .auth-card p { color: var(--muted); }

.feature-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 48px 0 18px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.store-examples {
  margin-top: 8px;
}

.store-examples-lede {
  max-width: 52rem;
  margin: -6px 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.store-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.store-example {
  margin: 0;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(18, 18, 24, 0.88);
}

.store-example img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  vertical-align: top;
  background: #fff;
}

.store-example-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  cursor: zoom-in;
  filter: none;
}

.store-example-open:hover {
  filter: none;
}

.store-example-open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4070 / 2432;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}

.store-example-open span {
  display: block;
  margin-top: auto;
  padding: 12px 16px 14px;
  font-size: 13px;
  line-height: 1.4;
}

.store-lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1480px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  margin: 0;
  overflow: auto;
  padding: 48px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121216;
  color: var(--text);
}

.store-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.store-lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.store-lightbox-caption {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.store-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1c1c22;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

label {
  display: block;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--bg-elev);
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(228, 228, 232, 0.28);
  border-color: var(--accent);
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--accent-ink);
  background: var(--accent);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover, .button:hover { filter: brightness(1.06); }

.button-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.price {
  margin: 8px 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.note, .muted { color: var(--muted); }
code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-elev);
  font-size: 0.92em;
}

ol, ul { color: var(--muted); }
li { margin: 8px 0; }

.auth-wrap {
  width: min(440px, 100%);
  margin: 24px auto 0;
}

.site-footer {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 22px 28px 28px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  background: rgba(12, 12, 14, 0.9);
}

.site-footer-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.site-footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-footer-copy {
  color: var(--muted);
  font-size: 12px;
}

.site-footer-disclaimer {
  width: min(820px, 100%);
  margin: 18px auto 88px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.terms-check input {
  width: auto;
  margin: 3px 0 0;
}

.terms-check a { font-weight: 700; }

.site-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.58;
}

.sky-defs,
.site-sky,
.sky-cloud-track,
.cc-cloud,
.cc-moon {
  display: none !important;
}

.site-header,
main {
  position: relative;
  z-index: 12;
}

.site-catwalk,
.pixel-cat {
  display: none !important;
}

.pixel-cat {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: max-content;
  height: 80px;
  animation: site-cat-walk 14s linear infinite;
}

.unicorn-frame {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  color: #9a9aa3;
  font: 7px/0.92 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0;
  white-space: pre;
  opacity: 0;
  animation: 0.56s steps(1, end) infinite;
}

.frame-one { animation-name: cat-step-one; }
.frame-two { animation-name: cat-step-two; }
.frame-three { animation-name: cat-step-three; }
.frame-four { animation-name: cat-step-four; }

@keyframes site-cat-walk {
  from { transform: translateX(-140%); }
  to { transform: translateX(100vw); }
}

@keyframes cat-step-one {
  0%, 24.9% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

@keyframes cat-step-two {
  0%, 24.9% { opacity: 0; }
  25%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes cat-step-three {
  0%, 49.9% { opacity: 0; }
  50%, 74.9% { opacity: 1; }
  75%, 100% { opacity: 0; }
}

@keyframes cat-step-four {
  0%, 74.9% { opacity: 0; }
  75%, 100% { opacity: 1; }
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--text); }

#message { min-height: 1.4em; color: var(--muted); }

.dash {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 28px;
  align-items: start;
  flex: 1;
}

.dash-side {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--panel);
}

.dash-plan {
  color: var(--muted);
  font-weight: 700;
}

.dash-soon {
  min-height: 360px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 24px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.dash-soon h1 {
  margin-bottom: 10px;
}

.dash-soon .lede {
  margin: 0 auto;
}

.dash-message {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 24px;
  color: var(--muted);
}

main.legal {
  max-width: 820px;
}

main.legal h2 {
  margin-top: 28px;
}

main.legal h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

main.legal ul {
  color: var(--muted);
  padding-left: 1.2em;
}

main.legal li {
  margin: 6px 0;
}

@media (max-width: 800px) {
  .hero, .steps, .store-examples-grid { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  main { padding-top: 32px; }
  .dash { grid-template-columns: 1fr; }
}
