:root {
  --bg: #070707;
  --bg-2: #0d0d0f;
  --panel: rgba(20, 18, 18, 0.72);
  --stroke: rgba(255, 40, 40, 0.16);
  --red: #ff1f1f;
  --red-2: #e50914;
  --red-glow: rgba(255, 31, 31, 0.45);
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: var(--red); text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 15% 15%, rgba(255, 31, 31, 0.08), transparent 70%),
    radial-gradient(40% 50% at 85% 25%, rgba(230, 9, 20, 0.07), transparent 75%),
    radial-gradient(60% 50% at 50% 110%, rgba(255, 122, 92, 0.06), transparent 70%);
  animation: drift 28s ease-in-out infinite alternate;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), #ff7a5c, var(--red-2));
  box-shadow: 0 0 14px var(--red-glow);
  transition: width 0.08s linear;
}

.accent {
  background: linear-gradient(120deg, var(--red) 20%, #ff7a5c 60%, var(--red-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 7, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-orbit {
  width: 34px;
  height: 34px;
  color: var(--red);
  animation: spin 16s linear infinite;
  filter: drop-shadow(0 0 8px var(--red-glow));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}

.brand-name em { font-style: normal; color: var(--red); }

.nav { display: flex; gap: 26px; }

.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--red); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - 63px);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  pointer-events: none;
}

.aurora-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(255, 31, 31, 0.16), transparent 60%),
    radial-gradient(40% 35% at 30% 40%, rgba(255, 122, 92, 0.1), transparent 70%),
    radial-gradient(45% 40% at 75% 60%, rgba(230, 9, 20, 0.12), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.orbit-system {
  position: relative;
  width: min(680px, 88vw);
  aspect-ratio: 1;
  animation: breathe 9s ease-in-out infinite;
}

.halo {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 31, 31, 0.08), transparent 55%);
  animation: halo-pulse 6s ease-in-out infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  animation: spin linear infinite;
}

.ring::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb3a8, var(--red) 55%, #5c0408);
  box-shadow: 0 0 14px var(--red-glow);
}

.ring-1 {
  inset: 2%;
  border: 1px dashed rgba(255, 31, 31, 0.35);
  animation-duration: 40s;
}

.ring-1::before { top: 12%; left: 28%; width: 10px; height: 10px; }

.ring-2 {
  inset: 12%;
  border: 1px solid rgba(255, 31, 31, 0.22);
  animation-duration: 26s;
  animation-direction: reverse;
}

.ring-2::before { top: 62%; left: 8%; width: 16px; height: 16px; }

.ring-3 {
  inset: 22%;
  border: 1px dashed rgba(255, 122, 92, 0.4);
  animation-duration: 18s;
}

.ring-3::before { top: 10%; right: 16%; width: 8px; height: 8px; }

.ring-4 {
  inset: 32%;
  border: 1px solid rgba(230, 9, 20, 0.35);
  animation-duration: 12s;
  animation-direction: reverse;
}

.ring-4::before { bottom: 12%; left: 18%; width: 12px; height: 12px; }

.ring-5 {
  inset: 40%;
  border: 1px dashed rgba(255, 31, 31, 0.5);
  animation-duration: 8s;
}

.ring-5::before {
  top: 20%;
  right: 24%;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 35% 35%, #ffd9d2, #ff7a5c 60%, #4a0a10);
  box-shadow: 0 0 12px rgba(255, 122, 92, 0.7);
}

.core-group {
  position: absolute;
  inset: 44%;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff6a50, var(--red) 45%, #3d0206);
  box-shadow: 0 0 45px var(--red-glow), 0 0 120px rgba(230, 9, 20, 0.35);
  animation: pulse 3.2s ease-in-out infinite;
}

.core-flare {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 92, 0.4), transparent 55%);
  animation: flare 4.5s ease-in-out infinite;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 90px 70px;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.5em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 18px;
  animation: fade-up 0.9s ease both;
}

.title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-shadow: 0 0 40px rgba(255, 31, 31, 0.35);
  animation: fade-up 0.9s 0.12s ease both;
}

.subtitle {
  max-width: 620px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: 1.05rem;
  animation: fade-up 0.9s 0.24s ease both;
}

.subtitle strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.9s 0.36s ease both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
  animation: fade-up 0.9s 0.48s ease both;
}

.hero-stats div { text-align: center; }

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--red);
  text-shadow: 0 0 18px var(--red-glow);
}

.hero-stats span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
  cursor: pointer;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn:hover { transform: translateY(-2px); }

.btn-download {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  box-shadow: 0 4px 22px var(--red-glow);
}

