/* ===== Custom Properties ===== */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --text-primary: #f0f0f0;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #c9a84c;
  --accent-dim: rgba(201, 168, 76, 0.15);
  --accent-glow: rgba(201, 168, 76, 0.3);
  --border: #27272a;
  --border-light: #3f3f46;
  --nav-height: 64px;
  --container-max: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

ul { list-style: none; }

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav--solid {
  background: rgba(10, 10, 11, 0.95);
  border-bottom-color: var(--border);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__cta {
  background: var(--accent);
  color: var(--bg-primary) !important;
  padding: 6px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav__cta:hover {
  opacity: 0.9;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn--primary:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

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

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

.btn--lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

/* ===== Section ===== */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.section__title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section__subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.0625rem;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: calc(var(--nav-height) + 48px) 24px 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.accent {
  color: var(--accent);
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  flex: 0 0 auto;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__image img {
  border-radius: var(--radius-lg);
}

/* ===== How It Works ===== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 220px;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 16px;
}

.step__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step__arrow {
  color: var(--accent);
  font-size: 1.5rem;
  margin-top: 12px;
  flex-shrink: 0;
}

.steps__image {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.steps__image img {
  border-radius: var(--radius-lg);
}

/* ===== Hardware ===== */
.hardware__hero {
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hardware__hero img {
  border-radius: var(--radius-lg);
}

.zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.zone {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.zone:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.zone__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.zone__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.zone__range {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.zone p:last-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hardware__exploded {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hardware__exploded img {
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}

.hardware__caption {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Specifications ===== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: var(--accent);
}

.stat-card__value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__unit {
  font-size: 1.25rem;
  font-weight: 500;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.specs-table-wrapper {
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.specs-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--accent);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.specs-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.specs-table tr:hover td {
  background: var(--bg-card);
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
  outline: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.gallery__item:hover img,
.gallery__item:focus img {
  transform: scale(1.05);
}

.gallery__item:hover::after,
.gallery__item:focus::after {
  background: rgba(0, 0, 0, 0.15);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.lightbox.open {
  display: flex;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 2rem;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 16px;
  right: 16px;
  font-size: 2.5rem;
}

.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* ===== Roadmap Timeline ===== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
}

.timeline__item--complete .timeline__marker {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline__item--current .timeline__marker {
  background: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.timeline__item--current .timeline__content {
  border-color: var(--accent);
}

.timeline__phase {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline__content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline__status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.timeline__status--complete {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.timeline__status--current {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

.timeline__content ul {
  list-style: disc;
  padding-left: 20px;
}

.timeline__content li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.5;
}

/* ===== Support / Tiers ===== */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.tier:hover {
  transform: translateY(-2px);
}

.tier--featured {
  border-color: var(--accent);
}

.tier__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 12px;
}

.tier__price {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.tier__price span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.tier__perks {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.tier__perks li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.tier__perks li:last-child {
  border-bottom: none;
}

.tier .btn {
  width: 100%;
  justify-content: center;
}

/* ===== Funding Goals ===== */
.funding-goals {
  max-width: 600px;
  margin: 0 auto;
}

.funding-goals h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.goal {
  margin-bottom: 16px;
}

.goal__info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.goal__name {
  color: var(--text-secondary);
}

.goal__amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.goal__bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.goal__progress {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s;
}

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner__content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-banner__content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner__content p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 11, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  .nav__links.open {
    display: flex;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step__arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .zones {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiers {
    grid-template-columns: 1fr;
  }

  .cta-banner__content h2 {
    font-size: 1.75rem;
  }

  .lightbox__prev {
    left: 4px;
    font-size: 2rem;
  }

  .lightbox__next {
    right: 4px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__image {
    max-width: 100%;
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery__item img {
    transition: none;
  }

  .zone,
  .tier,
  .btn {
    transition: none;
  }
}
