/* === Design Tokens === */
:root {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-accent-gold: #d4a017;
  --color-accent-cyan: #00d4ff;
  --color-accent-red: #e63946;
  --color-text: #e8e4d9;
  --color-text-muted: #8a8677;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* === Starfield Canvas === */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === Site Logo === */
.site-logo {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
}

.site-logo-img {
  height: 96px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.site-logo:hover .site-logo-img {
  opacity: 0.8;
}

@media (max-width: 480px) {
  .site-logo {
    top: 1rem;
    left: 1rem;
  }

  .site-logo-img {
    height: 72px;
  }
}

/* === Sections === */
header,
section,
footer {
  position: relative;
  z-index: 1;
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--color-accent-gold);
  text-shadow: 0 0 40px rgba(212, 160, 23, 0.3);
  margin: 0 0 1rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin: 0 0 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--color-accent-gold);
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  box-shadow: 0 0 25px rgba(212, 160, 23, 0.5);
  transform: translateY(-2px);
}

.cta-button:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 25px rgba(212, 160, 23, 0.5);
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Shared section styles */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  text-align: center;
  margin: 0 0 3rem;
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin: 0 0 1.25rem;
  line-height: 1.8;
}

.about-image {
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Placeholder style for missing images */
.about-image[src*="placeholder"],
.about-image:not([src]),
.about-image[src=""] {
  background: var(--color-bg-elevated);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(212, 160, 23, 0.15);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin: 0 0 0.75rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent-cyan);
  margin-bottom: 0.75rem;
}

.step-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin: 0 0 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Tech Specs */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.spec-card {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 1.5rem 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.spec-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.spec-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin: 0 0 0.5rem;
}

.spec-value {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

/* Video Demo */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Screenshots */
.screenshots-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin: 0 0 2.5rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.screenshot {
  margin: 0;
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Customization */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.custom-card {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(212, 160, 23, 0.15);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.1);
}

.custom-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.custom-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin: 0 0 0.75rem;
}

.custom-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(212, 160, 23, 0.15);
  margin-bottom: 0.75rem;
  background: var(--color-bg-elevated);
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(212, 160, 23, 0.4);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-accent-gold);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  padding: 0 1.5rem 1.25rem;
  margin: 0;
}

/* Signup */
.signup-container {
  text-align: center;
  max-width: 600px;
}

.signup-subtitle {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.signup-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.signup-input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-right: none;
  outline: none;
  transition: border-color 0.3s ease;
}

.signup-input:focus {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.4);
}

.signup-input::placeholder {
  color: var(--color-text-muted);
}

.signup-button {
  white-space: nowrap;
}

.signup-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Footer */
#footer {
  border-top: 1px solid rgba(212, 160, 23, 0.1);
  padding: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--color-text-muted);
  transition: color 0.3s ease, filter 0.3s ease;
}

.footer-link:hover {
  color: var(--color-accent-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.footer-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Screen reader only */
.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;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

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

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

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

  .signup-form {
    flex-direction: column;
  }

  .signup-input {
    border-right: 1px solid rgba(212, 160, 23, 0.3);
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
    letter-spacing: 0.08em;
  }

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

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

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

  .section-container {
    padding: 4rem 1.25rem;
  }
}
