/* ============================================================
   YOUTAB · COMPONENTS
   Sections, marquee, stats, voice, features, tiers,
   agents, terminal, groups, timeline, social, CTA, footer
   ============================================================ */

/* Sections shell */
section.section {
  position: relative;
  z-index: 10;
  padding: 7rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.section-tag {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.4em;
  color: var(--magenta);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
}
.section-body {
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--muted);
  max-width: 580px;
  font-weight: 300;
}

/* Marquee */
.marquee-wrap {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  background: rgba(0, 240, 255, 0.015);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--f-display);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(0, 240, 255, 0.28);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}
.marquee-item::after {
  content: '◆';
  color: var(--magenta);
  opacity: 0.45;
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 240, 255, 0.018);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.stat {
  flex: 1;
  max-width: 260px;
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  text-shadow: 0 0 28px rgba(0, 240, 255, 0.5);
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  color: rgba(180, 180, 220, 0.45);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* Voice / manifesto */
.voice-section {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 7rem 4rem 5rem;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.03), transparent);
}
.voice-quote {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #fff 20%, var(--cyan) 60%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
}
.voice-sub {
  font-size: 1.1rem;
  color: rgba(180, 180, 220, 0.55);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}
.voice-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.4rem 1rem;
  margin-top: 2rem;
  background: rgba(255, 215, 0, 0.05);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin-top: 4rem;
  background: var(--border);
}
.feature-card {
  background: var(--bg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--cyan), var(--magenta));
  transition: height 0.5s ease;
}
.feature-card:hover { background: rgba(0, 240, 255, 0.025); }
.feature-card:hover::before { height: 100%; }
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: block;
}
.feature-title {
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.8rem;
}
.feature-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(180, 180, 220, 0.52);
  font-weight: 300;
}
.feature-num {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: rgba(0, 240, 255, 0.18);
  letter-spacing: 0.2em;
}

/* Star economy */
.star-section {
  position: relative;
  z-index: 10;
  padding: 7rem 4rem;
  background: linear-gradient(135deg, rgba(139, 0, 255, 0.05), rgba(0, 240, 255, 0.04), transparent);
}
.star-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.star-tiers {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}
.tier {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: padding-left 0.3s;
}
.tier:hover { padding-left: 0.5rem; }
.tier-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px;
  text-align: center;
}
.tier-name {
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.tier-desc {
  font-size: 0.88rem;
  color: rgba(180, 180, 220, 0.5);
  font-weight: 300;
}
.tier-badge {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.tier-badge.gold    { color: var(--gold);    border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.06); }
.tier-badge.cyan    { color: var(--cyan);    border-color: rgba(0, 240, 255, 0.3); background: rgba(0, 240, 255, 0.06); }
.tier-badge.magenta { color: var(--magenta); border-color: rgba(255, 0, 102, 0.3); background: rgba(255, 0, 102, 0.06); }

/* Social orb */
.social-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 7rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.social-orb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}
.social-orb canvas {
  width: 100%;
  height: 100%;
}

/* AI Agents */
.agent-section {
  position: relative;
  z-index: 10;
  padding: 7rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 4rem;
}
.agent-card {
  background: var(--bg);
  padding: 2rem;
  text-align: center;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.agent-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 240, 255, 0.04));
  opacity: 0;
  transition: opacity 0.3s;
}
.agent-card:hover { background: rgba(0, 240, 255, 0.02); }
.agent-card:hover::after { opacity: 1; }
.agent-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 1rem;
}
.agent-title {
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.agent-desc {
  font-size: 0.88rem;
  color: rgba(180, 180, 220, 0.48);
  font-weight: 300;
  line-height: 1.6;
}

/* Terminal */
.terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  padding: 2rem;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  position: relative;
  margin-top: 3rem;
  overflow-x: auto;
}
.terminal::before {
  content: '● ● ●';
  position: absolute;
  top: 0.8rem;
  left: 1.2rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5rem;
}
.terminal-title {
  font-size: 0.6rem;
  text-align: center;
  color: rgba(200, 200, 255, 0.3);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
}
.t-comment { color: rgba(0, 240, 255, 0.35); }
.t-key     { color: var(--cyan); }
.t-val     { color: var(--gold); }
.t-str     { color: rgba(255, 150, 200, 0.8); }
.t-fn      { color: var(--magenta); }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

