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

:root {
  --orange: #f7931a;
  --orange-hover: #e8850f;
  --orange-dim: rgba(247, 147, 26, 0.12);
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #fafafa;
  --muted: #737373;
  --green: #22c55e;
  --red: #ef4444;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
}

.text-orange {
  color: var(--orange);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 80rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
}

.logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 0.625rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-inline: 1.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.token-logo {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ticker-symbol {
  font-weight: 600;
}

.ticker-price {
  color: var(--muted);
}

.ticker-change {
  font-size: 0.75rem;
}

.ticker-change.is-up {
  color: var(--green);
}

.ticker-change.is-down {
  color: var(--red);
}

/* (ticker motion is handled by js/ticker.js for a seamless loop) */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(247, 147, 26, 0.12) 0%,
    transparent 70%
  );
}

.hero-inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.hero-title {
  max-width: 36rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-desc {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-price-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-price-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  border: none;
  background: var(--orange);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-outline {
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange-dim);
}

@media (min-width: 768px) {
  .hero-inner {
    padding: 6rem 1.5rem 8rem;
  }
}

/* Waitlist modal */
body.modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.waitlist-modal.is-open {
  opacity: 1;
}

.waitlist-modal[hidden] {
  display: none;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.waitlist-dialog {
  position: relative;
  width: 100%;
  max-width: 24rem;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.waitlist-modal.is-open .waitlist-dialog {
  transform: translateY(0) scale(1);
}

.waitlist-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.waitlist-close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.waitlist-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.waitlist-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.waitlist-title {
  margin-bottom: 0.625rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.waitlist-desc {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.waitlist-email {
  color: var(--text);
  font-weight: 500;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-input::placeholder {
  color: rgba(250, 250, 250, 0.3);
}

.waitlist-input:focus {
  border-color: var(--orange);
}

.waitlist-submit {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.waitlist-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.waitlist-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-error {
  font-size: 0.8125rem;
  color: var(--red);
  text-align: center;
}

.waitlist-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--orange);
}

.waitlist-check svg {
  width: 1.375rem;
  height: 1.375rem;
}

#waitlist-success-view {
  text-align: center;
}

#waitlist-success-view .waitlist-desc {
  margin-bottom: 1.25rem;
}

#waitlist-success-view .waitlist-submit {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

#waitlist-success-view .waitlist-submit:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
  opacity: 1;
}
