:root {
  --bg-color: #0f0f11;
  --text-main: #f2f2f5;
  --text-muted: #9e9eaa;
  --brand-color: #ff3b5c;
  --brand-hover: #e62e4d;
  --card-bg: #1c1c22;
  --border-color: #2d2d35;
  --radius: 12px;
}
* {
  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-color);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 80px; /* for floating button */
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-color);
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background-color: #2a2a30;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.1rem;
}
.logo-wrap img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
}
nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}
nav.active {
  display: block;
}
nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
nav ul li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-main);
  border-bottom: 1px solid #222;
  transition: background 0.2s;
}
nav ul li a:hover {
  background-color: #222;
}
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  nav {
    display: block;
    position: static;
    width: auto;
    background: none;
    border: none;
    padding: 0;
  }
  nav ul {
    flex-direction: row;
    gap: 20px;
  }
  nav ul li a {
    padding: 8px 0;
    border: none;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  nav ul li a:hover {
    background: none;
    color: var(--brand-color);
  }
}

/* Hero */
.hero {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-text {
  flex: 1;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-main);
}
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}
.btn-primary {
  background-color: var(--brand-color);
  color: #fff;
  flex: 1;
  min-width: 140px;
}
.btn-primary:hover {
  background-color: var(--brand-hover);
}
.btn-secondary {
  background-color: #2a2a30;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  flex: 1;
  min-width: 140px;
}
.btn-secondary:hover {
  background-color: #3a3a42;
}
.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-gallery { grid-template-columns: repeat(3, 1fr); }
  .hero-gallery img:first-child { grid-column: auto; aspect-ratio: 3/4; }
}
@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    align-items: center;
    padding: 80px 20px;
  }
  .hero-text { flex: 1.2; padding-right: 40px; }
  .hero-gallery { flex: 1; display: flex; height: 400px; }
  .hero-gallery img { width: 33.33%; object-fit: cover; }
}

/* Sections */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-align: center;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grids */
.grid {
  display: grid;
  gap: 20px;
}
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--brand-color);
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.card .meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .meta img {
  height: 24px;
  width: 24px;
  border-radius: 50%;
}
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Media List */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.media-item {
  display: flex;
  gap: 20px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}
.media-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.media-content {
  flex: 1;
}
.media-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.media-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .media-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .media-item {
    flex-direction: column;
  }
  .media-item img {
    width: 100%;
    height: 200px;
  }
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 16px;
}
.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
}
.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-main);
}
.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .faq-grid { grid-template-columns: 1fr 1fr; }
}

/* Download Section */
.download-section {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  padding: 80px 20px;
}
.download-section p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Floating Button */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-color);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(255, 59, 92, 0.4);
  z-index: 99;
  font-weight: bold;
  transition: transform 0.2s, background 0.2s;
}
.floating-download:hover {
  transform: translateX(-50%) scale(1.05);
  background-color: var(--brand-hover);
}
.floating-download img {
  height: 24px;
  width: 24px;
  border-radius: 50%;
}

/* Footer */
footer {
  padding: 40px 20px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: #666;
}
footer p { margin-bottom: 10px; }
footer a { color: #888; }
footer time { color: #555; }

details.site-about {
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
  cursor: pointer;
}
details.site-about summary {
  font-size: 0.85rem;
  color: #888;
  cursor: pointer;
  outline: none;
  list-style: none;
}
details.site-about summary::-webkit-details-marker { display: none; }
details.site-about summary:hover { color: var(--brand-color); }
.about-content {
  margin-top: 15px;
  padding: 15px;
  background-color: #1a1a1f;
  border-radius: 8px;
  line-height: 1.8;
}
.about-content a {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.about-content a:hover {
  color: var(--brand-color);
}