/* Groups */
.groups-section {
  position: relative;
  z-index: 10;
  padding: 7rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.group-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.group-card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--glass);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.group-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.04);
}
.group-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.group-card:hover::before { opacity: 1; }
.group-tag {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--magenta);
  margin-bottom: 0.8rem;
}
.group-name {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}
.group-count {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: rgba(0, 240, 255, 0.5);
  margin-bottom: 0.8rem;
}
.group-desc {
  font-size: 0.88rem;
  color: rgba(180, 180, 220, 0.5);
  font-weight: 300;
  line-height: 1.6;
}
.group-join {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.3rem 0.8rem;
  margin-top: 1rem;
  transition: background 0.3s;
  cursor: none;
  background: none;
  text-decoration: none;
}
.group-join:hover { background: rgba(0, 240, 255, 0.1); }

/* Timeline */
.timeline {
  position: relative;
  z-index: 10;
  padding: 7rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.tl-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4rem;
  border-left: 1px solid var(--border);
  padding-left: 3rem;
}
.tl-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -3.35rem;
  top: 3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.tl-phase {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  padding-top: 0.3rem;
}
.tl-title {
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.tl-desc {
  font-size: 0.93rem;
  color: rgba(180, 180, 220, 0.5);
  font-weight: 300;
  line-height: 1.6;
}

/* CTA */
.cta-section {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 9rem 4rem;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139, 0, 255, 0.13) 0%, transparent 70%);
  pointer-events: none;
}
.cta-glow2 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.09) 0%, transparent 60%);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}
.cta-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 1.2rem;
  position: relative;
}
.cta-title span {
  display: block;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
}
.cta-desc {
  font-size: 1.1rem;
  color: rgba(180, 180, 220, 0.52);
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-input-group {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: rgba(0, 240, 255, 0.03);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.cta-input {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  outline: none;
  min-width: 0;
}
.cta-input::placeholder { color: rgba(200, 200, 255, 0.22); }
.cta-submit {
  font-family: var(--f-display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  padding: 1rem 1.4rem;
  background: var(--cyan);
  color: #000;
  border: none;
  cursor: none;
  font-weight: 700;
  transition: background 0.3s;
}
.cta-submit:hover { background: #fff; }

/* Footer */
footer.site-footer {
  position: relative;
  z-index: 10;
  padding: 2.5rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--f-display);
  font-size: 1.1rem;
}
.footer-logo .you { color: rgba(255, 255, 255, 0.35); }
.footer-logo .tab { color: rgba(0, 240, 255, 0.35); }
.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: rgba(200, 200, 255, 0.18);
  letter-spacing: 0.15em;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
}
.footer-links a {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: rgba(200, 200, 255, 0.25);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--cyan); }

/* Responsive */
@media (max-width: 900px) {
  section.section,
  .social-section,
  .star-section,
  .agent-section,
  .groups-section,
  .timeline,
  .cta-section,
  .voice-section { padding: 4rem 1.5rem; }
  .star-inner    { grid-template-columns: 1fr; gap: 3rem; }
  .social-section{ grid-template-columns: 1fr; gap: 3rem; }
  .features      { grid-template-columns: 1fr 1fr; }
  .agent-grid    { grid-template-columns: 1fr 1fr; }
  .group-cards   { grid-template-columns: 1fr; }
  .stats-bar     { flex-wrap: wrap; }
  .stat          { min-width: 50%; }
  footer.site-footer { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
}
