:root {
  --bg: #1a1600;
  --bg-elevated: #221c00;
  --bg-card: #2b2400;
  --bg-card-soft: #362d00;
  --border: #ffe45e;
  --border-hover: #fff6c9;
  --text-primary: #fffdf2;
  --text-secondary: #ffe98a;
  --text-muted: #c9b34a;
  --accent: #ffd400;
  --accent-dark: #e0b800;
  --accent-soft: rgba(255, 212, 0, 0.16);
  --success: #ffffff;
  --danger: #ff5a5a;
  --radius: 0px;
  --radius-sm: 0px;
  --ease: steps(6, end);
  --pixel: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  image-rendering: pixelated;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

html:not(.cfg-ready) [data-cfg] {
  min-height: 1em;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Press Start 2P", "Courier New", monospace;
  line-height: 1.8;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;
  background-image:
    linear-gradient(rgba(255, 212, 0, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 212, 0, 0.06) 2px, transparent 2px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus,
a:active,
button:focus,
button:active,
input:focus,
input:active,
.btn:focus,
.btn:active,
.nav-cta:focus,
.nav-cta:active,
.feature-link:focus,
.feature-link:active {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

button, input {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: none;
}

svg[data-lucide],
i[data-lucide] svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin-btn {
  to { transform: rotate(360deg); }
}

@keyframes blink-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 3px solid var(--text-primary);
  transition: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  font-family: "Press Start 2P", monospace;
  box-shadow: 4px 4px 0 0 #000;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: var(--accent);
  color: #1a1600;
  border-color: #000;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #000;
  background: var(--border-hover);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 #000;
}

.btn-ghost {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-ghost:hover {
  background: var(--bg-card-soft);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #000;
}

.btn-ghost:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 #000;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 0;
  border: 3px solid #1a1600;
  border-top-color: transparent;
  animation: spin-btn 0.6s steps(8) infinite;
  flex-shrink: 0;
}

#bgParticles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

#smooth-wrapper {
  position: relative;
  width: 100%;
}

#smooth-content {
  overflow: visible;
  width: 100%;
}

.navbar {
  position: sticky !important;
}