:root {
  --bg0: #0d1117;
  --bg1: #161b22;
  --bg2: #1c2230;
  --bg3: #222d42;
  --border: #2d3748;
  --border2: #3d4f6b;
  --accent: #5b9bd5;
  --accent-dim: #3a7abf;
  --accent-glow: rgba(91,155,213,0.15);
  --blue: #5b9bd5;
  --blue-dim: #3a7abf;
  --text: #e2e8f0;
  --text2: #a0aec0;
  --text3: #718096;
  --text4: #4a5568;
  --green: #68d391;
  --orange: #f6ad55;
  --red: #fc8181;
  --radius: 8px;
  --radius-lg: 14px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --container: min(1140px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at -10% -10%, rgba(91, 155, 213, 0.09), transparent 65%),
    radial-gradient(900px 500px at 110% -10%, rgba(91,155,213,0.08), transparent 65%),
    linear-gradient(180deg, var(--bg0) 0%, #0b121d 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 48px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border2);
  color: var(--text2);
  background: rgba(34, 45, 66, 0.7);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.page-title,
.hero-title,
.section-title,
.card-title,
.cta-title {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

.page-subtitle,
.hero-subtext,
.section-subtitle,
.muted {
  color: var(--text2);
}

.btn,
button.btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
button.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(58, 122, 191, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(58, 122, 191, 0.43);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dim) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(58, 122, 191, 0.3);
}

.btn-outline {
  background: rgba(34, 45, 66, 0.7);
  border-color: var(--border2);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--blue);
}

.btn-text {
  background: none;
  border: none;
  color: var(--blue);
  padding: 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-discord {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dim) 100%);
  color: #fff;
  border-color: transparent;
}

#nav-root {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

#site-nav {
  width: var(--container);
  margin: 12px auto 0;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(58, 122, 191, 0.4);
  font-size: 18px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-staff-link {
  color: var(--text2);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-staff-link:hover {
  background: var(--bg3);
  color: var(--text);
}

.nav-links a.active,
.nav-staff-link.active {
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(91,155,213,0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-right .btn-discord {
  min-height: 38px;
  padding: 9px 14px;
}

main {
  padding-top: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 6% -20% auto;
  height: 340px;
  background: linear-gradient(120deg, rgba(91,155,213,0.25), rgba(91, 155, 213, 0.18), rgba(91,155,213,0.22));
  filter: blur(30px);
  animation: heroGradientShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGradientShift {
  0% {
    transform: translateX(-6%) translateY(0) scale(1);
  }
  100% {
    transform: translateX(4%) translateY(-10px) scale(1.05);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  background: rgba(22, 27, 34, 0.72);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 56px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  max-width: 820px;
}

.hero-subtext {
  margin: 18px 0 0;
  max-width: 720px;
  font-size: clamp(15px, 1.8vw, 18px);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-pills {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.feature-pill {
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(34, 45, 66, 0.78);
  color: var(--text2);
  font-size: 13px;
}

.section-head {
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(24px, 3.3vw, 36px);
}

.section-subtitle {
  margin-top: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.panel,
.info-block,
.policy-card,
.market-card,
.order-panel {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.service-card {
  padding: 18px;
}

.service-card .category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91, 155, 213, 0.16);
  border: 1px solid rgba(91, 155, 213, 0.25);
  color: #a5c7e8;
  font-family: var(--font-mono);
  font-size: 12px;
}

.service-card .card-title {
  margin-top: 12px;
  font-size: 22px;
}

.service-card .price {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.service-card .meta {
  color: var(--text2);
  font-size: 14px;
  margin-top: 6px;
}

.service-card .card-link {
  margin-top: 14px;
  display: inline-block;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-box {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-title {
  font-size: 28px;
}

.cta-copy {
  margin-top: 4px;
  color: var(--text2);
  max-width: 650px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-hero {
  padding: 34px 0 8px;
}

.page-title {
  font-size: clamp(28px, 4vw, 50px);
}

.page-subtitle {
  margin: 10px 0 0;
  max-width: 840px;
}

.market-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg1);
  padding: 0 12px;
}

.search-wrap input {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: var(--bg1);
  color: var(--text2);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.filter-pill.active {
  color: var(--accent);
  border-color: rgba(91,155,213,0.4);
  background: var(--accent-glow);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.market-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-card .badge {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(91, 155, 213, 0.28);
  background: rgba(91, 155, 213, 0.14);
  color: #a5c7e8;
}

.market-card h3 {
  margin: 0;
  font-size: 22px;
  font-family: var(--font-head);
}

.market-card .price {
  color: var(--accent);
  font-weight: 700;
}

.market-card p {
  margin: 0;
  color: var(--text2);
}

.market-card.hidden {
  display: none;
}

.order-flow {
  margin-top: 20px;
  position: relative;
}

.order-stage {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.order-flow .form-stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(5%);
  pointer-events: none;
}

.order-flow.is-step2 .gate-stage {
  opacity: 0;
  transform: translateX(-5%);
  pointer-events: none;
}

.order-flow.is-step2 .form-stage {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.gate-panel {
  padding: 26px;
}

.gate-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-family: var(--font-head);
}

.gate-panel p {
  margin-top: 10px;
  color: var(--text2);
  max-width: 820px;
}

.gate-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.gate-actions .btn-discord {
  width: 100%;
  max-width: 360px;
  min-height: 50px;
  font-size: 16px;
}

.order-panel {
  padding: 22px;
}

.order-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--text2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.tooltip-trigger {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: help;
}

.tooltip-text {
  display: none;
  position: absolute;
  left: 22px;
  top: -2px;
  width: min(420px, 80vw);
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text2);
  font-size: 12px;
  z-index: 3;
}

.tooltip-wrap:hover .tooltip-text,
.tooltip-wrap:focus-within .tooltip-text {
  display: block;
}

.radio-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-option {
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
}

.char-count {
  margin-top: 4px;
  color: var(--text3);
  font-size: 12px;
  text-align: right;
  font-family: var(--font-mono);
}

.file-help {
  margin-top: 4px;
  color: var(--text3);
  font-size: 12px;
}

.preview-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preview-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
}

.preview-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.preview-meta {
  padding: 7px 8px;
  color: var(--text2);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-error {
  border: 1px solid rgba(252, 129, 129, 0.45);
  background: rgba(252, 129, 129, 0.12);
  color: var(--red);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
}

.success-card {
  margin-top: 14px;
  border: 1px solid rgba(104, 211, 145, 0.45);
  background: rgba(104, 211, 145, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.success-card p {
  margin: 0;
  color: #caf4d8;
}

.success-actions {
  margin-top: 12px;
}

.list-block {
  margin: 0;
  padding-left: 18px;
  color: var(--text2);
}

.list-block li + li {
  margin-top: 8px;
}

.info-grid {
  display: grid;
  gap: 14px;
}

.info-block {
  padding: 20px;
}

.info-block h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 28px;
}

.info-block p {
  color: var(--text2);
}

#footer-root {
  margin-top: 58px;
}

.site-footer {
  width: var(--container);
  margin: 0 auto 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(22, 27, 34, 0.85);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text3);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: var(--text2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
}

@media (max-width: 1024px) {
  #site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-brand {
    width: 100%;
    justify-content: center;
  }

  .nav-links,
  .nav-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .card-grid,
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .section,
  .section-tight {
    padding: 44px 0;
  }

  .hero-inner,
  .order-panel,
  .gate-panel {
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .market-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
