:root {
  --bg-deep: #050508;
  --bg-dark: #0a0a0f;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 242, 255, 0.2);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --accent-blue: #00f2ff;
  --accent-purple: #7000ff;
  --accent-glow: rgba(0, 242, 255, 0.4);

  --radius-tactical: 2px; /* Sharp technical edges */
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
}

@keyframes meshFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  background: radial-gradient(
      circle at 20% 30%,
      rgba(0, 242, 255, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(112, 0, 255, 0.08) 0%,
      transparent 40%
    ),
    linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
  background-size: 200% 200%;
  animation: meshFlow 20s ease infinite;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  overflow-x: hidden;
}

/* Tactical HUD Elements */
.hud-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  padding: 15px 0;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  text-shadow: 0 0 10px var(--accent-glow);
}

.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 10px;
  background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  opacity: 0.8;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-blue);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.cta-button {
  padding: 15px 40px;
  background: var(--accent-blue);
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  font-family: var(--font-mono);
  border: none;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--accent-glow);
}

/* Data Stats Scanner Animation */
.stats-banner {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 242, 255, 0.03);
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
  overflow: hidden;
  white-space: nowrap;
}

.stats-scroll {
  display: inline-block;
  animation: scrollLeft 30s linear infinite;
}

@keyframes scrollLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-md) 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}
h5 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}
h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
  margin: 0 0 var(--space-md) 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(10, 10, 18, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

main {
  padding: 0 0 64px;
}

.hero {
  padding: 120px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.76)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 1.6rem;
}

.meta {
  color: var(--faint);
  font-size: 0.95rem;
}

.section {
  padding: 64px 0;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 2.25rem;
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Aliases for existing page markup */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.4);
  background: linear-gradient(
    180deg,
    rgba(10, 132, 255, 0.95),
    rgba(10, 132, 255, 0.7)
  );
  box-shadow: 0 14px 44px var(--shadow);
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 60px rgba(10, 132, 255, 0.22);
}

.features,
.packs,
.download {
  padding: 72px 0;
}

.features,
.packs {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.download {
  text-align: center;
  background: radial-gradient(
    900px 420px at 50% 0%,
    rgba(10, 132, 255, 0.18),
    transparent 60%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.features h2,
.packs h2,
.download h2 {
  text-align: center;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 2.25rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: left;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.pack-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.1rem 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pack-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(10, 132, 255, 0.08);
}

.pack-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.pack-item h4 {
  color: var(--text);
  margin-bottom: 0.25rem;
}
.pack-item p {
  color: var(--faint);
  font-size: 0.95rem;
}

.app-stores {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.store-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(10, 132, 255, 0.22);
}

/* Support page */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: left;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.support-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.support-card h3 {
  margin-bottom: 0.4rem;
}
.support-card p {
  margin-bottom: 1.1rem;
}

.support-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.32);
  background: rgba(10, 132, 255, 0.12);
  color: var(--text);
  text-decoration: none;
}

.faq-section {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1.2rem;
}

.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-answer {
  color: var(--muted);
  margin-top: 0.55rem;
}

.contact-section {
  text-align: center;
  padding: 2.25rem 0;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-method {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  min-width: 220px;
}

.contact-method h4 {
  margin-bottom: 0.4rem;
}

/* Status page */
.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.status-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.status-indicator {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.status-healthy {
  border-color: rgba(48, 209, 88, 0.45);
  background: rgba(48, 209, 88, 0.12);
}

.status-warning {
  border-color: rgba(255, 214, 10, 0.45);
  background: rgba(255, 214, 10, 0.12);
}

.status-error {
  border-color: rgba(255, 69, 58, 0.45);
  background: rgba(255, 69, 58, 0.12);
}

.status-card h3 {
  margin-bottom: 0.4rem;
}
.status-card p {
  color: var(--muted);
}

.status-details {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.status-details h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.15rem;
}

.status-details h3:first-child {
  margin-top: 0;
}

.status-details p,
.status-details li {
  color: var(--muted);
}

.status-details ul {
  margin: 0.75rem 0 0.75rem 1.25rem;
}
.status-details li {
  margin: 0.35rem 0;
}

.system-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.system-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.system-name {
  color: var(--muted);
  font-weight: 600;
}
.system-status {
  color: rgba(48, 209, 88, 0.92);
  font-weight: 800;
}

/* Doc pages (Privacy/Terms/Disclaimers/Status) */
.doc h2 {
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.doc h2:first-of-type {
  margin-top: 0;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc ul {
  margin: 0.75rem 0 0.75rem 1.25rem;
}
.doc li {
  margin: 0.4rem 0;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.card p {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.88rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.4);
  background: linear-gradient(
    180deg,
    rgba(10, 132, 255, 0.95),
    rgba(10, 132, 255, 0.7)
  );
  box-shadow: 0 14px 44px var(--shadow);
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 60px rgba(10, 132, 255, 0.22);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.list {
  display: grid;
  gap: 0.75rem;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.list-item strong {
  color: var(--text);
}
.list-item span {
  color: var(--faint);
}

.notice {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.2);
  color: var(--muted);
}

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

footer {
  padding: 42px 0;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid var(--border);
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}

.copyright {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  text-align: center;
}

.footer-note {
  color: #e0e0e0;
  margin-top: 2rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--bg1);
  margin: 5% auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease-out;
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--muted);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

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

#modal-body {
  margin-top: 2rem;
}

#modal-body h2 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

#modal-body p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

#modal-body ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

#modal-body li {
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

#modal-body em {
  color: var(--faint);
  font-style: normal;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 112px 0 60px;
  }

  .modal-content {
    margin: 2% auto;
    padding: 1.5rem;
    width: 95%;
    max-height: 90vh;
  }

  #modal-body h2 {
    font-size: 1.5rem;
  }
}
