/* landing-communities.css -- unique styles from communities/index.html */

.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7b61ff20 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, #00d4ff15 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid #7b61ff40;
  border-radius: 24px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease both;
}

.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite;
}

.hero__badge span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-secondary), #a78bfa, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__stat { text-align: center; }

.hero__stat-value {
  font-size: 28px; font-weight: 700; color: var(--text-primary);
}

.hero__stat-value .accent { color: var(--accent-secondary); }

.hero__stat-label {
  font-size: 13px; color: var(--text-muted); margin-top: 4px;
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
}

.events-section {
  padding: 100px 0;
}

.events-section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  color: var(--accent-secondary);
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin: 0 auto;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
}

.event-card:hover::before { opacity: 1; }

.event-card--join::before { background: var(--success); }

.event-card--join:hover { border-color: #00e68a40; }

.event-card--leave::before { background: #ff5060; }

.event-card--leave:hover { border-color: #ff506040; }

.event-card--create::before { background: var(--accent); }

.event-card--create:hover { border-color: #00d4ff40; }

.event-card--follow::before { background: #a78bfa; }

.event-card--follow:hover { border-color: #a78bfa40; }

.event-card--follow .event-card__icon { background: #a78bfa18; }

.event-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.event-card--join .event-card__icon { background: #00e68a18; }

.event-card--leave .event-card__icon { background: #ff506018; }

.event-card--create .event-card__icon { background: #00d4ff18; }

.event-card__title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }

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

@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; }
}

.how-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-section__header {
  text-align: center;
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7b61ff80, var(--accent-secondary), #7b61ff80, transparent);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid #7b61ff60;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px; font-weight: 700;
  color: var(--accent-secondary);
  transition: all 0.3s ease;
}

.step:hover .step__number {
  background: #7b61ff15;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 24px #7b61ff30;
}

.step__title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

.step__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

.features-section {
  padding: 100px 0;
}

.features-section__header {
  text-align: center;
  margin-bottom: 64px;
}

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

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #7b61ff40;
  background: var(--bg-card-hover);
}

.feature-item__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #7b61ff18;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.feature-item__title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

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

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

.webhook-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.webhook-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.webhook-code {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.webhook-code__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}

.webhook-code__header .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: #7b61ff40;
}

.price-card--featured {
  border-color: #7b61ff60;
  background: linear-gradient(180deg, var(--bg-card-hover), var(--bg-card));
  box-shadow: 0 0 40px #7b61ff15;
}

.price-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-secondary), #a78bfa);
}

.price-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #7b61ff18;
  color: var(--accent-secondary);
  border: 1px solid #7b61ff40;
  white-space: nowrap;
}

.price-card__name {
  font-size: 18px; font-weight: 600; margin-bottom: 4px;
}

.price-card__accounts {
  font-size: 13px; color: var(--text-muted); margin-bottom: 20px;
}

.price-card__price { margin-bottom: 24px; }

.price-card__amount {
  font-size: 42px; font-weight: 800; line-height: 1;
}

.price-card__amount .currency {
  font-size: 22px; vertical-align: top; color: var(--text-muted);
}

.price-card__period {
  font-size: 14px; color: var(--text-muted); margin-top: 4px;
}

.price-card__per {
  font-size: 12px; color: var(--accent-secondary); margin-top: 4px;
}

.price-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.price-card__features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}

.price-card__features li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #7b61ff18;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%237b61ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.hero .container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}

.pricing-section {
  padding: 100px 0;
}

.pricing-section__header {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-more {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-more strong { color: var(--text-primary); }

.price-card .btn { width: 100%; justify-content: center; }

.webhook-code__body {
  padding: 24px;
  overflow-x: auto;
}

.webhook-code__body pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre;
  margin: 0;
}

.webhook-code__body .kw { color: var(--accent-secondary); }
.webhook-code__body .str { color: var(--success); }
.webhook-code__body .num { color: var(--warning); }
.webhook-code__body .comment { color: var(--text-muted); }
.webhook-code__body .prop { color: var(--accent); }

.faq-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7b61ff15 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 138, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0, 230, 138, 0); }
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: 600px; }
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}
