:root {
  --bg-canvas: #040406;
  --bg-black-1: #111111;
  --bg-dropdown: #0b0b0f;
  --text-primary: #ffffff;
  --text-muted: #9a9aa3;
  --text-subtle: #8d8d97;
  --accent-cyan: #33e6e6;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  border: 0 solid rgba(255, 255, 255, 0.1);
}

html {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  font-family: var(--font-sans);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p {
  margin: 0;
  padding: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
}

[hidden] {
  display: none !important;
}

canvas, svg, img {
  display: block;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background-color: var(--bg-canvas);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 10px;
}

.header-bar {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 1440px;
  align-items: stretch;
  gap: 2px;
  padding: 0 16px;
}

.nav-white-item {
  display: flex;
  height: 44px;
  align-items: center;
  background-color: #ffffff;
  font-size: 14px;
  color: #040406;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-white-item:hover {
  background-color: #e4e4e7;
}

.brand-link {
  min-width: 0;
  flex: 1 1 0%;
  gap: 8px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-dropdown-wrap {
  position: relative;
  display: none;
}

.nav-dropdown-btn {
  gap: 4px;
  padding: 0 20px;
}

.nav-chevron {
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-btn[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: 48px;
  left: 0;
  width: 320px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.1);
  background-color: var(--bg-dropdown);
  padding: 6px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.nav-dropdown-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-title {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

.nav-dropdown-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-subtle);
}

.nav-desktop-link {
  display: none;
  padding: 0 20px;
}

.nav-discord-gap {
  margin-right: 20px;
}

.nav-login-btn {
  display: none;
  height: 44px;
  align-items: center;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.3);
  background-color: #040406;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-login-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-cta-btn {
  display: none;
  padding: 0 20px;
  font-weight: 500;
}

.mobile-menu-btn {
  padding: 0 14px;
}

.mobile-nav-drawer {
  margin: 2px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-item {
  width: 100%;
  padding: 0 16px;
  text-align: left;
}

/* Main Hero */
.site-main {
  overflow-x: clip;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
}

.hero-section {
  position: relative;
  z-index: 0;
  margin-top: -54px;
  flex: 1 1 0%;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay-field {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  height: 52%;
}

.hero-chip {
  position: absolute;
  display: none;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  background-color: rgba(4, 4, 6, 0.85);
  color: rgba(255, 255, 255, 0.85);
}

.hero-chip--highlight {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.hero-rotating-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.3;
  pointer-events: none;
}

.hero-rotating-line {
  min-height: 1.3em;
}

.hero-rotating-pill {
  background-color: rgba(4, 4, 6, 0.9);
  padding: 0 8px;
  transition: opacity 250ms ease;
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(to top, #040406 0%, rgba(4, 4, 6, 0.94) 55%, transparent 100%);
}

.hero-content-anchor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content-inner {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 1440px;
  flex-direction: column;
  gap: 32px;
  padding: 0 16px 48px;
}

.hero-copy-col {
  max-width: 672px;
}

.hero-h1 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-subtitle {
  margin-top: 20px;
  max-width: 512px;
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-solid-white {
  display: inline-flex;
  height: 44px;
  align-items: center;
  background-color: #ffffff;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  color: #040406;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-solid-white:hover {
  background-color: #d4d4d8;
}

.btn-outline-dark {
  display: inline-flex;
  height: 44px;
  align-items: center;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Modal */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.section-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.v1x-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(4, 4, 6, 0.8);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.v1x-modal {
  width: 100%;
  max-width: 440px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.16);
  background-color: #0a0a0e;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.v1x-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v1x-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.v1x-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.v1x-modal-title {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.v1x-modal-body {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.v1x-modal-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Breakpoints */
@media (min-width: 640px) {
  .header-bar {
    padding-left: 40px;
    padding-right: 40px;
  }

  .mobile-nav-drawer {
    margin-left: 40px;
    margin-right: 40px;
  }

  .hero-chip {
    display: block;
  }

  .hero-rotating-wrap {
    font-size: 32px;
  }

  .hero-content-inner {
    padding: 0 40px 56px;
  }

  .hero-h1 {
    font-size: 64px;
  }
}

@media (min-width: 768px) {
  .nav-dropdown-wrap {
    display: block;
  }

  .nav-desktop-link,
  .nav-login-btn,
  .nav-cta-btn {
    display: flex;
  }

  .mobile-menu-btn,
  .mobile-nav-drawer {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hero-content-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
