/* VoxaSpace Landing Page Styles */

:root {
  --bg: #0f0c22;
  --bg-alt: #151236;
  --card: #1b1832;
  --text: #e9e6ff;
  --muted: #bab6e8;
  --primary: #7a5cff;
  --primary-600: #6b4cff;
  --accent: #18d2c2;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  /* Single subtle purple gradient across the whole page */
  background: linear-gradient(180deg, #1a1242 0%, #0f0c22 100%);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(15, 12, 34, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.logo-mark { font-size: 18px; }
.logo-text { font-size: 16px; }

.nav-links { display: none; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.cta-link { padding: 10px 14px; border-radius: 10px; background: var(--primary); color: white !important; }
.cta-link:hover { background: var(--primary-600); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; border-radius: 2px; transition: transform .2s ease, opacity .15s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); transform-origin: center; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); transform-origin: center; }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 120;
  padding: 12px 16px;
  background: rgba(27,24,50,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none; border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  /* animation */
  max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-6px);
  pointer-events: none;
  transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
}
.mobile-menu .container { display: grid; gap: 6px; }
.mobile-menu.open { max-height: 340px; opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { color: var(--text); text-decoration: none; font-weight: 700; padding: 12px 8px; border-radius: 10px; }
.mobile-menu a:hover { background: rgba(255,255,255,0.04); }
.mobile-menu .cta-link { justify-self: stretch; text-align: center; margin-top: 4px; }

/* Unified nav: mobile overlay */
@media (max-width: 899px) {
  .nav { position: relative; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 120;
    display: grid; gap: 6px; padding: 12px 16px;
    background: rgba(27,24,50,0.95);
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none; border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.35);
    max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-6px);
    pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { max-height: 360px; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { color: var(--text); font-weight: 700; padding: 12px 8px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255,255,255,0.04); }
  .nav-links .cta-link { justify-self: stretch; text-align: center; }
}

/* Desktop nav */
@media (min-width: 900px) {
  .nav-links { display: inline-flex; position: static; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; opacity: 1; transform: none; max-height: none; pointer-events: auto; }
  .nav-toggle { display: none; }
  /* Hide CTA chip in desktop primary nav if not desired */
  .nav-links .cta-link { display: none; }
}

/* Hero */
.hero { padding: 64px 0 20px; text-align: center; }
.hero-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; justify-items: center; }
.hero-copy { max-width: 820px; margin: 0 auto; }
.hero-copy h1 { font-size: clamp(36px, 6.5vw, 56px); line-height: 1.08; margin: 10px 0 16px; letter-spacing: 0.2px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; margin: 22px 0; justify-content: center; }
.note { color: var(--muted); font-size: 14px; margin: 0 auto; }

.btn { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--text); padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); transition: transform 0.06s ease, background 0.2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), #9b5cfb); color: white; border: none; box-shadow: var(--shadow); }
.btn.primary:hover { background: linear-gradient(135deg, var(--primary-600), #8d4bff); }
.btn.ghost { background: rgba(255,255,255,0.04); }
.btn.lg { padding: 14px 18px; font-weight: 700; }

.hero-art { display: grid; place-items: center; }
.waveform { display: grid; grid-auto-flow: column; gap: 6px; align-items: end; height: 160px; width: 100%; max-width: 420px; }
.waveform span { display: inline-block; width: 8px; height: 20px; background: linear-gradient(180deg, var(--accent), var(--primary)); border-radius: 6px; animation: pulse 1.2s ease-in-out infinite; opacity: 0.9; box-shadow: 0 6px 16px rgba(24,210,194,0.25); }
.waveform span:nth-child(odd) { animation-duration: 1s; }
.waveform span:nth-child(3n) { animation-duration: 1.4s; }
@keyframes pulse {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.4); }
}

@media (min-width: 900px) {
  .hero { padding: 92px 0 40px; }
  /* Keep a single centered column for a premium, focused hero */
  .hero-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 64px 0; text-align: center; }
.section h2 { font-size: 28px; margin: 0 0 18px; }
.section.alt { background: transparent; }

.grid.features { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 700px) { .grid.features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .grid.features { grid-template-columns: repeat(4, 1fr); } }

.grid.features { justify-items: center; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); text-align: center; }
.card h3 { margin: 2px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.step-badge { width: 28px; height: 28px; display: grid; place-items: center; background: var(--primary); color: white; border-radius: 999px; font-weight: 800; }

.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.bullets { display: grid; gap: 8px; justify-items: center; }
.bullets li { color: var(--muted); text-align: center; }

/* CTA */
.cta { padding: 64px 0; background: transparent; border-top: 1px solid rgba(255,255,255,0.06); }
.cta-inner { display: grid; gap: 10px; text-align: center; justify-items: center; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.2); }
.footer-grid { display: grid; gap: 14px; align-items: center; justify-items: center; text-align: center; }
.footer-grid .links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-grid .links a { color: var(--muted); text-decoration: none; }
.footer-grid .links a:hover { color: var(--text); }
.small { color: var(--muted); font-size: 14px; }

/* Newsletter signup */
.signup { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 16px 0 6px; }
.signup input[type="email"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: var(--text); outline: none; }
.signup input[type="email"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122,92,255,0.25); }
.status { min-height: 20px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.download-cta { margin-top: 10px; }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

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

/* Center the three-card row in the secondary section on desktop */
#secondary .grid.features {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
}
@media (max-width: 699px) {
  #secondary .grid.features { grid-template-columns: 1fr; }
}

/* Legal pages */
body.page-legal { min-height: 100vh; display: flex; flex-direction: column; }
main.legal-wrap { flex: 1 0 auto; }
.legal-content { display: grid; gap: 18px; text-align: left; }
.legal-content h1 { margin: 0 0 6px; font-size: 32px; }
.legal-content h2 { margin: 18px 0 8px; font-size: 22px; }
.legal-content h3 { margin: 12px 0 6px; font-size: 18px; }
.legal-meta { color: var(--muted); font-size: 14px; }
.legal-block { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.legal-block p { margin: 8px 0; color: var(--muted); }
.legal-list { color: var(--muted); padding-left: 18px; margin: 6px 0 0; display: grid; gap: 6px; }
