/* ==========================================================================
   Lunavex Software — Official Website Stylesheet
   Visual Identity: Premium Dark Cinematic | Cyan #00DDF2 | Near-Black Navy
   ========================================================================== */

:root {
  /* Core Palette */
  --bg-deep: #050811;
  --bg-base: #080d1a;
  --bg-surface: #0e1526;
  --bg-surface-elevated: #141e35;
  --bg-glass: rgba(14, 21, 38, 0.78);

  /* Accent */
  --cyan: #00ddf2;
  --cyan-bright: #5cf2ff;
  --cyan-dim: rgba(0, 221, 242, 0.14);
  --cyan-border: rgba(0, 221, 242, 0.28);
  --cyan-glow: rgba(0, 221, 242, 0.22);

  /* Text */
  --text-primary: #f1f5fb;
  --text-secondary: #a5b4cc;
  --text-muted: #7384a0;

  /* Borders & Semantic */
  --border-subtle: rgba(165, 180, 204, 0.12);
  --border-strong: rgba(165, 180, 204, 0.22);
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.35);
  --warning-text: #fcd34d;

  /* Layout & Radii */
  --container-max: 1160px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 75% 45% at 50% -10%, rgba(0, 221, 242, 0.11), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 25%, rgba(0, 221, 242, 0.05), transparent 65%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--cyan-bright);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breathing Glow Animation */
@keyframes breathingGlow {
  0%, 100% {
    box-shadow: 0 0 24px rgba(0, 221, 242, 0.14), 0 0 60px rgba(0, 221, 242, 0.06);
    border-color: rgba(0, 221, 242, 0.28);
  }
  50% {
    box-shadow: 0 0 36px rgba(0, 221, 242, 0.28), 0 0 90px rgba(0, 221, 242, 0.12);
    border-color: rgba(0, 221, 242, 0.52);
  }
}

.breathing-glow {
  animation: breathingGlow 5.5s ease-in-out infinite;
}

/* Pre-Launch Status Banner */
.prelaunch-banner {
  background: linear-gradient(90deg, rgba(0, 221, 242, 0.1), rgba(14, 21, 38, 0.95), rgba(0, 221, 242, 0.1));
  border-bottom: 1px solid var(--cyan-border);
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.prelaunch-banner strong {
  color: var(--cyan);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text-primary);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.05rem;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  text-align: center;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(0, 221, 242, 0.25);
}

.btn-primary:hover {
  background: var(--cyan-bright);
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(0, 221, 242, 0.4);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--cyan-border);
  color: var(--cyan-bright);
  transform: translateY(-1px);
}

.btn-disabled,
.btn[aria-disabled="true"] {
  background: rgba(0, 221, 242, 0.12);
  color: var(--cyan-bright);
  border: 1px solid var(--cyan-border);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  background: rgba(0, 221, 242, 0.15);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

/* Sections */
section {
  padding: 5.25rem 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  margin: 0;
}

/* Hero */
.hero {
  padding: 5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-slogan {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 1rem;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-meta span strong {
  color: var(--text-primary);
}

/* Device Mockup / Mascot Showcase */
.hero-visual {
  position: relative;
}

.device-frame {
  background: linear-gradient(165deg, var(--bg-surface-elevated), var(--bg-base));
  border: 1px solid var(--cyan-border);
  border-radius: 28px;
  padding: 1.5rem;
  position: relative;
}

.device-screen {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.device-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mascot-slot {
  margin: 1.5rem auto;
  width: 140px;
  height: 140px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 45%, rgba(0, 221, 242, 0.2), rgba(8, 13, 26, 0.9));
  border: 1px dashed var(--cyan-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  gap: 0.5rem;
}

.mascot-slot span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.player-preview-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.progress-track {
  height: 4px;
  background: rgba(165, 180, 204, 0.18);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.6rem 0 0.4rem;
}

.progress-fill {
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  border-radius: 99px;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Screenshots Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.screenshot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screenshot-placeholder {
  aspect-ratio: 9 / 16;
  max-height: 360px;
  background: linear-gradient(180deg, #0c1428 0%, #060a14 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  position: relative;
}

.screenshot-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.screenshot-caption {
  padding: 1.15rem 1.25rem;
}

.screenshot-caption h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.screenshot-caption p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Pricing */
.pricing-card {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(170deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.price-amount {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.price-term {
  color: var(--cyan);
  font-weight: 600;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.check-list li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 800;
  flex-shrink: 0;
}

/* Notice / Owner Approval Callouts */
.notice-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

.notice-box strong {
  color: var(--warning-text);
}

.info-box {
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.faq-question:hover {
  color: var(--cyan-bright);
}

.faq-icon {
  color: var(--cyan);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq-item[data-open="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.4rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item[data-open="true"] .faq-answer {
  display: block;
}

/* Document / Supporting Pages */
.page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.doc-content h2 {
  margin-top: 2.5rem;
  font-size: 1.45rem;
}

.doc-content h3 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
}

.doc-content p,
.doc-content li {
  color: var(--text-secondary);
}

.doc-content ul,
.doc-content ol {
  padding-left: 1.35rem;
}

.doc-content li {
  margin-bottom: 0.5rem;
}

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

/* Specs Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.spec-table th {
  color: var(--text-primary);
  font-weight: 600;
  width: 34%;
  background: rgba(255, 255, 255, 0.02);
}

.spec-table td {
  color: var(--text-secondary);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  section {
    padding: 3.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .grid-3,
  .grid-2,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 1.75rem;
  }

  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    padding-bottom: 0.25rem;
    border-bottom: 0;
  }
}

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

  .breathing-glow {
    animation: none;
    box-shadow: 0 0 24px rgba(0, 221, 242, 0.18);
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
