/* ============================================================
   GROWZY PREMIUM — Homepage / index.php styles
   ============================================================ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.3) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 80% 50%, rgba(0,229,255,0.12) 0%, transparent 60%),
              var(--bg);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  animation: heroFade 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  animation: heroFade 0.8s 0.1s ease both;
}

.hero-sub {
  font-size: 17px;
  color: var(--text);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
  animation: heroFade 0.8s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: heroFade 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: heroFade 0.8s 0.4s ease both;
}

.hero-stat-item { }
.hero-stat-item strong {
  display: block;
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
}
.hero-stat-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* Hero visual side */
.hero-visual {
  position: relative;
  animation: heroFadeRight 0.9s 0.2s ease both;
}

.hero-mockup-wrap {
  position: relative;
  padding: 32px;
}

.hero-card-float {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-card-float::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
}

.platform-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.platform-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.platform-icon.yt  { background: rgba(255,0,0,0.15); }
.platform-icon.ig  { background: rgba(225,48,108,0.15); }
.platform-icon.tg  { background: rgba(0,136,204,0.15); }

.hero-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero-metric {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.hero-metric strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-metric span { font-size: 11px; color: var(--text-muted); }

.floating-badge {
  position: absolute;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.floating-badge.top-right {
  top: -16px; right: -16px;
  animation: float 3s ease-in-out infinite;
}

.floating-badge.bottom-left {
  bottom: -16px; left: -16px;
  animation: float 3s 1.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Features section ── */
.features-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative;
}

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

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: all 0.35s;
}

.feature-card:hover .feature-icon {
  background: var(--grad-main);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(124,58,237,0.5);
}

.feature-title {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ── Stats section ── */
.stats-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}

.stat-item {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-main);
  font-size: 48px;
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 15px;
  color: var(--text);
  margin-top: 8px;
}

/* ── Collaboration section ── */
.collab-section {
  background: var(--bg);
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.collab-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.collab-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.collab-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.35);
  box-shadow: var(--shadow-glow);
}

.collab-card:hover::before { transform: scaleX(1); }

.collab-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.3);
  margin: 0 auto 16px;
  display: block;
  transition: box-shadow 0.35s;
}

.collab-card:hover .collab-avatar {
  box-shadow: 0 0 0 3px var(--primary), 0 0 24px rgba(124,58,237,0.4);
}

.collab-name {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.collab-review {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collab-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.collab-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s;
}

.collab-link-btn.yt {
  background: rgba(255,0,0,0.12);
  color: #FF6B6B;
  border: 1px solid rgba(255,0,0,0.2);
}
.collab-link-btn.yt:hover { background: rgba(255,0,0,0.25); }
.collab-link-btn.ig {
  background: rgba(225,48,108,0.12);
  color: #F472B6;
  border: 1px solid rgba(225,48,108,0.2);
}
.collab-link-btn.ig:hover { background: rgba(225,48,108,0.25); }

/* ── Testimonials ── */
.testimonials-section { background: var(--bg2); }

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.35s;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: var(--shadow-glow);
}

.testimonial-quote {
  font-size: 36px;
  color: var(--primary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-name {
  font-weight: 700;
  color: var(--white);
  font-size: 14px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

.star-row {
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── Pricing section ── */
.pricing-section { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(124,58,237,0.12), rgba(0,229,255,0.05));
  box-shadow: var(--shadow-glow);
}

.pricing-card:hover:not(.featured) {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.35);
  box-shadow: var(--shadow-md);
}

.featured-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--grad-main);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.plan-name {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-main);
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.plan-price .currency { font-size: 22px; vertical-align: top; margin-top: 8px; display: inline-block; }
.plan-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.plan-features {
  flex: 1;
  margin-bottom: 28px;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.plan-feature-item:last-child { border-bottom: none; }

.plan-feature-item i {
  color: var(--success);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── FAQ section ── */
.faq-section { background: var(--bg2); }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open { border-color: rgba(124,58,237,0.4); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
  user-select: none;
  gap: 16px;
}

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(124,58,237,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--primary-l);
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-item.open .faq-icon {
  background: var(--grad-main);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ── Contact section ── */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--primary-l);
}

.contact-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-value { color: var(--white); font-weight: 500; font-size: 15px; margin-top: 2px; }

/* ── Footer ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .brand-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 14px;
  color: var(--text);
  transition: color 0.25s;
}

.footer-link:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── CTA banner ── */
.cta-banner {
  background: var(--grad-main);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(0,0,0,0.2) 0%, transparent 50%);
}

.cta-banner .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.cta-banner .btn-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
}

/* ── Auth modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.25s;
}

.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.modal-title {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Buy plan modal ── */
.plan-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.plan-option {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;
}

.plan-option:hover, .plan-option.selected {
  border-color: var(--primary);
  background: rgba(124,58,237,0.1);
}

.plan-option .plan-opt-name { font-size: 12px; font-weight: 600; color: var(--text); }
.plan-option .plan-opt-price { font-size: 18px; font-weight: 800; color: var(--white); font-family: var(--font-main); }

/* Animations */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-cols { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .cta-banner { padding: 40px 28px; margin: 0; border-radius: var(--radius-lg); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; }
}
