:root {
  --bg-color: #0d1117;
  --surface-color: rgba(22, 27, 34, 0.75);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --accent: #2f81f7;
  --accent-gradient: linear-gradient(135deg, #1d9bf0 0%, #a855f7 100%);
  --glow: rgba(29, 155, 240, 0.15);
  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-hover: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --bg-color: #f6f8fa;
  --surface-color: rgba(255, 255, 255, 0.85);
  --surface-border: rgba(0, 0, 0, 0.08);
  --text-main: #1f2328;
  --text-muted: #656d76;
  --accent: #0969da;
  --accent-gradient: linear-gradient(135deg, #0969da 0%, #8250df 100%);
  --glow: rgba(9, 105, 218, 0.08);
  --btn-secondary-bg: rgba(0, 0, 0, 0.05);
  --btn-secondary-hover: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.glow-bg {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(16px);
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill-btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-family: 'Outfit', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.pill-btn:hover {
  background: var(--btn-secondary-hover);
}

.pill-btn.icon-only {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
}

.portal-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.portal-link:hover {
  color: var(--text-main);
  border-color: var(--surface-border);
}

/* Lang Dropdown */
.lang-picker {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  min-width: 120px;
  z-index: 200;
}

.lang-dropdown.hidden {
  display: none;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.lang-item:hover {
  background: var(--btn-secondary-hover);
}

.lang-flag-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
  flex: 1;
  padding: 5rem 0 3rem;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Mascot Styles */
.hero-mascot-container {
  display: flex;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 780px;
}

.mascot-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  background: var(--surface-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mascot-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(29, 155, 240, 0.25);
}

.hero-cat-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.mascot-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Store Badges */
.store-badges-wrapper {
  margin-bottom: 3.5rem;
}

.store-badges-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.store-badge-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.store-badge-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(29, 155, 240, 0.3);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.card {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.75rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 2rem 0;
  background: var(--surface-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

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

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

/* Subtle Visitor Counter */
.footer-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--surface-border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--text-muted);
  user-select: none;
}

.counter-icon {
  font-size: 0.85rem;
  opacity: 0.85;
}

.counter-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.counter-item strong {
  color: var(--accent);
  font-weight: 600;
  font-feature-settings: 'tnum';
}

.counter-sep {
  opacity: 0.3;
}

/* Flag emoji - OS native rendering (bypasses Outfit font) */
.flag-emoji {
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif !important;
  font-size: 1.25em;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.lang-item .flag-emoji {
  font-size: 1.15em;
}

/* Stats Band */
.stats-band {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 2.5rem;
  flex: 1;
  min-width: 120px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--surface-border);
  flex-shrink: 0;
}

/* Section Blocks */
.section-block {
  margin: 4rem 0;
  text-align: left;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-align: center;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '﹢';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
  content: '−';
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.1rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Privacy Page */
.privacy-main {
  flex: 1;
  padding: 4rem 0 3rem;
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
}

.privacy-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.privacy-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s ease;
}

.privacy-card:hover {
  transform: translateY(-2px);
}

.privacy-card-full {
  grid-column: 1 / -1;
}

.privacy-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.privacy-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.privacy-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .footer-content { flex-direction: column; text-align: center; }
  .stats-band { gap: 1rem; padding: 1.25rem; }
  .stat-divider { display: none; }
  .stat-item { padding: 0.5rem 1rem; min-width: 40%; }
  .privacy-header h1 { font-size: 2rem; }
  .privacy-card-full { grid-column: auto; }
}