/* Sigma9 Landing — Cyberpunk static styles
 * Vanilla CSS only. All themes, animations, textures inline here.
 * Mobile-first, responsive, zero horizontal scroll.
 */

:root {
  --bg: #0a0a0c;
  --bg-deep: #04050b;
  --card: #111114;
  --card-border: #1f1f25;
  --text: #f0f0f5;
  --text-dim: #a7a7b2;
  --cyan: #00f0ff;
  --violet: #7a5cff;
  --magenta: #ff2bd6;
  --radius: 18px;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #05060c;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

/* Global containers */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

/* Scanlines texture — faint animated */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.035) 3px,
    rgba(255, 255, 255, 0.035) 5px
  );
  animation: scanlines 6s linear infinite;
  will-change: transform;
}

@keyframes scanlines {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@media (prefers-reduced-motion: reduce) {
  .scanlines,
  .neon-grid,
  .card,
  .store-badge,
  .wordmark::before,
  .wordmark::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Deep cyberpunk perspective grid + distant city lights (inspired by rainy neon nights) */
.neon-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.065) 1px, transparent 1px),
    linear-gradient(rgba(255, 43, 214, 0.045) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 43, 214, 0.12) 0%, transparent 70%);
  background-size: 42px 42px, 42px 42px, 140px 140px, 620px 620px;
  background-position: 0 0, 0 0, 0 0, 40% 70%;
  opacity: 0.85;
  transform: perspective(820px) rotateX(54deg) translateY(-22%);
  transform-origin: top;
}

/* Extra distant thin lines for city grid depth */
.neon-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to bottom, transparent 40%, rgba(0, 240, 255, 0.03) 42%, transparent 58%);
  background-size: 100% 210px;
  opacity: 0.6;
  pointer-events: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 60px;
  background-color: #05060c;
  background-image: url('assets/cyberpunk1.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}

.logo-img {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 42%; /* center the main S emblem */
  transition: filter 200ms ease;
  filter: drop-shadow(0 0 8px var(--cyan)) drop-shadow(0 0 20px var(--magenta)) drop-shadow(0 0 32px rgba(255, 43, 214, 0.5));
  animation: sigma-glow 4.5s ease-in-out infinite;
}

.logo:hover .logo-img {
  filter:
    drop-shadow(0 0 12px var(--cyan))
    drop-shadow(0 0 28px var(--magenta))
    drop-shadow(0 0 44px rgba(255, 43, 214, 0.65));
}

@keyframes sigma-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--cyan)) drop-shadow(0 0 20px var(--magenta)) drop-shadow(0 0 32px rgba(255, 43, 214, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 14px var(--cyan)) drop-shadow(0 0 30px var(--magenta)) drop-shadow(0 0 48px rgba(255, 43, 214, 0.7));
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-img {
    animation: none;
  }
}

.wordmark {
  position: relative;
  display: inline-block;
  z-index: 2;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* RGB-split glitch accent — subtle, infrequent, respects reduced motion */
.wordmark::before,
.wordmark::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wordmark::before {
  color: #ff2bd6;
  transform: translate(-2px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  z-index: -1;
  opacity: 0.75;
  animation: wordmark-glitch-before 7s steps(1) infinite;
}

.wordmark::after {
  color: #00f0ff;
  transform: translate(2px, 0);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  z-index: -1;
  opacity: 0.75;
  animation: wordmark-glitch-after 7s steps(1) infinite;
  animation-delay: -0.15s;
}

@keyframes wordmark-glitch-before {
  0%, 96% {
    transform: translate(-2px, 0);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  }
  97%, 98% {
    transform: translate(-6px, 1px);
    clip-path: polygon(0 8%, 100% 8%, 100% 40%, 0 40%);
  }
  99%, 100% {
    transform: translate(-2px, 0);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  }
}

@keyframes wordmark-glitch-after {
  0%, 96% {
    transform: translate(2px, 0);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  }
  97%, 98% {
    transform: translate(6px, -1px);
    clip-path: polygon(0 60%, 100% 60%, 100% 92%, 0 92%);
  }
  99%, 100% {
    transform: translate(2px, 0);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  }
}

@media (min-width: 480px) {
  .logo-img {
    width: 82px;
    height: 82px;
  }
  .wordmark { font-size: 56px; }
}

.tagline {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.18;
  max-width: 640px;
  margin: 0 auto 12px;
}

.sub {
  font-size: 15.5px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .tagline {
    font-size: 28px;
  }
  .sub {
    font-size: 16px;
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Store badges — pure CSS/SVG, non-functional, Coming soon */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #0f0f12;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.1;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  cursor: default;
  opacity: 0.95;
  user-select: none;
}

.store-badge[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.store-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.store-badge .badge-text small {
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

.store-badge .badge-text strong {
  font-size: 15px;
  font-weight: 600;
  margin: 1px 0;
}

.store-badge .badge-text em {
  font-size: 10px;
  color: var(--magenta);
  font-style: normal;
  font-weight: 500;
}

.store-badge:hover {
  /* disabled but for visual */
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.2);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--card-border);
}

.section h2 {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: -0.2px;
}

.section .lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
  .section h2 {
    font-size: 27px;
  }
  .section .lead {
    font-size: 16px;
  }
}

/* Why it's different — user benefit cards (4) */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--cyan) 25%, var(--card-border));
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(0, 240, 255, 0.08);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--cyan);
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.58;
}

