:root {
  --bg-main: #121212;
  --bg-card: #1e1e1e;
  --bg-alt: #252525;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent: #ff4757;
  --accent-grad: linear-gradient(90deg, #ff4757, #ffa502);
  --border: #333;
  --radius: 12px;
  --transition: 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 70px;
}

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

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

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

.brand img {
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background-color: var(--accent);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(255, 71, 87, 0.1);
}

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.hero-images img {
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  width: 100%;
}

.hero-images img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

/* Marquee */
.marquee {
  background: var(--bg-card);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
}

.marquee-content span {
  font-size: 1.1rem;
  font-weight: bold;
  margin-right: 40px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main Sections */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.section-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 20px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Grid Layouts */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card-item {
  background: var(--bg-alt);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card-item:hover {
  border-color: var(--accent);
}

.card-item h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.card-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Split Layout */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.split-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split-content .list-item {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.split-content .list-item::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.faq-q {
  padding: 16px;
  font-weight: bold;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-a {
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Final Download */
.final-download {
  text-align: center;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a1a1a 100%);
  border: 1px solid var(--accent);
  padding: 40px 20px;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.final-download h2 {
  color: #fff;
  margin-bottom: 10px;
}

.final-download p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.install-steps {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 30px;
  background: rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 8px;
}

.install-steps h3 {
  color: #fff;
  margin-bottom: 12px;
}

.install-steps ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.install-steps li {
  margin-bottom: 8px;
}

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 1000;
  white-space: nowrap;
}

.floating-download img {
  height: 28px;
  border-radius: 4px;
}

.floating-download span {
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-nav {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
}

.modal-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.modal-content .link-box {
  background: var(--bg-alt);
  padding: 12px;
  border-radius: 8px;
  word-break: break-all;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
  user-select: all;
}

/* Desktop / Tablet Breakpoints */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
  }
  .hero-content {
    flex: 1;
    text-align: left;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    margin-left: 0;
  }
  .download-btns {
    justify-content: flex-start;
  }
  .hero-images {
    flex: 1;
    max-width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-images img:first-child {
    grid-column: auto;
    aspect-ratio: 3/4;
  }
  
  .grid-cards {
    grid-template-columns: 1fr 1fr;
  }
  
  .split-layout {
    flex-direction: row;
    align-items: center;
  }
  .split-image {
    flex: 1;
  }
  .split-content {
    flex: 1;
  }
  
  .split-layout.reverse {
    flex-direction: row-reverse;
  }
  
  .nav-links {
    overflow-x: visible;
  }
}

@media (min-width: 1024px) {
  .grid-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .section-block {
    padding: 40px;
  }
}