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

:root {
  --bg: #0b0e14;
  --bg-alt: #121820;
  --surface: #1a2330;
  --surface-hover: #243040;
  --text: #e4e8ed;
  --text-muted: #8899aa;
  --accent: #4fc3f7;
  --accent-hover: #29b6f6;
  --accent-dim: rgba(79, 195, 247, 0.1);
  --border: #2a3a4a;
  --radius: 10px;
  --max-w: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, var(--bg) 0%, #0d1b2a 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #81d4fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 12px 0 6px;
}

.hero .version {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-outline:hover {
  background: var(--surface-hover);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 0;
  padding-bottom: 0;
  height: 56px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--accent);
}

.section p {
  margin-bottom: 14px;
  max-width: 700px;
}

/* Workflow */
.workflow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.step-icon {
  font-size: 1.2rem;
}

.step-arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

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

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

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

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.gallery-item figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.gallery-thumbs figure {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
}

.gallery-thumbs figure img {
  display: block;
  max-width: 100%;
  max-height: 80px;
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: contain;
}

.gallery-thumbs figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.2;
}

.gallery-buttons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-buttons figure {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.gallery-buttons img {
  max-height: 36px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.gallery-buttons figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.emoji-placeholder {
  font-size: 2rem;
  line-height: 1;
}

/* Requirements */
.req-list {
  list-style: none;
  margin-bottom: 16px;
}

.req-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.req-list li:last-child {
  border: none;
}

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

/* Download */
.options-list {
  margin: 12px 0 20px 18px;
}

.options-list li {
  margin-bottom: 4px;
}

.options-list a {
  color: var(--accent);
  text-decoration: none;
}

.options-list a:hover {
  text-decoration: underline;
}

.download-area {
  text-align: center;
  margin-top: 28px;
}

.download-area .small {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Disclaimer */
.disclaimer {
  padding: 14px 18px;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .small {
  margin-top: 6px;
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.4rem; }
  .hero { padding: 50px 16px 40px; }
  .workflow { flex-direction: column; align-items: stretch; }
  .step-arrow { display: none; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-thumbs figure { width: 120px; }
}
