:root {
  --bg: #050914;
  --bg-soft: #081427;
  --card: rgba(10, 23, 42, 0.7);
  --card-strong: rgba(13, 30, 54, 0.86);
  --text: #f4f9ff;
  --muted: #9cb1c9;
  --cyan: #18e1ff;
  --blue: #3887ff;
  --line: rgba(106, 222, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(24, 225, 255, 0.22), transparent 26rem),
    radial-gradient(circle at 85% 12%, rgba(56, 135, 255, 0.22), transparent 30rem),
    linear-gradient(145deg, #020611 0%, var(--bg) 45%, #061527 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

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

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

.page-glow {
  position: fixed;
  z-index: -2;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.36;
  pointer-events: none;
}

.page-glow-one {
  top: 8rem;
  left: -8rem;
  background: #13dffb;
}

.page-glow-two {
  right: -10rem;
  bottom: 4rem;
  background: #2f73ff;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 52px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid rgba(24, 225, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 0 26px rgba(24, 225, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a {
  padding: 9px 15px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(24, 225, 255, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 44px;
  min-height: 640px;
  padding: 84px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: #c6d7ed;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-link,
.secondary-link,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-link {
  padding: 0 22px;
  color: #02101c;
  background: linear-gradient(135deg, var(--cyan), #63a7ff);
  box-shadow: 0 18px 46px rgba(24, 225, 255, 0.2);
}

.secondary-link {
  padding: 0 22px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.primary-link:hover,
.secondary-link:hover,
.store-button:hover {
  transform: translateY(-2px);
}

.download-panel {
  position: relative;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.download-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(24, 225, 255, 0.18), transparent 42%, rgba(56, 135, 255, 0.16));
  pointer-events: none;
}

.download-panel > * {
  position: relative;
}

.panel-label,
.panel-note {
  display: block;
  color: var(--muted);
}

.panel-label {
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

#downloadCount {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-shadow: 0 0 34px rgba(24, 225, 255, 0.36);
}

.apps-section {
  padding: 46px 0 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

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

.app-card {
  overflow: hidden;
  border: 1px solid rgba(106, 222, 255, 0.16);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(20px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.app-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(24, 225, 255, 0.72);
  background: var(--card-strong);
  box-shadow: 0 28px 80px rgba(2, 16, 32, 0.52), 0 0 34px rgba(24, 225, 255, 0.16);
}

.banner-wrap {
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.app-card:hover .banner-wrap img {
  transform: scale(1.04);
}

.card-body {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
}

.app-icon {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.card-body h3 {
  margin-bottom: 6px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.package {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.app-description {
  grid-column: 1 / -1;
  min-height: 72px;
  margin-bottom: 2px;
  color: #c1d2e8;
  line-height: 1.58;
}

.store-button {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 0 18px;
  color: var(--text);
  border: 1px solid rgba(24, 225, 255, 0.28);
  background: rgba(24, 225, 255, 0.1);
}

.store-button:hover {
  border-color: rgba(24, 225, 255, 0.8);
  box-shadow: 0 0 24px rgba(24, 225, 255, 0.16);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(1, 5, 14, 0.62);
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  align-items: start;
  gap: 34px;
  min-height: calc(100vh - 260px);
  padding: 84px 0 96px;
}

.contact-intro h1 {
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(106, 222, 255, 0.2);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  background: rgba(2, 8, 18, 0.56);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(24, 225, 255, 0.76);
  background: rgba(2, 8, 18, 0.74);
  box-shadow: 0 0 0 4px rgba(24, 225, 255, 0.1);
}

.contact-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  padding: 13px 14px;
  border-radius: 8px;
  line-height: 1.5;
}

.form-status.success {
  color: #d9fff2;
  border: 1px solid rgba(37, 255, 174, 0.26);
  background: rgba(37, 255, 174, 0.1);
}

.form-status.error {
  color: #ffe3e3;
  border: 1px solid rgba(255, 106, 106, 0.28);
  background: rgba(255, 106, 106, 0.1);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 108px;
  color: var(--muted);
}

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

.footer-inner p {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 860px) {
  .hero,
  .section-heading,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

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

@media (max-width: 620px) {
  .section-shell,
  .nav-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 10px 0;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    padding-inline: 8px;
    text-align: center;
  }

  .hero {
    gap: 30px;
    padding: 52px 0 54px;
  }

  h1 {
    font-size: clamp(3.3rem, 17vw, 4.8rem);
  }

  .hero-actions,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .download-panel {
    padding: 26px;
  }

  #downloadCount {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

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

  .card-body {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 18px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
  }

  .app-description {
    min-height: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
