/* ============================================================
   FORGE — forge_app_home.css
   Landing / marketing homepage styles (logged-out view)
   ============================================================ */

/* ── Page scrolling (global CSS locks the body for the app) ── */
body { overflow-x: hidden; overflow-y: auto; }

/* ── Page wrapper ── */
#page-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.home-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(15,16,18,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}

.home-nav.scrolled {
  background: rgba(15,16,18,0.97);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-base);
  font-weight: 400;
}
.nav-links a:hover { color: var(--text-primary); }

/* Phones: the logo and buttons stay, like on the info pages */
@media (max-width: 600px) {
  .home-nav { padding: 0 16px; }
  .home-nav .nav-logo-text,
  .home-nav .nav-links { display: none; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  padding-top: 144px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% -5%, rgba(240,165,0,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 85%, rgba(91,141,238,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 10% 70%, rgba(156,100,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,165,0,0.08);
  border: 1px solid rgba(240,165,0,0.22);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 28px;
  position: relative;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 7.5vw, 92px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
  position: relative;
}

.hero h1 .gold { color: var(--gold); }

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.75;
  font-weight: 300;
  position: relative;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 72px;
}

/* ── App preview mockup ── */
.hero-preview-wrap {
  max-width: 1040px;
  width: 92%;
  margin: 0 auto;
  position: relative;
}

.hero-preview-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(240,165,0,0.25), rgba(91,141,238,0.1), transparent 60%);
  z-index: 0;
}

.hero-app-preview {
  position: relative;
  z-index: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.04);
  aspect-ratio: 16 / 9;
  display: flex;
}

/* Preview rail */
.prev-rail {
  width: 54px;
  background: var(--bg-deepest);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  border-right: 1px solid var(--border);
}

.prev-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: var(--font-display);
}
.prev-icon.active { background: rgba(240,165,0,0.15); color: var(--gold); }

/* Preview sidebar */
.prev-sidebar {
  width: 160px;
  background: var(--bg-deep);
  border-right: 1px solid var(--border);
  padding: 10px 0;
  flex-shrink: 0;
}

.prev-cat {
  padding: 10px 12px 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.prev-ch {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-body);
}
.prev-ch.active {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  margin: 0 5px;
  padding: 4px 7px;
}
.prev-ch-icon { color: var(--text-muted); }

/* Preview main */
.prev-main {
  flex: 1;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.prev-topbar {
  height: 38px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  flex-shrink: 0;
}

.prev-topbar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.prev-msgs {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

.prev-msg {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.prev-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  font-family: var(--font-display);
}

.prev-msg-name  { font-size: 9px; font-weight: 700; margin-bottom: 2px; }
.prev-msg-text  { font-size: 9px; color: var(--text-secondary); line-height: 1.4; }

.prev-inputbar {
  height: 30px;
  margin: 0 10px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 9px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Preview members */
.prev-members {
  width: 120px;
  background: var(--bg-deep);
  border-left: 1px solid var(--border);
  padding: 10px 8px;
  flex-shrink: 0;
}

.prev-members-title {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.prev-member {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 2px;
}

.prev-member-av {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  font-family: var(--font-display);
}

.prev-member-name { font-size: 9px; color: var(--text-secondary); }

/* ══════════════════════════════════════
   FEATURES
══════════════════════════════════════ */
.features-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,165,0,0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--gold-glow);
  border: 1px solid rgba(240,165,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-bar {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 48px;
}

.stats-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-section {
  padding: 100px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(240,165,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  position: relative;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.home-footer {
  border-top: 1px solid var(--border);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-base);
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Nav logged-in state ── */
.home-nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--yellow, #f5c400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #1a1b1e;
  overflow: hidden;
  flex-shrink: 0;
}
.home-nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

#hero-user-btns  { display: flex; }
#cta-user-btns   { display: flex; }