* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0b1020;
  color: #e8edf5;
  line-height: 1.65;
}
a { color: #6ee7b7; font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 920px; margin: 0 auto; padding: 32px 20px 56px; }
header { margin-bottom: 28px; }
.brand { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #94a3b8; }
h1 { font-size: 2.2rem; margin: 8px 0 12px; color: #f8fafc; }
.lead { color: #cbd5e1; font-size: 1.05rem; max-width: 720px; }
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px 22px;
  margin-top: 22px;
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
}
.tile h2 { font-size: 1rem; margin-bottom: 8px; color: #f1f5f9; }
.meta { color: #94a3b8; font-size: 0.92rem; margin-bottom: 18px; }
nav { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 18px; }
footer { margin-top: 36px; color: #64748b; font-size: 0.9rem; }
h2 { color: #bbf7d0; margin: 24px 0 10px; font-size: 1.1rem; }
p, li { font-size: 15px; color: #dbe4f0; }
ul, ol { padding-left: 22px; margin: 8px 0 14px; }
.note {
  background: rgba(110, 231, 183, 0.08);
  border-left: 4px solid #34d399;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 16px 0;
}

/* ===== Landing / product pages (index.html, agrofarm.html) ===== */
:root {
  --accent: #6ee7b7;
  --accent-2: #34d399;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
}

.vanta-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}
.vanta-bg canvas {
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.brand-mark {
  font-weight: 700;
  font-size: 1.05rem;
  color: #f8fafc;
  letter-spacing: 0.02em;
}
.brand-mark span {
  color: var(--accent);
  font-weight: 500;
  margin-left: 6px;
}

.site-nav { display: flex; gap: 22px; }
.site-nav a { color: #cbd5e1; font-weight: 500; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  cursor: pointer;
}
.lang-switch button.is-active {
  background: rgba(110, 231, 183, 0.14);
  color: var(--accent);
}

.hero {
  padding: 4px 0 20px;
  max-width: 820px;
  display: flex;
  flex-direction: column;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
}
.eyebrow {
  align-self: flex-start;
  text-align: left;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  padding: 6px 0 2px;
  line-height: 1.35;
  background-image:
    linear-gradient(
      115deg,
      rgba(167, 243, 208, 0.35) 0%,
      rgba(255, 255, 255, 0.95) 18%,
      rgba(110, 231, 183, 0.55) 32%,
      rgba(255, 255, 255, 0.9) 48%,
      rgba(52, 211, 153, 0.7) 62%,
      rgba(186, 230, 253, 0.85) 78%,
      rgba(110, 231, 183, 0.45) 100%
    );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28))
    drop-shadow(0 8px 18px rgba(52, 211, 153, 0.22));
  animation: eyebrow-glass-flow 7s ease-in-out infinite;
}
@keyframes eyebrow-glass-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 10px 0 26px;
  font-weight: 700;
}
.hero-line {
  display: block;
  text-wrap: balance;
}
.hero-line--sub {
  margin-top: 0.28em;
  color: #94a3b8;
  font-weight: 500;
}
.hero-lead { color: #cbd5e1; font-size: 1.08rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #06210f;
  box-shadow: 0 12px 24px -12px rgba(52, 211, 153, 0.55);
}
.btn-primary:hover { text-decoration: none; box-shadow: 0 16px 30px -12px rgba(52, 211, 153, 0.7); }
.btn-ghost { border: 1px solid var(--panel-border); color: #e8edf5; }
.btn-ghost:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

.section { padding: 48px 0; }
.hero + .section { padding-top: 24px; }
.section h2 { color: #f1f5f9; font-size: 1.5rem; margin-bottom: 20px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.product-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 22px;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.product-card:hover { border-color: rgba(110, 231, 183, 0.4); text-decoration: none; }
.product-card--soon { opacity: 0.6; cursor: default; }
.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.product-card h3 { color: #f8fafc; font-size: 1.15rem; margin-bottom: 8px; }
.product-card p { color: #cbd5e1; font-size: 0.95rem; margin-bottom: 12px; }
.product-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.about-lead { color: #cbd5e1; font-size: 1.05rem; max-width: 620px; }
.about-lead + .about-lead { margin-top: 16px; }

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding-top: 22px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 0.88rem;
}
.footer-links { display: flex; gap: 16px; }
.footer-meta { display: flex; gap: 16px; align-items: center; }

/* AgroFarm product page */
.back-link { color: #94a3b8; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.back-link:hover { color: var(--accent); text-decoration: none; }

.game-hero { display: flex; align-items: center; gap: 40px; padding: 40px 0 40px; flex-wrap: wrap; }
.game-hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  background: linear-gradient(135deg, #1b5e20, var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
  box-shadow: 0 20px 40px -18px rgba(52, 211, 153, 0.5);
}
.game-hero-copy { max-width: 520px; }
.game-hero-copy h1 { font-size: clamp(2rem, 4.5vw, 2.7rem); color: #f8fafc; margin-bottom: 10px; }
.game-hero-copy p { color: #cbd5e1; font-size: 1.02rem; margin-bottom: 22px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid var(--panel-border);
  color: #f8fafc;
}
.store-btn:hover { border-color: var(--accent); text-decoration: none; }
.store-btn .glyph { font-size: 1.4rem; color: var(--accent); }
.store-btn .lines { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .lines small { font-size: 0.68rem; color: #94a3b8; letter-spacing: 0.04em; }
.store-btn .lines strong { font-size: 1rem; }

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-tile {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
}
.feature-tile .glyph { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.feature-tile h3 { color: #f1f5f9; font-size: 1rem; margin-bottom: 6px; }
.feature-tile p { color: #cbd5e1; font-size: 0.9rem; }

@media (max-width: 640px) {
  .game-hero { gap: 22px; }
  .hero {
    padding: 2px 0 16px;
  }
  .hero-copy { padding-top: 12px; }
  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 768px) {
  .vanta-bg { opacity: 0.4; }
}

@media (max-width: 480px) {
  .vanta-bg { opacity: 0.32; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .vanta-bg { display: none; }
  .eyebrow {
    animation: none;
    background-image: none;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    filter: none;
  }
}

/* ===== Launchpad: header wallet button ===== */
.header-actions { display: flex; align-items: center; gap: 12px; }

.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: #e8edf5;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.wallet-btn:hover { border-color: var(--accent); color: var(--accent); }
.wallet-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #64748b; flex-shrink: 0; }
.wallet-btn.is-connected .dot { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }

.wallet-menu { position: relative; }
.wallet-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #0f172a;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  z-index: 60;
}
.wallet-menu.is-open .wallet-dropdown { display: flex; }
.wallet-dropdown a,
.wallet-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #e8edf5;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.wallet-dropdown a:hover,
.wallet-dropdown button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  text-decoration: none;
}
.wallet-dropdown button[data-action="disconnect"] { color: #fca5a5; }
.wallet-dropdown button[data-action="disconnect"]:hover { background: rgba(252, 165, 165, 0.1); color: #fca5a5; }

/* ===== Launchpad: how-it-works steps ===== */
.steps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step-tile {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.14);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.step-tile h3 { color: #f1f5f9; font-size: 1rem; margin-bottom: 6px; }
.step-tile p { color: #cbd5e1; font-size: 0.9rem; }

/* ===== Launchpad: project catalog ===== */
.project-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.project-tab {
  border: 1px solid var(--panel-border);
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.project-tab:hover { color: #e8edf5; }
.project-tab.is-active {
  background: rgba(110, 231, 183, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

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

.launchpad-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.launchpad-card:hover { border-color: rgba(110, 231, 183, 0.4); text-decoration: none; }

.launchpad-card-banner {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, #14213d, #1b5e20 160%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #e8edf5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(2px);
}
.status-pill--live { color: #06210f; background: var(--accent); border-color: var(--accent); }
.status-pill--testing { color: #0b1020; background: #7dd3fc; border-color: #7dd3fc; }
.status-pill--in_development { color: #e8edf5; background: rgba(148, 163, 184, 0.28); }
.status-pill--upcoming { color: #06210f; background: #f9c74f; border-color: #f9c74f; }

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.platform-badge[data-platform="android"] { background: rgba(52, 211, 153, 0.9); color: #06210f; }
.platform-badge[data-platform="ios"] { background: rgba(148, 163, 184, 0.9); color: #0b1020; }
.platform-badge[data-platform="telegram_mini_app"] { background: rgba(56, 161, 237, 0.9); color: #06210f; }
.platform-badge[data-platform="web"] { background: rgba(110, 231, 183, 0.9); color: #06210f; }
.platform-badge[data-platform="roblox"] { background: rgba(226, 232, 240, 0.9); color: #0b1020; }

.launchpad-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #0f172a;
  border: 3px solid var(--panel);
  margin: -30px 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}
.launchpad-card-logo img { width: 100%; height: 100%; object-fit: cover; }

.launchpad-card-body { padding: 14px 18px 20px; }
.launchpad-card-body h3 { color: #f8fafc; font-size: 1.08rem; margin: 6px 0 12px; }
.launchpad-card-body h3:has(+ .launchpad-card-dev) { margin-bottom: 2px; }
.launchpad-card-dev { color: var(--accent); font-size: 0.8rem; font-weight: 500; margin: 0 0 12px; }

.progress-block { margin-bottom: 14px; }
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.progress-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}
.progress-fill {
  position: relative;
  height: 100%;
  min-width: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-2));
  background-size: 220% 100%;
  overflow: hidden;
  animation: progressPulse 2.4s ease-in-out infinite, progressShift 4s linear infinite;
}
.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: progressShine 2.6s ease-in-out infinite;
}
@keyframes progressPulse {
  0%, 100% { box-shadow: 0 0 5px 0 rgba(52, 211, 153, 0.45); filter: brightness(1); }
  50% { box-shadow: 0 0 16px 3px rgba(110, 231, 183, 0.85); filter: brightness(1.12); }
}
@keyframes progressShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
@keyframes progressShine {
  0% { background-position: -150% 0; }
  100% { background-position: 250% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-fill, .progress-fill::after { animation: none; }
}
.progress-percent { text-align: center; font-size: 0.82rem; color: var(--accent); font-weight: 700; margin-top: 6px; }

.project-facts { display: flex; flex-direction: column; gap: 4px; }
.project-facts div { font-size: 0.84rem; color: #cbd5e1; }
.project-facts span { color: #94a3b8; }

/* ===== Launchpad: project detail page ===== */
.project-detail-hero {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  margin-bottom: 28px;
}
.project-detail-banner {
  height: clamp(160px, 24vw, 300px);
  background: linear-gradient(135deg, #14213d, #1b5e20 160%);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
}
.project-detail-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px 22px;
  margin-top: -32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.project-detail-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: #0f172a;
  border: 3px solid var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.6);
}
.project-detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.project-detail-title h1 { color: #f8fafc; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 6px; }
.project-detail-dev { color: var(--accent); font-size: 0.92rem; font-weight: 500; margin: -2px 0 8px; }
.project-detail-dev a { color: inherit; }
.project-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.project-body-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  align-items: start;
}
@media (max-width: 860px) {
  .project-body-grid { grid-template-columns: 1fr; }
}

.project-description { color: #dbe4f0; font-size: 0.98rem; white-space: pre-line; }
.project-description h2 { color: #f1f5f9; font-size: 1.15rem; margin: 24px 0 10px; }

.screenshot-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin: 16px 0 8px;
}
.screenshot-gallery img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.screenshot-gallery img:hover { transform: scale(1.03); border-color: rgba(110, 231, 183, 0.4); }

.side-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px;
  position: sticky;
  top: 20px;
}
.side-panel h3 { color: #f1f5f9; font-size: 1rem; margin-bottom: 14px; }
.side-panel .project-facts { margin-bottom: 18px; }

.collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.collapsible-toggle::after {
  content: '▾';
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.collapsible-toggle:hover::after { color: var(--accent); }
.collapsible-toggle.is-collapsed::after { transform: rotate(-90deg); }

.project-facts {
  overflow: hidden;
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}
.project-facts.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.invest-heading {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--accent) !important;
  letter-spacing: -0.01em;
}

.field-row { margin-bottom: 14px; }
.field-row label { display: block; font-size: 0.78rem; color: #94a3b8; margin-bottom: 6px; }
.field-row input[type="number"],
.field-row input[type="text"],
.field-row select {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: #e8edf5;
  font-size: 0.92rem;
}
.field-row input:focus, .field-row select:focus { outline: none; border-color: var(--accent); }
.field-hint { font-size: 0.76rem; color: #64748b; margin-top: 4px; }

.pay-address-box {
  background: #0f172a;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--accent);
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 14px;
}
.copy-btn {
  border: 1px solid var(--panel-border);
  background: transparent;
  color: #94a3b8;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

.btn-block { width: 100%; justify-content: center; }
.form-msg { font-size: 0.85rem; margin-top: 10px; }
.form-msg--ok { color: var(--accent); }
.form-msg--err { color: #fca5a5; }

.vote-count { color: #94a3b8; font-size: 0.85rem; margin-top: 10px; }

.btn-link-manual {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  margin-top: 12px;
  padding: 4px;
  cursor: pointer;
  text-decoration: underline;
}
.btn-link-manual:hover { color: var(--accent); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-box {
  position: relative;
  background: #0f172a;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.modal-box h3 { color: #f1f5f9; font-size: 1.05rem; margin-bottom: 10px; padding-right: 24px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--accent); }
.modal-qr {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}
.modal-qr img, .modal-qr canvas, .modal-qr table { display: block; }

.lightbox-overlay {
  background: rgba(2, 4, 10, 0.94);
  padding: 0;
}
.lightbox-image {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  object-fit: contain;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  color: #e8edf5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { color: var(--accent); border-color: var(--accent); }
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.9rem;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #cbd5e1;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  padding: 4px 14px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 10px; right: 10px; }
}

@media (max-width: 640px) {
  .project-detail-header { margin-top: -24px; }
  .project-detail-logo { width: 68px; height: 68px; }
}

/* ===== Homepage hero stats ===== */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-border);
}
.hero-stats[hidden] { display: none; }
.hero-stat-value { font-size: 1.5rem; font-weight: 700; color: #f8fafc; line-height: 1.2; }
.hero-stat-label { font-size: 0.78rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== Catalog cards: prices in $, voting cards, CTA ===== */
.card-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.card-price-row > div, .card-votes {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--panel-border); border-radius: 12px; padding: 8px 12px;
}
.card-price-value { font-size: 1.12rem; font-weight: 700; color: #f8fafc; line-height: 1.25; }
.card-price-label { font-size: 0.72rem; color: #94a3b8; }
.card-votes { margin-bottom: 8px; }
.card-votes-hint { font-size: 0.8rem; color: #94a3b8; margin: 0 0 12px; }
.card-cta {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--panel-border);
  color: var(--accent); font-weight: 700; font-size: 0.88rem;
}
.card-cta--muted { color: #64748b; }
.launchpad-card:hover .card-cta { text-decoration: underline; }
.launchpad-card { display: flex; flex-direction: column; }
.launchpad-card-body { display: flex; flex-direction: column; flex: 1; }
.launchpad-card-body .card-cta { margin-top: auto; }
.launchpad-card-body .project-facts + .card-cta { margin-top: 14px; }

/* ===== Project page: linked %/$ inputs, earnings example, mobile CTA ===== */
.input-suffix { position: relative; }
.input-suffix input { padding-right: 58px !important; }
.input-suffix span {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 0.82rem; font-weight: 600; pointer-events: none;
}
.detail-progress { margin-bottom: 12px; }
.detail-progress .progress-labels { font-size: 0.78rem; }

.calc-card {
  margin-top: 28px; padding: 18px 20px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--panel-border);
}
.calc-card h2 { margin: 0 0 14px; font-size: 1.1rem; color: #f1f5f9; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.calc-result { background: rgba(110, 231, 183, 0.07); border: 1px solid rgba(110, 231, 183, 0.25); border-radius: 12px; padding: 12px 14px; }
.calc-result-value { font-size: 1.45rem; font-weight: 700; color: var(--accent); line-height: 1.25; }
.calc-result-label { font-size: 0.8rem; color: #94a3b8; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }

.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(11, 16, 32, 0.98) 60%, rgba(11, 16, 32, 0));
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .mobile-cta[hidden] { display: none; }
  .mobile-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .mobile-cta .btn { width: 100%; justify-content: center; }
  body:has(.mobile-cta:not([hidden])) .site-footer { padding-bottom: 80px; }
}

/* ===== Compact mobile header (menu button, dropdown nav) ===== */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .site-header { flex-wrap: wrap; gap: 10px; padding: 14px 0; }
  .site-header .brand-mark { margin-right: auto; }
  .site-header .header-actions { gap: 8px; }
  .site-header .wallet-btn { font-size: 0.74rem; padding: 7px 10px; gap: 6px; white-space: nowrap; }
  .site-header .brand-mark { font-size: 0.98rem; white-space: nowrap; }
  .site-header .brand-mark span { margin-left: 4px; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 36px; padding: 0 9px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--panel-border); background: var(--panel);
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: #e8edf5; transition: transform 0.2s ease, opacity 0.2s ease; }
  .site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-header .site-nav {
    display: none; order: 10; flex-basis: 100%; flex-direction: column; gap: 0;
    background: rgba(15, 23, 42, 0.96); border: 1px solid var(--panel-border); border-radius: 14px; padding: 6px 14px 12px;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-header .site-nav a { padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 1rem; }
  .site-header .site-nav .lang-switch { align-self: flex-start; margin-top: 12px; }
}

/* ===== Stage A: launchpad terms, risk & consent, payout history, FAQ ===== */
/* Bilingual long-form pages: one block per language, shown by <html lang>. */
html:not([lang="uk"]) [data-only="uk"],
html[lang="uk"] [data-only="en"] { display: none !important; }

.legal-doc { max-width: 820px; padding: 32px 0 24px; }
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 6px 0 6px; }
.legal-doc .eyebrow { text-align: left; margin: 0; }
.legal-meta { color: #94a3b8; font-size: 0.88rem; margin: 0 0 24px; }
.legal-doc h2 { color: #f1f5f9; font-size: 1.08rem; margin: 30px 0 10px; }
.legal-doc p, .legal-doc li { font-size: 0.96rem; line-height: 1.65; color: #cbd5e1; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc strong { color: #f1f5f9; }
.legal-doc a { color: var(--accent); }
.legal-summary {
  background: rgba(110, 231, 183, 0.07); border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: 16px; padding: 6px 22px 10px;
}
.legal-summary h2 { margin-top: 14px; color: var(--accent); }
.legal-todo { background: rgba(251, 191, 36, 0.18); color: #fde68a; border-radius: 4px; padding: 0 4px; }

.risk-box {
  margin: 14px 0 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.28);
}
.risk-box strong { display: block; font-size: 0.82rem; color: #fde68a; margin-bottom: 6px; }
.risk-box ul { margin: 0; padding-left: 18px; }
.risk-box li { font-size: 0.78rem; line-height: 1.45; color: #cbd5e1; margin-bottom: 3px; }

.consent-check {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 8px;
  border-radius: 10px; font-size: 0.8rem; line-height: 1.45; color: #cbd5e1; cursor: pointer;
  border: 1px solid transparent;
}
.consent-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--accent-2); cursor: pointer; }
.consent-check a { color: var(--accent); }
.consent-check.is-flagged { animation: consent-flag 1.6s ease-out; }
@keyframes consent-flag {
  0%, 40% { border-color: rgba(248, 113, 113, 0.8); background: rgba(248, 113, 113, 0.1); }
  100% { border-color: transparent; background: transparent; }
}

.reports-card {
  margin-top: 28px; padding: 18px 20px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--panel-border);
}
.reports-card h2 { margin: 0 0 6px; font-size: 1.1rem; color: #f1f5f9; }
.reports-card > .field-hint { font-size: 0.82rem; color: #94a3b8; margin: 0 0 12px; }
.reports-card > .field-hint a { color: var(--accent); }
.reports-empty { font-size: 0.9rem; color: #94a3b8; margin: 8px 0; }
.reports-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.reports-table th { text-align: left; font-weight: 600; font-size: 0.75rem; color: #94a3b8; padding: 6px 8px; border-bottom: 1px solid var(--panel-border); }
.reports-table td { padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #e2e8f0; vertical-align: top; }
.reports-table a { color: var(--accent); white-space: nowrap; }
.reports-muted { color: #64748b; font-size: 0.78rem; }
@media (max-width: 560px) {
  .reports-table thead { display: none; }
  .reports-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--panel-border); }
  .reports-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
  .reports-table td::before { content: attr(data-label); color: #94a3b8; font-size: 0.78rem; }
  .reports-table td > .reports-val { text-align: right; }
}

.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item {
  border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-border);
  padding: 0 18px;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 15px 28px 15px 0; position: relative;
  font-weight: 600; color: #f1f5f9; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0 0 16px; font-size: 0.94rem; line-height: 1.6; color: #cbd5e1; }
.faq-more { margin-top: 16px; }
.faq-more a { color: var(--accent); }

/* ===== Store-style game page (agrofarm.html, assets/game-page.js) ===== */
.gp { padding-top: 8px; }
.gp-top { position: relative; margin-top: 10px; }
.gp-banner {
  height: 0; border-radius: 24px; background: center / cover no-repeat;
  position: relative; overflow: hidden;
}
.gp-top.has-banner .gp-banner { height: clamp(170px, 30vw, 420px); }
.gp-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0) 45%, rgba(11, 16, 32, 0.85) 100%);
}
.gp-head { display: flex; align-items: flex-end; gap: 22px; padding: 22px 4px 0; position: relative; }
.gp-top.has-banner .gp-head { margin-top: -64px; padding-left: 28px; }
.gp-icon {
  width: 120px; height: 120px; flex: 0 0 auto; border-radius: 26px; overflow: hidden;
  display: grid; place-items: center; font-size: 3rem;
  background: linear-gradient(135deg, #15803d, #34d399);
  border: 3px solid #0b1020; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.8);
}
.gp-icon img { width: 100%; height: 100%; object-fit: cover; }
.gp-title { min-width: 0; padding-bottom: 4px; }
.gp-title h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 6px; color: #f8fafc; }
.gp-dev { color: var(--accent); font-weight: 600; font-size: 1rem; }
.gp-badges { color: #94a3b8; font-size: 0.82rem; margin: 4px 0 0; }

.gp-stats { display: flex; flex-wrap: wrap; margin: 26px 0 22px; }
.gp-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 0 26px; min-height: 48px; text-align: center;
}
.gp-stat:first-child { padding-left: 4px; }
.gp-stat + .gp-stat { border-left: 1px solid var(--panel-border); }
.gp-stat strong { color: #f1f5f9; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; }
.gp-stat span { color: #94a3b8; font-size: 0.78rem; }
.gp-pegi {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px;
  background: #22c55e; color: #052e12 !important; font-size: 0.72rem !important; font-weight: 800;
}

.gp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gp-install { min-width: 260px; justify-content: center; }
.gp-avail { color: #64748b; font-size: 0.8rem; margin: 12px 0 0; }

.gp-shots-wrap { margin: 34px -4px 0; }
.gp-shots {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.gp-shot {
  flex: 0 0 auto; height: 380px; border-radius: 16px; overflow: hidden; padding: 0; cursor: zoom-in;
  border: 1px solid var(--panel-border); background: var(--panel); scroll-snap-align: start;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.gp-shot:hover { transform: translateY(-3px); border-color: rgba(110, 231, 183, 0.5); }
.gp-shot img { height: 100%; width: auto; display: block; }

.gp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 30px; align-items: start; }
.gp-section { padding: 6px 0 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 22px; }
.gp-section:last-child { border-bottom: 0; }
.gp-section h2 { color: #f1f5f9; font-size: 1.3rem; margin: 0 0 14px; }
.gp-section p, .gp-section li { color: #cbd5e1; font-size: 0.97rem; line-height: 1.65; }
.gp-muted { color: #94a3b8 !important; font-size: 0.88rem !important; }
.gp-small { font-size: 0.8rem !important; margin: 10px 0 0; text-align: center; }
.gp-small a, .gp-section a { color: var(--accent); }

.gp-about { position: relative; max-height: 300px; overflow: hidden; }
.gp-about::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0), #0b1020); pointer-events: none;
}
.gp-about.is-open { max-height: none; }
.gp-about.is-open::after { display: none; }
.gp-about p { margin: 0 0 12px; }
.gp-about .gp-lead { color: #f1f5f9; font-weight: 600; }
.gp-about h3 { font-size: 1rem; color: #f1f5f9; margin: 18px 0 8px; }
.gp-about ul { margin: 0 0 14px; padding-left: 20px; }
.gp-more {
  background: none; border: 0; padding: 6px 0; margin-top: 4px; cursor: pointer;
  color: var(--accent); font-weight: 600; font-size: 0.92rem;
}
.gp-meta { margin: 18px 0 12px; }
.gp-meta span { display: block; color: #94a3b8; font-size: 0.8rem; }
.gp-meta strong { color: #e2e8f0; font-size: 0.95rem; font-weight: 500; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; color: #cbd5e1;
  border: 1px solid var(--panel-border); background: rgba(255, 255, 255, 0.02);
}


.gp-support summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.gp-support summary::-webkit-details-marker { display: none; }
.gp-support summary h2 { margin: 0; }
.gp-support summary::after { content: '⌄'; color: var(--accent); font-size: 1.4rem; transition: transform 0.2s; }
.gp-support[open] summary::after { transform: rotate(180deg); }
.gp-support-list { list-style: none; padding: 0; margin: 14px 0 0; }
.gp-support-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.gp-support-list li span { color: #94a3b8; font-size: 0.88rem; }
.gp-support-list li a, .gp-support-list li strong { font-size: 0.9rem; color: #e2e8f0; text-align: right; word-break: break-all; }
.gp-support-list li a { color: var(--accent); }

.gp-side { position: sticky; top: 20px; display: grid; gap: 18px; }
.gp-card { padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-border); }
.gp-card h3 { color: #f1f5f9; font-size: 1.02rem; margin: 0 0 14px; }
.gp-invest { border-color: rgba(110, 231, 183, 0.3); background: linear-gradient(160deg, rgba(110, 231, 183, 0.08), var(--panel)); }
.gp-invest .progress-labels { font-size: 0.75rem; }
.gp-more-list { display: grid; gap: 6px; }
.gp-more-item { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 12px; }
.gp-more-item:hover { background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.gp-more-logo {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: #f1f5f9; font-weight: 700;
}
.gp-more-logo img { width: 100%; height: 100%; object-fit: cover; }
.gp-more-item strong { display: block; color: #f1f5f9; font-size: 0.92rem; }
.gp-more-item small { color: #94a3b8; font-size: 0.78rem; }

@media (max-width: 900px) {
  .gp-grid { grid-template-columns: 1fr; gap: 10px; }
  .gp-side { position: static; }
}
@media (max-width: 600px) {
  .gp-top.has-banner .gp-head { margin-top: 0; padding-left: 0; }
  .gp-head { gap: 14px; align-items: center; padding: 18px 0 0; }
  .gp-icon { width: 80px; height: 80px; border-radius: 18px; font-size: 2rem; }
  .gp-title h1 { font-size: 1.35rem; }
  .gp-stats { margin: 20px 0 18px; flex-wrap: nowrap; overflow-x: auto; }
  .gp-stat { padding: 0 14px; flex: 0 0 auto; }
  .gp-actions .btn { width: 100%; justify-content: center; }
  .gp-install { min-width: 0; }
  .gp-shot { height: 300px; }
}
