/* ==========================================================================
   GainGerms — Public site styles (site.css)
   Home, blog, white paper, about, contact, auth screens.
   Requires theme.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero-lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--text-dim); max-width: 56ch; }
.hero-lead b, .hero-lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 42px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stat b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.hero-stat span { font-size: .82rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art svg { width: 100%; height: auto; animation: float-y 7s ease-in-out infinite; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 68%);
  filter: blur(28px);
}

/* ---------- Feature cards ---------- */
.feature { text-align: center; padding: 32px 26px; }
.feature-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 18px;
  color: #04121c;
}
.feature-icon.i-green { background: linear-gradient(135deg, #34d399, #0d9488); }
.feature-icon.i-violet { background: linear-gradient(135deg, #a78bfa, #6366f1); color: #fff; }
.feature-icon.i-teal { background: linear-gradient(135deg, #2dd4bf, #0891b2); }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--text-dim); margin: 0; }

/* ---------- Split content rows (Digital Breakthrough, Currency…) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.reverse .split-art { order: -1; }
.split-art {
  position: relative;
  border-radius: var(--r-xl);
  padding: 26px;
  background: linear-gradient(150deg, rgba(56, 189, 248, .1), rgba(139, 92, 246, .08));
  border: 1px solid var(--line);
}
.split-art svg { width: 100%; height: auto; }
.split-copy p { color: var(--text-dim); }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(150deg, #1b2a3f, #101a2c);
}
.post-thumb img, .post-thumb svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post-thumb img, .post:hover .post-thumb svg { transform: scale(1.05); }
.post-tag {
  position: absolute; top: 14px; left: 14px;
  padding: .28rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(7, 11, 20, .78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand);
}
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: .6rem; }
.post-body h3 a { color: var(--text); }
.post-body h3 a:hover { color: var(--brand); }
.post-excerpt { color: var(--text-dim); font-size: .93rem; flex: 1; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--text-mute); margin-bottom: .7rem; }
.post-foot { margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 60px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(45, 212, 167, .16), transparent 65%),
    linear-gradient(180deg, var(--surface), rgba(9, 14, 26, .95));
}
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { color: var(--text-dim); max-width: 62ch; margin-inline: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Whitepaper teaser & checklists ---------- */
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-dim); margin: 0; }
.check-list li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(45, 212, 167, .16);
  border: 1px solid rgba(45, 212, 167, .4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232dd4a7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- White paper layout ---------- */
.wp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 28px;
  align-items: start;
}
.wp-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 44px);
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.wp-toc h4 { margin-bottom: 12px; font-size: 1rem; }
.wp-toc ul { list-style: none; padding: 0; margin: 0; }
.wp-toc li { margin: 0; }
.wp-toc a {
  display: block;
  padding: .42rem .7rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--text-dim);
  font-size: .9rem;
}
.wp-toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.wp-toc a.active { color: var(--brand); border-left-color: var(--brand); background: rgba(45, 212, 167, .08); }

.wp-section {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.wp-section h2 { margin-bottom: 1rem; }
.wp-section h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.wp-section p, .wp-section li { color: var(--text-dim); }
.wp-section strong { color: var(--text); }
.wp-lede { font-size: .95rem; color: var(--text-mute); }

/* ---------- FAQ page ---------- */
.faq-search { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.faq-search .input { flex: 1; min-width: 240px; }
.faq-count { font-size: .9rem; color: var(--text-mute); white-space: nowrap; }
.faq-group { margin-bottom: 34px; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 16px; }
.acc summary .badge { margin-left: 4px; }
.faq-empty { display: none; padding: 30px; text-align: center; color: var(--text-mute); }
.faq-empty.show { display: block; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; color: var(--text-dim); overflow-wrap: anywhere; }
.contact-list b { color: var(--text); }
.map-placeholder {
  display: grid; place-items: center;
  min-height: 230px; height: 100%;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 12px, transparent 12px 24px), var(--bg-soft);
  color: var(--text-mute);
  text-align: center;
  padding: 20px;
}

/* ---------- About page ---------- */
.value-card h3 { font-size: 1.1rem; }
.value-card p { color: var(--text-dim); margin: 0; }
.mission-card .badge { margin-bottom: 14px; }
.team-card { display: flex; gap: 18px; align-items: flex-start; max-width: 620px; }
.roadmap-col ul { padding-left: 1.1rem; }
.roadmap-col li { color: var(--text-dim); }
.newsletter { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.newsletter .input { flex: 1; min-width: 220px; }

/* ---------- Auth screens (login / register) ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    radial-gradient(700px 460px at 40% 40%, rgba(56, 189, 248, .16), transparent 62%),
    linear-gradient(160deg, #0a1122, #070b14);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.auth-art-inner { max-width: 460px; text-align: center; }
.auth-art svg { margin: 0 auto 30px; animation: float-y 6.5s ease-in-out infinite; }
.auth-art h2 { font-size: 1.7rem; }
.auth-art p { color: var(--text-dim); }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; text-align: left; }
.auth-points li { display: flex; gap: 11px; align-items: center; color: var(--text-dim); font-size: .95rem; margin: 0; }
.auth-points i {
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(45, 212, 167, .14);
  border: 1px solid rgba(45, 212, 167, .3);
  color: var(--brand);
  font-style: normal;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background: linear-gradient(180deg, #0c1426, #080d1a);
}
.auth-box { width: min(100%, 420px); }
.auth-box .brand { margin-bottom: 34px; }
.auth-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.auth-box h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: .3rem 0 1.6rem; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--text-dim); font-size: .93rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
}
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.pw-meter { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .045); overflow: hidden; margin-top: 8px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s var(--ease), background .3s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .wp-layout { grid-template-columns: 1fr; }
  .wp-toc { position: static; max-height: none; order: -1; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
  .hero-art { max-width: 460px; margin-inline: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 20px; }
  .team-card { flex-direction: column; }
}
