:root {
  --bg-main: #0f111a;
  --bg-sec: #171926;
  --bg-alt: #1e2235;
  --text-main: #e2e4f0;
  --text-sub: #9ba0b8;
  --primary: #ff3366;
  --secondary: #ff9933;
  --accent: #33ccff;
  --purple: #aa66ff;
  --green: #33ff99;
  --border: #2d324d;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, 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;
  padding-bottom: 70px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: 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: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 32px;
  border-radius: 4px;
}
.brand span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}
.nav-links {
  display: none;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  color: var(--text-sub);
  font-size: 0.9rem;
  transition: color 0.3s, transform 0.3s;
}
.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
.mobile-menu-btn {
  display: block;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  background: var(--bg-sec);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 12px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  color: var(--text-sub);
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* Hero */
.hero {
  padding: 40px 0 20px;
  background: linear-gradient(180deg, var(--bg-sec) 0%, var(--bg-main) 100%);
  position: relative;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}
.hero-text h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff, var(--text-sub));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-all;
}
.hero-text p {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-tags span {
  background: var(--bg-alt);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: opacity 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.9; transform: scale(1.02); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.hero-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.hero-gallery img {
  border-radius: var(--radius);
  object-fit: cover;
  height: 200px;
  width: 100%;
  border: 1px solid var(--border);
}

/* Marquee */
.marquee-wrap {
  background: var(--bg-alt);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-text {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: scrollText 15s linear infinite;
  padding-left: 100%;
}
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Sections Common */
.section {
  padding: 40px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.section-head h2 {
  font-size: 1.4rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}
.section-head p {
  color: var(--text-sub);
  font-size: 0.85rem;
}

/* Cards */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--bg-sec);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card h3 { font-size: 1.1rem; color: var(--accent); margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-sub); }
.card.featured { border-left: 4px solid var(--primary); }

/* Split Layout */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.split-text { flex: 1; width: 100%; }
.split-img { flex: 1; width: 100%; }
.split-img img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}
.list-items { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.list-item {
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.list-item span.num {
  color: var(--primary);
  font-weight: 700;
  font-family: monospace;
}
.list-item .text { color: var(--text-sub); flex: 1; }
.list-item .text strong { color: var(--text-main); display: block; margin-bottom: 4px; }

/* Q&A */
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-item {
  background: var(--bg-sec);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qa-item summary {
  padding: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  color: var(--text-main);
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after {
  content: '+';
  color: var(--primary);
  font-size: 1.2rem;
}
.qa-item[open] summary::after { content: '-'; }
.qa-item p {
  padding: 16px;
  color: var(--text-sub);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.step-card {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--purple);
  position: relative;
}
.step-card .step-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(170, 102, 255, 0.2);
  position: absolute;
  top: 10px;
  right: 16px;
}
.step-card h3 { color: var(--secondary); font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-sub); }

/* Gallery Wall */
.gallery-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.gallery-wall img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Download Section */
.download-area {
  background: linear-gradient(135deg, var(--bg-sec) 0%, #1a1a2e 100%);
  padding: 40px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  text-align: center;
  margin: 30px 0;
}
.download-area h2 { font-size: 1.5rem; margin-bottom: 12px; color: #fff; }
.download-area p { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.download-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.download-btns .btn { min-width: 120px; }
.download-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-sub);
  background: var(--bg-main);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* Floating Bar */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: rgba(23, 25, 38, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--primary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(255, 51, 102, 0.15);
}
.float-info { display: flex; align-items: center; gap: 10px; flex: 1; overflow: hidden; }
.float-info img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.float-text { display: flex; flex-direction: column; }
.float-text strong { font-size: 0.9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-text span { font-size: 0.7rem; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 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-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-sec);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.modal-box p { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 16px; }
.copy-link-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  word-break: break-all;
  margin-bottom: 16px;
  user-select: all;
}
.modal-close {
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  padding: 30px 0 20px;
  color: var(--text-sub);
  font-size: 0.8rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links a { color: var(--text-sub); }
.footer-links a:hover { color: var(--primary); }
.footer-copy p { margin-bottom: 6px; }
.footer-copy time { color: var(--text-sub); font-size: 0.75rem; }
.disclaimer { font-size: 0.75rem; color: #555; margin-top: 10px; }

/* About details */
.about-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.about-details summary {
  font-size: 0.8rem;
  color: var(--text-sub);
  cursor: pointer;
  list-style: none;
  outline: none;
}
.about-details summary::-webkit-details-marker { display: none; }
.about-details summary:hover { color: var(--primary); }
.about-content {
  padding-top: 12px;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-content a {
  color: var(--text-sub);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-content a:hover { color: var(--primary); }

/* Media Queries */
@media (min-width: 768px) {
  .hero-content { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; }
  .hero-gallery { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
  .hero-gallery img { height: 100%; min-height: 140px; }
  .hero-gallery img:first-child { grid-column: 1 / 2; grid-row: 1 / 3; }
  .hero-gallery img:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  .hero-gallery img:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .split-layout { flex-direction: row; gap: 40px; }
  .split-layout.reverse { flex-direction: row-reverse; }
  .split-img img { height: 100%; max-height: 400px; object-fit: cover; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-links { flex-direction: column; }
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}
@media (min-width: 1024px) {
  .hero-text h1 { font-size: 2.4rem; }
  .hero-gallery img:first-child { min-height: 280px; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-wall { grid-template-columns: repeat(3, 1fr); }
  .gallery-wall img { height: 260px; }
}