:root {
  --bg: #07111f;
  --bg-soft: #0d1830;
  --surface: rgba(15, 24, 45, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #a9b7d3;
  --primary: #61a8ff;
  --secondary: #7a7dff;
  --accent: #5ce1e6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --container: 1180px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(97, 168, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(122, 125, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #06101d 0%, #091426 40%, #060b15 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

ul {
  padding: 0;
  list-style: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

.about.section {
  padding-top: 48px;
  padding-bottom: 32px;
}

.apps.section {
  padding-bottom: 32px;
}

.stats.section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.cta.section {
  padding-top: 32px;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.65;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -60px;
  background: radial-gradient(circle, rgba(92, 225, 230, 0.5), rgba(92, 225, 230, 0));
}

.orb-2 {
  width: 480px;
  height: 480px;
  right: -120px;
  top: 180px;
  background: radial-gradient(circle, rgba(122, 125, 255, 0.45), rgba(122, 125, 255, 0));
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  font-weight: 600;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  color: #07111f;
  box-shadow: 0 18px 32px rgba(92, 225, 230, 0.2);
}

.btn-secondary,
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-xs {
  padding: 0.62rem 0.9rem;
  font-size: 0.86rem;
}

.hero {
  padding-top: calc(var(--header-height) + 70px);
}

.hero-grid,
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  text-align: center;
}

.about-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.hero h1,
.section-heading h2,
.about h2,
.cta-panel h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.about-copy p,
.app-card p,
.footer-brand p {
  color: var(--muted);
}

.section-heading p {
  margin-top: 0.8rem;
}

.about-copy p {
  margin-top: 0.9rem;
}

.hero-text {
  margin-top: 1.1rem;
}

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

.app-metric {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8e4ff;
  font-size: 0.88rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 3rem;
}

.section-heading h2,
.about h2,
.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.apps-grid,
.stats-grid,
.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.apps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card,
.stat-card,
.about-panel,
.cta-panel {
  border-radius: var(--radius);
}

.app-card,
.stat-card {
  padding: 1.4rem;
}

.app-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 35%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.app-card:hover::before {
  opacity: 1;
}

.app-card:hover,
.stat-card:hover,
.cta-panel:hover {
  transform: translateY(-4px);
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-icon-wrap {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.app-card h3,
.site-footer h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.15rem;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.1rem;
}

.app-actions .btn {
  min-width: 0;
}

.about-panel {
  padding: 1.75rem;
}

.about-list {
  display: grid;
  gap: 1rem;
}

.about-list div {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
}

.about-list span {
  display: block;
  color: var(--muted);
  margin-top: 0.3rem;
}

.stat-card {
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

.cta-panel {
  padding: 3rem;
  text-align: center;
}

.cta-panel .btn {
  margin-top: 1.4rem;
}

.site-footer {
  padding: 1rem 0 2.25rem;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.footer-bottom {
  padding-top: 1rem;
  color: var(--muted);
}

.nav-toggle,
.back-to-top {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1080px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .footer-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section {
    padding: 88px 0;
  }

  .nav-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--text);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 8px);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(8, 15, 27, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero-grid,
  .about-grid,
  .stats-grid,
  .footer-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    display: grid;
    place-items: center;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 15, 27, 0.9);
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
  }

  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .hero h1,
  .section-heading h2,
  .about h2,
  .cta-panel h2 {
    font-size: 2.2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-panel {
    padding: 2rem 1.2rem;
  }
}
