:root {
  --color-bg: #05070f;
  --color-surface: rgba(16, 21, 36, 0.85);
  --color-surface-strong: rgba(16, 21, 36, 0.95);
  --color-primary: #ff4d4f;
  --color-secondary: #17c3b2;
  --color-accent: #f9a826;
  --color-text: #f3f5ff;
  --color-muted: #9aa2c1;
  --color-border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 24px 48px rgba(10, 13, 23, 0.35);
  --shadow-card: 0 16px 32px rgba(10, 13, 23, 0.4);
  --gradient-hero: linear-gradient(130deg, #09152e 0%, #120a24 50%, #270f32 100%);
  --gradient-card: linear-gradient(160deg, rgba(23, 195, 178, 0.12), rgba(255, 77, 79, 0.12));
  --gradient-banner: linear-gradient(90deg, rgba(255, 77, 79, 0.8), rgba(23, 195, 178, 0.8));
  --container-width: min(1180px, 90vw);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition-base: all 240ms ease;
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, rgba(15, 25, 56, 0.9), rgba(5, 7, 15, 0.95));
  min-height: 100vh;
}

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

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

p {
  line-height: 1.7;
  color: var(--color-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 42px;
  height: 42px;
}

.primary-nav {
  display: flex;
  gap: 24px;
}

.primary-nav a {
  font-size: 0.95rem;
  color: var(--color-muted);
  transition: var(--transition-base);
  padding: 8px 0;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  margin: 0 auto;
  transition: var(--transition-base);
}

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

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

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

.hero {
  padding: 120px 0 90px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-content > img {
  width: clamp(160px, 26vw, 360px);
  height: auto;
  justify-self: end;
}

.phone-frame {
  display: inline-block;
  padding: 14px;
  border-radius: 38px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(10, 13, 23, 0.45);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.hero-content .phone-frame {
  width: clamp(160px, 26vw, 360px);
  justify-self: end;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 2vw + 2rem, 3.6rem);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-app-logo {
  margin-bottom: 14px;
}

.hero-app-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.hero-text p {
  max-width: 520px;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cta-group .btn {
  width: 180px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #ff6163;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.2);
}

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

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.08);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
}

.hero-visual {
  position: relative;
}

.device-mockup {
  position: relative;
  padding: 22px;
  border-radius: 32px;
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  border: none;
  box-shadow: var(--shadow-card);
}

.device-mockup::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: none;
  pointer-events: none;
}

.device-mockup img {
  border-radius: 18px;
}

.features {
  padding: 110px 0 80px;
}

.news {
  padding: 110px 0 80px;
}

.article {
  padding: 110px 0 90px;
  background: rgba(10, 14, 24, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.article-wrap {
  max-width: 840px;
}

.article-header h2 {
  font-size: clamp(1.8rem, 1.4vw + 1.4rem, 2.2rem);
  margin-bottom: 10px;
  text-align: center;
}

.article-meta {
  display: flex;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
  justify-content: center;
}

.article-content {
  display: grid;
  gap: 14px;
}

.article-content h3 {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 1.25rem;
}

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

.article-content ul {
  margin: 0;
  padding-left: 18px;
  color: var(--color-muted);
}

.article-content li {
  margin: 6px 0;
}

.article-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  transition: var(--transition-base);
}

.article-tags a:hover,
.article-tags a:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
}

.news-media img {
  display: block;
  width: 100%;
  height: auto;
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
}

.news-body h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.news-body p {
  color: var(--color-muted);
  margin: 0;
}

.news-link {
  margin-top: 6px;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.85;
  transition: color 180ms ease, opacity 180ms ease;
}

.news-link:hover,
.news-link:focus {
  color: var(--color-primary);
  opacity: 1;
}

.section-heading {
  text-align: center;
  margin-bottom: 54px;
}

.section-heading h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.section-heading p {
  max-width: 540px;
  margin: 0 auto;
}

.section-heading .download-banner {
  display: block;
  margin: 14px auto 0;
  width: clamp(180px, 56vw, 560px);
  height: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 220ms ease, border-color 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.icon::before {
  font-size: 1.4rem;
}

.icon-shield::before {
  content: "🛡";
}

.icon-trophy::before {
  content: "🏆";
}

.icon-bolt::before {
  content: "⚡";
}

.icon-headset::before {
  content: "🎧";
}

.preview {
  padding: 110px 0 80px;
}

.preview-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.preview-media {
  justify-self: end;
}

.preview-text ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.preview-text li {
  position: relative;
  padding-left: 24px;
  color: var(--color-muted);
}

.preview-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 12px rgba(23, 195, 178, 0.6);
}

.preview-media .video-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

.preview-media .video-frame {
  margin: 0;
}

.preview-media .video-frame img {
  width: clamp(140px, 28vw, 360px);
  height: auto;
}
.video-play {
  position: absolute;
  inset: auto 50% 18px auto;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  transition: var(--transition-base);
}

.video-play:hover {
  background: rgba(0, 0, 0, 0.7);
}

.download {
  padding: 110px 0 90px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.download-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-soft);
}

.download-card .platform {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.download-card .platform img {
  width: 42px;
  height: 42px;
}

.download-card .hint {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.cta-banner {
  padding: 70px 0;
  text-align: center;
  background: var(--gradient-banner);
  margin: 0;
}

.cta-banner .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  color: #0a0f1c;
}

.cta-banner h2 {
  font-size: 2.1rem;
}

.cta-banner p {
  color: rgba(10, 15, 28, 0.72);
}

.cta-banner .btn-secondary {
  background: rgba(10, 15, 28, 0.12);
  color: #0a0f1c;
  border-color: rgba(10, 15, 28, 0.16);
}

.faq {
  padding: 110px 0 90px;
}

.faq-grid {
  display: grid;
  gap: 18px;
}

.faq details {
  background: rgba(10, 14, 24, 0.92);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 24px;
  transition: border-color 180ms ease;
}

.faq details[open] {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  color: var(--color-text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin-top: 12px;
}

.site-footer {
  background: #05070f;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-bottom {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 18px;
}

.floating-download {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: none;
}

.floating-download.visible {
  display: block;
}

.floating-download .btn {
  padding: 16px 28px;
}

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

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

  .preview-content,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .preview-media {
    justify-self: center;
  }

  .preview-text {
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-content > img {
    justify-self: center;
    width: clamp(160px, 48vw, 360px);
  }

  .hero-content .phone-frame {
    justify-self: center;
    width: clamp(160px, 48vw, 360px);
  }

  /* Center hero title and app logo on mobile, keep desktop unchanged */
  .hero-text {
    text-align: center;
  }

  .hero-app-logo img {
    margin: 0 auto;
  }
}

@media (max-width: 840px) {
  .primary-nav {
    position: absolute;
    inset: 68px 16px auto;
    flex-direction: column;
    background: rgba(5, 7, 15, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: var(--transition-base);
  }

  .primary-nav.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header .container {
    padding: 18px 8px;
  }

  .hero {
    padding-top: 100px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(92vw, 100%);
  }

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

  .cta-group {
    width: 100%;
  }

  .cta-group .btn {
    flex: 1;
    width: auto;
  }

  .features-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: clamp(2.1rem, 6vw, 2.8rem);
  }

  .site-header {
    position: fixed;
    width: 100%;
  }

  .preview {
    padding-top: 90px;
  }

  .floating-download {
    display: block;
  }
}

@media (max-width: 420px) {
  .device-mockup {
    padding: 16px;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  .cta-banner .btn {
    width: 100%;
  }
}