/* Technical specs — grouped grid/sheet */
.specs {
  background: var(--bg-deep);
}

.spec-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .spec-groups {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
  }
}

.spec-group {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
}

.spec-group h3 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--magenta);
  font-weight: 600;
}

.spec-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-group li {
  font-size: 14.5px;
  padding: 6px 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-dim);
}

.spec-group li:first-child {
  border-top: none;
  padding-top: 0;
}

.spec-group code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(0,0,0,0.4);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.network-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.network-list li {
  padding: 5px 0;
}

/* Footer */
.footer {
  padding: 40px 0 60px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--card-border);
}

.footer .version {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--cyan);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.footer p {
  margin: 6px 0 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Utility */
.glow-cyan {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.glow-violet {
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.45);
}

/* Spec note + small text in groups */
.spec-group .note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
  opacity: 0.85;
  line-height: 1.4;
}

/* Footer store badges (smaller) */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 4px;
}

.store-badge.small {
  padding: 6px 12px;
  font-size: 12px;
  gap: 6px;
  border-radius: 8px;
}
.store-badge.small span {
  font-weight: 600;
}
.store-badge.small em {
  font-size: 10px;
  color: var(--magenta);
  margin-left: 4px;
}

/* Subtle animated glow pulse on the star logo (tasteful, respects reduced motion) */
.logo svg {
  animation: star-pulse 4.2s ease-in-out infinite;
}
@keyframes star-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--cyan)) drop-shadow(0 0 18px var(--magenta)); }
  50% { filter: drop-shadow(0 0 10px var(--cyan)) drop-shadow(0 0 26px var(--magenta)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo svg {
    animation: none;
  }
}

/* Ensure monospace everywhere for addresses/hashes/version */
.version,
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* === Enhanced cyberpunk atmosphere === */

/* Subtle vertical rain streaks (very faint, slow, tasteful) */
.rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: 
    linear-gradient(transparent 0%, rgba(180, 200, 255, 0.065) 48%, transparent 52%);
  background-size: 1px 180px;
  background-repeat: repeat;
  animation: rain-fall 1.1s linear infinite;
  opacity: 0.55;
}

@keyframes rain-fall {
  0% { background-position: 0 -120px; }
  100% { background-position: 0 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .rain {
    animation: none;
    background-image: none;
  }
}

/* Soft atmospheric fog / distant neon glow layer in hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,4,10,.78) 0%, rgba(5,6,12,.88) 55%, rgba(5,6,12,.97) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(2,3,8,.5) 100%),
    radial-gradient(ellipse at 50% 15%, rgba(0, 240, 255, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(255, 43, 214, 0.15) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}

/* Keep the grid behind the fog/overlay and content */
.neon-grid {
  z-index: 0;
}

/* Stronger neon rim on cards for rainy-night cyberpunk feel */
.card {
  background: color-mix(in srgb, var(--card) 96%, #000 4%);
  border: 1px solid color-mix(in srgb, var(--card-border) 70%, #1a1a22 30%);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.7);
}

.card:hover {
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(0, 240, 255, 0.18);
  border-color: color-mix(in srgb, var(--cyan) 38%, var(--card-border));
}

/* Slightly more atmospheric sections */
.specs {
  background: linear-gradient(180deg, #050508 0%, #020204 100%);
}

.spec-group {
  background: color-mix(in srgb, var(--card) 97%, #000 3%);
}

/* Gentle desktop text scaling — keeps mobile clean */
@media (min-width: 640px) {
  .card p,
  .spec-group li,
  .section .lead {
    font-size: 15.5px;
  }

  .spec-group li {
    font-size: 15px;
  }
}
