:root {
  --bg: #0b0f14;
  --bg-soft: #0f1721;
  --card: #121a25;
  --ink: #f5f5f5;
  --muted: #c2c7d0;
  --accent: #ff7a1a;
  --accent-2: #3bd2a2;
  --accent-3: #6aa6ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 500px at 20% -20%, rgba(255, 122, 26, 0.2), transparent),
    radial-gradient(800px 600px at 90% 0%, rgba(59, 210, 162, 0.15), transparent),
    linear-gradient(180deg, var(--bg) 0%, #0e141d 60%, #0b0f14 100%);
  min-height: 100vh;
}

body.theme-light {
  --bg: #f5f3ef;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --ink: #111419;
  --muted: #505a66;
  --border: rgba(15, 23, 33, 0.12);
  --shadow: 0 18px 40px rgba(15, 23, 33, 0.12);
  background: radial-gradient(900px 500px at 10% -10%, rgba(255, 122, 26, 0.18), transparent),
    radial-gradient(700px 500px at 90% -10%, rgba(59, 210, 162, 0.15), transparent),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 65%, #f5f3ef 100%);
}

body.theme-light .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 33, 0.12);
}

body.theme-light .nav a {
  color: #2a3442;
}

body.theme-light .nav a:hover {
  color: #0b0f14;
}

body.theme-light .lang-toggle,
body.theme-light .theme-toggle {
  background: #f1f3f6;
  color: #0b0f14;
  border-color: rgba(15, 23, 33, 0.18);
  box-shadow: 0 8px 16px rgba(15, 23, 33, 0.08);
}

body:not(.theme-light) .theme-toggle {
  background: #1b2430;
  border-color: rgba(255, 255, 255, 0.18);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
}

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

.lang-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: none;
}

body.theme-light .theme-icon-light {
  display: block;
}

body:not(.theme-light) .theme-icon-dark {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  padding: 70px 6vw 40px;
  position: relative;
}

.hero-content h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  margin: 0 0 14px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 26px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hero-stats > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  object-fit: contain;
}

.btn.primary {
  background: var(--accent);
  color: #10161f;
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--ink);
}

.btn.mini {
  margin-top: 16px;
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--border);
}

.btn.ghost:hover,
.btn.mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
}

.hero-card-body {
  display: grid;
  gap: 16px;
}

.featured-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.featured-item img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.featured-item.secondary {
  padding-top: 0;
  border-top: none;
  align-items: flex-start;
}

.hero-card-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.hero-card-secondary {
  display: grid;
  gap: 8px;
}

.hero-card-secondary .featured-item {
  gap: 10px;
  align-items: center;
}

.hero-card-secondary .app-link > img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.hero-card-secondary .tag img {
  width: 14px;
  height: 14px;
  border-radius: 0;
}

.hero-card-secondary .btn-icon {
  width: 14px;
  height: 14px;
  border-radius: 0;
}

.hero-card-secondary .hero-card-actions {
  margin-top: 6px;
  gap: 6px;
  flex-direction: row;
  flex-wrap: wrap;
}

.featured-content {
  display: grid;
  gap: 3px;
}

.featured-content p {
  font-size: 0.82rem;
  margin: 0;
}

.featured-content .tag {
  margin: 0;
}

.featured-content .btn.mini {
  margin-top: 5px;
  align-self: flex-start;
}

.featured-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(106, 166, 255, 0.18);
  color: var(--accent-3);
  font-size: 0.8rem;
  font-weight: 600;
}

.app-link {
  color: inherit;
}

.app-link:hover {
  color: var(--accent);
}

.hero-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.2;
  z-index: -1;
}

.glow-1 {
  background: var(--accent-3);
  top: 30px;
  right: 35%;
}

.glow-2 {
  background: var(--accent-2);
  bottom: 20px;
  left: 5%;
}

.section {
  padding: 60px 6vw 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 8px;
}

.section-header p {
  color: var(--muted);
}

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

.update-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.update-card.alt {
  border: 1px solid rgba(106, 166, 255, 0.25);
}

.update-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.update-head img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.update-card h4 {
  margin-bottom: 8px;
}

