@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0014;
  --bg-alt: #120022;
  --cyan: #00fff7;
  --magenta: #b026ff;
  --text: #e9e6f5;
  --text-dim: #9d92c2;
  --border: rgba(0, 255, 247, 0.25);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(176, 38, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(0, 255, 247, 0.12), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 247, 0.6);
}

.logo span {
  color: var(--magenta);
  text-shadow: 0 0 12px rgba(176, 38, 255, 0.7);
}

.main-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  font-weight: 600;
  font-size: 1.05rem;
}

.main-nav a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.25s ease;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

/* ---------- Layout helpers ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 2rem);
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ---------- Hero (index) ---------- */

.hero {
  text-align: center;
  padding: clamp(2rem, 8vw, 5rem) 0 clamp(1rem, 4vw, 2rem);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--text);
}

.hero-title .glow-cyan {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 247, 0.8), 0 0 40px rgba(0, 255, 247, 0.35);
}

.hero-title .glow-magenta {
  color: var(--magenta);
  text-shadow: 0 0 10px rgba(176, 38, 255, 0.85), 0 0 40px rgba(176, 38, 255, 0.35);
}

.hero-subtitle {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 500;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  background: linear-gradient(120deg, rgba(0, 255, 247, 0.12), rgba(176, 38, 255, 0.12));
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 255, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, rgba(0, 255, 247, 0.22), rgba(176, 38, 255, 0.22));
  box-shadow: 0 0 28px rgba(0, 255, 247, 0.6);
}

/* Giant download button */

.btn-download {
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  padding: clamp(1.3rem, 3vw, 1.8rem) clamp(2.4rem, 6vw, 4rem);
  border-radius: 10px;
  border: 2px solid var(--cyan);
  color: var(--bg);
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  box-shadow:
    0 0 25px rgba(0, 255, 247, 0.55),
    0 0 55px rgba(176, 38, 255, 0.4);
  text-shadow: none;
}

.btn-download:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 40px rgba(0, 255, 247, 0.8),
    0 0 90px rgba(176, 38, 255, 0.6);
}

.btn-download:active {
  transform: translateY(-1px) scale(0.99);
}

/* ---------- Feature grid (index) ---------- */

.features {
  margin-top: clamp(3rem, 8vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem;
  background: rgba(176, 38, 255, 0.04);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(176, 38, 255, 0.5);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.feature p {
  color: var(--text-dim);
  font-size: 1rem;
}

/* ---------- Downloads page ---------- */

.download-section {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.download-section h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.download-section .lead {
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0 auto 2.75rem;
  font-size: 1.1rem;
}

.download-meta {
  margin-top: 2.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.download-meta strong {
  color: var(--cyan);
}

/* ---------- FAQ accordion ---------- */

.faq-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-bottom: 2.5rem;
  color: var(--text);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 255, 247, 0.03);
  overflow: hidden;
}

.accordion-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
}

.accordion-question .icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  position: relative;
  color: var(--cyan);
}

.accordion-question .icon::before,
.accordion-question .icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 255, 247, 0.7);
  transition: transform 0.25s ease;
}

.accordion-question .icon::before {
  width: 100%;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-question .icon::after {
  width: 2px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.accordion-item.open .icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.accordion-item.open .accordion-question {
  color: var(--cyan);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dim);
  padding: 0 1.4rem;
}

.accordion-item.open .accordion-answer {
  padding: 0 1.4rem 1.3rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
