:root {
  --bg-main: #0f111a;
  --bg-card: #181c2b;
  --bg-alt: #1e2438;
  --text-main: #e2e6f0;
  --text-muted: #8b93a8;
  --primary: #ff4d6d;
  --primary-hover: #ff708b;
  --accent: #5e6ad2;
  --accent-glow: rgba(94, 106, 210, 0.3);
  --border: #2a3149;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  background-color: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}
.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-desktop a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  padding: 6px 0;
  display: inline-block;
}
.nav-desktop a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Mobile Nav */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile {
  display: none;
  background: var(--bg-card);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  font-size: 15px;
  color: var(--text-main);
  padding: 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  transition: background 0.2s, color 0.2s;
}
.nav-mobile a:hover {
  background: var(--primary);
  color: #fff;
}

/* Hero */
.hero {
  padding: 40px 0 0;
  background: radial-gradient(circle at top right, rgba(94, 106, 210, 0.15), transparent 40%);
  position: relative;
}
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}
.hero-content h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}
.hero-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: var(--bg-alt);
  color: var(--text-main);
  text-align: center;
  gap: 6px;
}
.btn-primary {
  background: linear-gradient(135deg, #ff4d6d, #ff708b);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.5);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.hero-gallery {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  margin-bottom: 20px;
}
.hero-gallery img {
  width: 100%;
  max-width: 300px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}
.hero-gallery img:hover {
  transform: scale(1.02);
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.marquee-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(90deg, #ff4d6d, #5e6ad2, #ff4d6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
section {
  padding: 50px 0;
}
.bg-alt {
  background-color: var(--bg-card);
}
.bg-primary-tint {
  background: linear-gradient(180deg, var(--bg-main), var(--bg-alt));
}
.bg-accent-tint {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-main));
}
.bg-darker {
  background-color: #0b0d14;
}

h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
}
h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-main);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: -20px;
  margin-bottom: 30px;
}

/* Grid Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Card Style A */
.card-a {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.card-a:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.card-a img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-a .content {
  padding: 16px;
}
.card-a .content h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.card-a .content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Card Style B */
.card-b {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.card-b:hover {
  background: var(--bg-alt);
}
.card-b h3 {
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 10px;
}
.card-b p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Split Layout (Image + Text) */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .split-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .split-layout.reverse {
    flex-direction: row-reverse;
  }
  .split-layout .text-side {
    flex: 1;
  }
  .split-layout .img-side {
    width: 280px;
    flex-shrink: 0;
  }
  .split-layout .img-side img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    position: sticky;
    top: 90px;
  }
}
.split-layout .img-side img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}
.list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list-items li {
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-main);
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.list-items li:hover {
  border-left-color: var(--primary);
  background: var(--bg-main);
}

/* FAQ Style */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--border);
}
.faq-item h3 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Image Wall */
.image-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .image-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}
.image-wall img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s;
}
.image-wall img:hover {
  transform: scale(1.03);
}

/* Download Section */
.download-section {
  padding: 60px 0;
  background: radial-gradient(circle at center, rgba(94, 106, 210, 0.2), transparent 70%), var(--bg-main);
  text-align: center;
}
.download-section h2 {
  margin-bottom: 10px;
}
.download-section p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto 30px;
}
@media (min-width: 768px) {
  .download-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px 10px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}
.dl-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.15);
}
.dl-card .icon {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}
.dl-card span {
  font-size: 14px;
  font-weight: 600;
}
.steps-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
.steps-box h3 {
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}
.steps-box ol {
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
footer {
  background: #090a10;
  padding: 30px 0 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}
.copyright {
  line-height: 1.8;
}

/* Floating Download */
.floating-dl {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 28, 43, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 999;
  width: max-content;
  max-width: 90%;
}
.floating-dl img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.floating-dl .info {
  display: flex;
  flex-direction: column;
}
.floating-dl .info strong {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
}
.floating-dl .info span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.floating-dl .btn-small {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

/* Safari Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  width: 80%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-box p {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--text-main);
}
.modal-box .link-box {
  background: var(--bg-alt);
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
  margin-bottom: 16px;
  user-select: all;
}
.modal-box .btn-close {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 16px; }
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .hero-gallery { gap: 24px; }
  .hero-gallery img { height: 240px; }
  .image-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero-content h1 { font-size: 42px; }
  .hero-gallery img { height: 300px; max-width: 380px; }
}