.btn-download:hover { box-shadow: 0 8px 34px rgba(255, 31, 31, 0.65); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline:hover { border-color: var(--red); color: var(--red); box-shadow: 0 0 18px rgba(255, 31, 31, 0.2); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-sm { padding: 9px 14px; font-size: 0.82rem; }

.card-actions { display: flex; }

/* ---------- Apps ---------- */

.apps, .about { position: relative; z-index: 1; padding-block: 80px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.2em;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 10px;
  background-image: linear-gradient(120deg, var(--text), var(--muted) 50%, var(--text));
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  will-change: background-position;
}

.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  perspective: 1200px;
}

.card {
  position: relative;
  background: linear-gradient(160deg, var(--panel), rgba(10, 10, 12, 0.85));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 26px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.25s, box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}

.card.visible { opacity: 1; transform: translateY(0); }

.card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -35%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 31, 31, 0.14), transparent 65%);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 31, 31, 0.6), transparent 30%, transparent 70%, rgba(255, 122, 92, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover::after { opacity: 1; }

.card:hover {
  border-color: rgba(255, 31, 31, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 31, 31, 0.2);
}

.card-icon {
  transition: transform 0.4s ease;
}

.card:hover .card-icon {
  transform: rotate(8deg) scale(1.06);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
}

.card-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 31, 31, 0.22), rgba(20, 5, 6, 0.9));
  border: 1px solid rgba(255, 40, 40, 0.3);
  box-shadow: inset 0 0 18px rgba(255, 31, 31, 0.15);
}

.card-icon svg { width: 27px; height: 27px; fill: none; stroke: var(--red); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.card-title-wrap { min-width: 0; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 2px 10px;
}

.version-pill {
  margin-left: auto;
  flex: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(255, 31, 31, 0.1);
  border: 1px solid rgba(255, 31, 31, 0.35);
  border-radius: 999px;
  padding: 4px 11px;
  animation: pulse-soft 2.6s ease-in-out infinite;
}

.card-desc { color: var(--muted); font-size: 0.93rem; margin-bottom: 16px; position: relative; }

.card-feats {
  list-style: none;
  margin-bottom: 22px;
  position: relative;
}

.card-feats li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 0.87rem;
  color: #d6d6d6;
  padding-block: 4px;
}

.card-feats li svg { width: 13px; height: 13px; flex: none; transform: translateY(2px); stroke: var(--red); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
}

.card-actions .btn-download { grid-column: 1 / -1; }

.dl-hint {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.05em;
}

.dl-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  position: relative;
  flex-wrap: wrap;
}

.dl-foot svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: translateY(2px); }

.downloads {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #7cf57c;
}

.chip-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #33e033;
  box-shadow: 0 0 8px #33e033;
  animation: pulse 2s ease-in-out infinite;
}

/* ---------- About ---------- */

.about-card {
  background: linear-gradient(160deg, var(--panel), rgba(10, 10, 12, 0.85));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 34px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

.about-card p + p { margin-top: 14px; }

.about-card strong { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--stroke); padding-block: 28px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Animations ---------- */

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 31, 31, 0.25); }
  50% { box-shadow: 0 0 18px rgba(255, 31, 31, 0.6); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

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

@keyframes drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); opacity: 0.85; }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
}

@keyframes halo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes flare {
  0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.15) rotate(180deg); opacity: 1; }
}

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

.hero {
  min-height: calc(100vh - 63px);
  min-height: calc(100svh - 63px);
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .apps, .about { padding-block: 64px; }
  .hero-inner { padding-block: 76px 60px; }
}

@media (max-width: 600px) {
  .hero-bg { opacity: 0.72; }
  .orbit-system { width: 120vw; max-width: none; }
  .brand-name { letter-spacing: 0.08em; }
}

@media (max-width: 480px) {
  .nav { gap: 14px; }
  .nav a:last-child { display: none; }
  .brand-name { font-size: 0.85rem; }
  .brand-orbit { width: 30px; height: 30px; }
  .card-actions { grid-template-columns: 1fr; }
  .card-actions .btn-download { grid-column: auto; }
  .card { padding: 20px; }
  .card-feats { margin-bottom: 18px; }
  .about-card { padding: 24px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 360px; }
  .hero-stats { gap: 20px; }
  .hero-stats strong { font-size: 1.1rem; }
  .subtitle { font-size: 0.98rem; }
  .section-sub { margin-bottom: 36px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
}
/* ---- phone fixes ---- */
html, body { overflow-x: hidden; overflow-x: clip; }
.card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-actions .btn { min-width: 0; }
@media (max-width: 480px) {
  .card-actions { grid-template-columns: minmax(0, 1fr); }
  .card-actions .btn { white-space: normal; flex-wrap: wrap; text-align: center; }
  .card-head { align-items: flex-start; }
  .card-title-wrap { flex: 1 1 0; }
  .card-tag { border-radius: 8px; letter-spacing: 0.08em; }
  .version-pill { margin-top: 4px; }
}
@media (max-width: 360px) {
  .card { padding: 16px; }
  .card-head { gap: 10px; }
  .card-icon { width: 44px; height: 44px; }
  .card-title { font-size: 1rem; }
}
