/* =====================================================================
   ErgoFlow — css/index-index288.css
   Page-specific styles for index.html (landing + auth)
   ===================================================================== */

/* ---------------- Hero ---------------- */
.hero{
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: 640px;
}
.hero-copy h1{
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.06;
  margin: 18px 0 20px;
}
.hero-copy h1 em{
  font-style: normal;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lede{
  font-size: 17px;
  max-width: 480px;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.hero-cta{ display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note{ margin-top: 18px; font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }

.hero-stats{
  display: flex;
  gap: 30px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--glass-border);
}
.hero-stat b{ display: block; font-family: var(--font-display); font-size: 22px; }
.hero-stat span{ font-size: 12px; color: var(--text-faint); }

/* ---------------- Signature: the Flow Ring orb ---------------- */
.orb-stage{
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-glow{
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, #8b6eff3d, transparent 70%);
  filter: blur(10px);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ transform: scale(1); opacity: .8; }
  50%{ transform: scale(1.08); opacity: 1; }
}
.orb{
  position: relative;
  width: 300px; height: 300px;
  border-radius: 50%;
}
.orb-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.orb-ring.r1{
  background: conic-gradient(from 0deg, var(--cyan), var(--violet) 40%, transparent 55%, transparent 100%);
  animation: spin-cw 9s linear infinite;
}
.orb-ring.r2{
  inset: 34px;
  padding: 2px;
  background: conic-gradient(from 180deg, var(--violet), var(--cyan) 35%, transparent 50%, transparent 100%);
  animation: spin-ccw 7s linear infinite;
  opacity: .85;
}
.orb-ring.r3{
  inset: 68px;
  padding: 2px;
  background: conic-gradient(from 90deg, var(--cyan), transparent 30%, var(--violet) 60%, transparent 90%);
  animation: spin-cw 5.5s linear infinite;
  opacity: .7;
}
@keyframes spin-cw{ to{ transform: rotate(360deg); } }
@keyframes spin-ccw{ to{ transform: rotate(-360deg); } }
.orb-core{
  position: absolute;
  inset: 100px;
  border-radius: 50%;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 60px -10px #56e0d640;
}
.orb-core img{ width: 46px; height: 46px; opacity: .95; }

.orb-chip{
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 7px;
  animation: float 5s ease-in-out infinite;
}
.orb-chip.c1{ top: 14px; left: -10px; animation-delay: 0s; }
.orb-chip.c2{ bottom: 26px; right: -18px; animation-delay: 1.4s; }
.orb-chip.c3{ bottom: -6px; left: 30px; animation-delay: 2.6s; }
.orb-chip .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce){
  .orb-ring, .orb-glow, .orb-chip{ animation: none !important; }
}

/* ---------------- Trust strip ---------------- */
.trust-strip{
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  opacity: .55;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------------- Section shell ---------------- */
.section{ padding: 90px 0; }
.section-head{ max-width: 620px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; line-height: 1.15; }
.section-head p{ margin-top: 14px; font-size: 15.5px; }

/* ---------------- Features ---------------- */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card{
  padding: 28px 26px;
  transition: border-color .2s var(--ease-flow), transform .2s var(--ease-flow);
}
.feature-card:hover{ border-color: var(--glass-border-hi); transform: translateY(-3px); }
.feature-icon{
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan-dim), var(--violet-dim));
  margin-bottom: 18px;
}
.feature-icon svg{ width: 20px; height: 20px; stroke: var(--text); }
.feature-card h3{ font-size: 17px; margin-bottom: 10px; }
.feature-card p{ font-size: 14px; }

/* ---------------- How it works (real sequence => numbered) ---------------- */
.flow-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  counter-reset: step;
}
.flow-step{
  padding: 26px 22px;
  border-radius: var(--radius-md);
  position: relative;
}
.flow-step .num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.flow-step h3{ font-size: 15.5px; margin-bottom: 8px; }
.flow-step p{ font-size: 13.5px; }
.flow-connector{
  position: absolute;
  top: 50%;
  right: -14px;
  color: var(--text-faint);
  font-size: 18px;
  display: none;
}

/* ---------------- Pricing ---------------- */
.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card{ padding: 30px 26px; display: flex; flex-direction: column; }
.price-card.featured{ border-color: var(--glass-border-hi); box-shadow: var(--shadow-lg), 0 0 0 1px #8b6eff40 inset; }
.price-tier{ font-size: 12.5px; font-family: var(--font-mono); color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.price-amount{ font-family: var(--font-display); font-size: 38px; margin: 10px 0 4px; }
.price-amount span{ font-size: 14px; color: var(--text-faint); font-family: var(--font-body); }
.price-desc{ font-size: 13.5px; margin-bottom: 22px; }
.price-list{ list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.price-list li{ font-size: 13.5px; color: var(--text-dim); display: flex; gap: 9px; align-items: flex-start; }
.price-list li svg{ width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; stroke: var(--cyan); }

/* ---------------- CTA band ---------------- */
.cta-band{
  padding: 64px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-band h2{ font-size: clamp(26px, 4vw, 36px); max-width: 560px; }

/* ---------------- Auth overlay ---------------- */
.auth-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6,7,12,0.6);
  backdrop-filter: blur(6px);
  animation: fadeIn .22s var(--ease-flow);
}
.auth-overlay.show{ display: flex; }
@keyframes fadeIn{ from{ opacity: 0; } to{ opacity: 1; } }

.auth-card{
  width: 100%;
  max-width: 400px;
  padding: 34px 30px 28px;
  position: relative;
  animation: authIn .32s var(--ease-flow);
}
@keyframes authIn{
  from{ opacity: 0; transform: translateY(14px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.auth-close{
  position: absolute;
  top: 18px; right: 18px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
}
.auth-close:hover{ color: var(--text); }
.auth-tabs{
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--glass-border);
  margin: 20px 0 26px;
}
.auth-tab{
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s var(--ease-flow);
}
.auth-tab.active{ background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #0a0b12; }
.auth-form{ display: none; }
.auth-form.active{ display: block; }
.auth-divider{
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  font-size: 12px; color: var(--text-faint);
  font-family: var(--font-mono);
}
.auth-divider::before, .auth-divider::after{ content:''; flex:1; height:1px; background: var(--glass-border); }
.auth-foot{ margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-faint); }
.auth-foot a{ color: var(--cyan); font-weight: 500; }
.auth-forgot{ text-align: right; margin-top: -8px; margin-bottom: 16px; }
.auth-forgot a{ font-size: 12.5px; color: var(--text-faint); }
.auth-forgot a:hover{ color: var(--cyan); }
.pw-hint{ font-size: 11.5px; color: var(--text-faint); margin-top: -8px; margin-bottom: 4px; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-copy p.lede{ margin-left: auto; margin-right: auto; }
  .hero-cta{ justify-content: center; }
  .hero-stats{ justify-content: center; }
  .orb-stage{ height: 340px; }
  .orb{ width: 220px; height: 220px; }
  .orb-core{ inset: 70px; }
  .feature-grid, .pricing-grid{ grid-template-columns: 1fr; }
  .flow-steps{ grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 520px){
  .flow-steps{ grid-template-columns: 1fr; }
}
