:root {
  --bg: #0a0d1f;
  --bg-elevated: #131836;
  --bg-card: #181d3f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f2f8;
  --text-secondary: #a8b0c8;
  --text-tertiary: #6e7798;
  --accent: #8e8cff;
  --accent-soft: #4d4dff33;
  --accent-glow: 0 0 60px rgba(142, 140, 255, 0.25);
  --max-width: 1100px;
  --radius: 14px;
  --radius-lg: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse at top right, rgba(142, 140, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(78, 90, 200, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Header ──────────────────────────────────────────────────── */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.lang-switcher {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23a8b0c8'><path d='M6 8L2 4h8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  transition: border-color 0.15s ease;
}

.lang-switcher:hover,
.lang-switcher:focus {
  border-color: var(--text-tertiary);
  outline: none;
}

.lang-switcher option {
  background: var(--bg-elevated);
  color: var(--text);
}

@media (max-width: 640px) {
  .site-nav a {
    display: none;
  }
  .site-nav {
    gap: 0;
  }
  .lang-switcher {
    display: inline-block;
  }
}

/* ─── Hero ────────────────────────────────────────────────────── */

.hero {
  padding: 80px 24px 100px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: linear-gradient(135deg, #2d2f6e, #45348c);
  box-shadow: var(--accent-glow);
  margin-bottom: 36px;
}

.hero-icon {
  width: 64px;
  height: 64px;
  color: var(--text);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #cbcfe6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  background: #a3a1ff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
}

/* ─── Privacy banner ─────────────────────────────────────────── */

.privacy-banner {
  padding: 70px 24px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 24px;
}

.privacy-icon svg {
  width: 28px;
  height: 28px;
}

.privacy-banner h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.privacy-banner p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 17px;
}

/* ─── Features ────────────────────────────────────────────────── */

.features {
  padding: 100px 24px;
}

.features h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Download ────────────────────────────────────────────────── */

.download {
  padding: 100px 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(142, 140, 255, 0.06));
  border-top: 1px solid var(--border);
}

.download h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.download-sub {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 48px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.store-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: 240px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  background: var(--bg-elevated);
}

.store-status {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #0a0d1f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.store-btn[data-status="planned"] .store-status {
  background: var(--text-tertiary);
  color: #0a0d1f;
}

.store-platform {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.store-glyph {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--text);
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-text small {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.store-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.download-note {
  color: var(--text-tertiary);
  font-size: 14px;
  max-width: 540px;
  margin: 32px auto 0;
}

/* ─── Support ─────────────────────────────────────────────────── */

.support {
  padding: 90px 24px 100px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.support h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.support-sub {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.support-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: 240px;
  padding: 16px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: left;
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.support-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.support-glyph {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.support-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.support-text small {
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.support-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* Aifadian — orange-red brand mood */
.support-btn-aifadian {
  background: linear-gradient(135deg, #ff7a59, #ff5570);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 90, 110, 0.25);
}
.support-btn-aifadian:hover {
  box-shadow: 0 12px 32px rgba(255, 90, 110, 0.35);
}

/* Buy Me a Coffee — classic yellow */
.support-btn-bmac {
  background: #ffdd00;
  color: #0a0d1f;
  box-shadow: 0 8px 24px rgba(255, 221, 0, 0.18);
}
.support-btn-bmac:hover {
  box-shadow: 0 12px 32px rgba(255, 221, 0, 0.28);
}

.support-note {
  color: var(--text-tertiary);
  font-size: 13px;
  max-width: 480px;
  margin: 12px auto 0;
}

/* ─── Footer ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--text);
}

/* ─── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