.update-card ul {
  color: var(--muted);
  margin: 6px 0 14px 18px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.timeline-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.timeline-card.alt {
  border: 1px solid rgba(59, 210, 162, 0.3);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.timeline-item {
  border-left: 2px solid rgba(255, 122, 26, 0.4);
  padding-left: 12px;
}

.timeline-date {
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 4px;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.screen-card {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.screen-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.screen-card figcaption {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.use-case-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.use-case-card.alt {
  border: 1px solid rgba(59, 210, 162, 0.3);
}

.use-case-card ul {
  color: var(--muted);
  margin: 10px 0 0 18px;
}

.guide-list {
  color: var(--muted);
  margin: 10px 0 0 18px;
}

.guide-list li + li {
  margin-top: 6px;
}

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

.app-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.app-card.alt {
  border: 1px solid rgba(59, 210, 162, 0.3);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.press-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.press-card.alt {
  border: 1px solid rgba(106, 166, 255, 0.28);
}

.press-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.press-head img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.press-links {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.press-links a {
  color: var(--accent);
  font-weight: 600;
}

.press-muted {
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.app-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.app-top img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.app-top h3 {
  margin: 0;
}

.tag {
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.app-list {
  margin: 16px 0 0 18px;
  color: var(--muted);
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(106, 166, 255, 0.12);
  color: var(--accent-3);
  font-size: 0.85rem;
  font-weight: 600;
}

.platform-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.app-req {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.req-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.req-list {
  margin-top: 8px;
}

.soon {
  font-size: 0.9rem;
  color: var(--accent-2);
  background: rgba(59, 210, 162, 0.15);
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 12px;
}

.about-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.support-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.support-card p,
.support-card ul {
  color: var(--muted);
}

.support-card ul {
  margin: 10px 0 0 18px;
}

.support-card details {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.support-card details:last-of-type {
  border-bottom: none;
}

.support-card summary {
  cursor: pointer;
  font-weight: 600;
}

.support-card details p {
  margin: 8px 0 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.about-grid ul {
  color: var(--muted);
  margin: 10px 0 0 18px;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

.contact-brand-link:hover {
  opacity: 0.8;
}

.contact-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.contact-brand strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-item {
  display: grid;
  gap: 6px;
}

.contact-link {
  color: var(--ink);
  font-weight: 600;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-apps {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.contact-apps-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-apps-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
}

.contact-app img {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.contact-app.muted {
  color: var(--muted);
  background: transparent;
}

.contact-card p {
  color: var(--muted);
  margin: 0 0 6px;
}

.newsletter-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.newsletter-form input {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1rem;
}

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

.site-footer {
  text-align: center;
  padding: 40px 6vw 50px;
  color: var(--muted);
}

.footer-links {
  margin: 10px 0 0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

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

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 210, 162, 0.15);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    grid-template-columns: 1fr;
  }
  .screen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 56px 5vw 28px;
  }
  .section {
    padding: 50px 5vw 0;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-card {
    padding: 18px;
  }
  .app-grid,
  .updates-grid,
  .timeline-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero-card-actions {
    flex-direction: column;
  }
}

/* ── Hamburger nav button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hamburger nav (≤960px: tablet + mobile) ── */
@media (max-width: 960px) {
  .site-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0 4vw;
    height: 60px;
    position: relative;
  }

  .nav-hamburger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 14px 24px;
    width: 100%;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav a:last-of-type { border-bottom: none; }

  .nav .theme-toggle,
  .nav .lang-toggle {
    margin: 8px 24px;
    align-self: flex-start;
  }
}

/* ── Extra small screens (≤480px) ── */
@media (max-width: 480px) {
  .hero {
    padding: 40px 4vw 24px;
    gap: 28px;
  }

  .section {
    padding: 44px 4vw 0;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  /* Pixel font legibility fix */
  .eyebrow {
    font-size: 0.6rem !important;
    letter-spacing: 0.1em;
  }

  .chip {
    font-size: 0.52rem !important;
  }

  .stat-value {
    font-size: 0.78rem !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }

  .hero-card {
    padding: 14px;
  }

  .hero-card-actions {
    flex-direction: column;
  }

  .app-card {
    padding: 16px;
  }

  .contact-card {
    padding: 16px;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 24px 4vw;
  }
}

/* ── Tiny screens (≤360px) ── */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .eyebrow {
    font-size: 0.55rem !important;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ── Accessibility: focus-visible ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Back-to-top button ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(255, 122, 26, 0.35);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
}

/* ── Active nav link ── */
.nav a.nav-active {
  color: var(--accent);
  font-weight: 600;
}

/* ── Beta tester section hero-actions spacing ── */
.hero-actions-spaced {
  margin-top: 16px;
}

/* ════════════════════════════════════════
   PIXEL ENHANCEMENTS — Main Website
   ════════════════════════════════════════ */

/* ── Pixel keyframes ── */
@keyframes px-glitch {
  0%, 88%, 100% { transform: none; text-shadow: none; }
  89% { transform: translate(-3px, 0); text-shadow: 3px 0 var(--accent-2); }
  90% { transform: translate(3px, 1px); text-shadow: -3px 0 var(--accent); }
  91% { transform: translate(-1px, -1px); text-shadow: 2px 0 var(--accent-2); }
  92% { transform: translate(2px, 0); text-shadow: -2px 0 var(--accent); }
  93%, 100% { transform: none; text-shadow: none; }
}

@keyframes px-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes px-stat-glow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 14px var(--accent), 0 0 28px rgba(255,122,26,0.35); }
}

@keyframes px-float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.65; }
  92%  { opacity: 0.4; }
  100% { transform: translateY(-108vh) rotate(200deg); opacity: 0; }
}

@keyframes px-spark {
  0%   { transform: translate(-50%,-50%) translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-50%) translate(var(--dx),var(--dy)) scale(0); opacity: 0; }
}

/* ── Scanline CRT overlay (dark mode only) ── */
body:not(.theme-light)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.045) 3px,
    rgba(0,0,0,0.045) 4px
  );
  pointer-events: none;
  z-index: 9990;
}

/* ── Floating pixel container ── */
.px-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.px-dot {
  position: absolute;
  bottom: -8px;
  animation: px-float linear infinite;
}

/* ── Click spark ── */
.px-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: px-spark 0.55s steps(8) forwards;
}

/* ── Hero h1 glitch ── */
.hero-content h1 {
  animation: px-glitch 11s steps(1) infinite;
}

/* ── Gradient text on hero h1 ── */
body:not(.theme-light) .hero-content h1 {
  background: linear-gradient(120deg, var(--ink) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Eyebrow gets pixel font + blink cursor ── */
.eyebrow {
  font-family: "Press Start 2P", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.eyebrow::after {
  content: "_";
  animation: px-blink 1s step-end infinite;
}

/* ── Stat value — pixel font + glow ── */
.stat-value {
  font-family: "Press Start 2P", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  animation: px-stat-glow 3s steps(2) infinite;
}

/* ── Chip — sharp pixel style ── */
.chip {
  border-radius: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.42rem;
  border: 1px solid var(--accent);
  box-shadow: 2px 2px 0 rgba(255,122,26,0.4);
  letter-spacing: 0.06em;
}

/* ── Hero stat cards — pixel border ── */
.hero-stats > div {
  border-radius: 0;
  border-color: rgba(255,122,26,0.2);
  box-shadow: 3px 3px 0 rgba(255,122,26,0.12);
  transition: transform 0.1s, box-shadow 0.1s;
}

.hero-stats > div:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(255,122,26,0.25);
}

/* ── App cards — pixel hover ── */
.app-card {
  border-radius: 0;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.app-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 rgba(255,122,26,0.3);
  border-color: var(--accent);
}

.app-card.alt:hover {
  box-shadow: 6px 6px 0 rgba(59,210,162,0.25);
  border-color: var(--accent-2);
}

/* ── Buttons — pixel offset shadow ── */
.btn {
  border-radius: 0;
}

.btn.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #7a3000;
}

.btn.ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(255,255,255,0.15);
}

body.theme-light .btn.ghost:hover {
  box-shadow: 4px 4px 0 rgba(15,23,33,0.2);
}

/* ── Update cards & timeline — pixel style ── */
.update-card,
.timeline-card,
.support-card,
.use-case-card,
.about-card,
.contact-card {
  border-radius: 0;
}

.update-card:hover,
.use-case-card:hover,
.support-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(255,122,26,0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}

/* ── Back-to-top — pixel style ── */
.back-to-top {
  border-radius: 0;
  border: 2px solid #7a3000;
  box-shadow: 3px 3px 0 #7a3000;
}

.back-to-top:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #7a3000;
}
