/* 
   ImmTelecom Premium CSS Design System
   Theme: Magical Space Aurora / Mystic Celestial Vibe
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-color: #05040b;
  --bg-gradient: radial-gradient(circle at 50% 0%, #100b26 0%, #05040b 100%);
  --card-bg: rgba(20, 15, 38, 0.4);
  --card-border: rgba(167, 139, 250, 0.08);
  --card-hover-border: rgba(217, 70, 239, 0.4);
  --text-primary: #f3f4f6;
  --text-secondary: #c7d2fe;
  --text-muted: #818cf8;
  --accent-primary: #d946ef;
  --accent-secondary: #06b6d4;
  --accent-magic: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #d946ef 0%, #a78bfa 50%, #06b6d4 100%);
  --accent-glow: 0 0 25px rgba(167, 139, 250, 0.35);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Magical Background Nebula Glows */
body::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.12) 0%, transparent 70%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  animation: float-nebula-1 25s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: absolute;
  top: 400px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  animation: float-nebula-2 30s ease-in-out infinite alternate;
}

.extra-nebula {
  position: absolute;
  top: 1200px;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  animation: float-nebula-3 28s ease-in-out infinite alternate;
}

@keyframes float-nebula-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 120px) scale(1.15); }
}

@keyframes float-nebula-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -50px) scale(0.9); }
}

@keyframes float-nebula-3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, -80px) scale(1.2); }
}

/* Stars Background Canvas Positioning */
#stars-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

/* Canvas background overlay for cursor trail */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Gradient Text */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(167, 139, 250, 0.15));
}

/* Glassmorphism utility with magical border glow */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* Interactive Buttons with Magic Spark Glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #0c0721;
  box-shadow: 0 4px 20px rgba(217, 70, 239, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(217, 70, 239, 0.6), 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(167, 139, 250, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.btn-secondary:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--accent-magic);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.2);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(5, 4, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.08);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0721;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-shadow: 0 0 12px rgba(217, 70, 239, 0.6);
}

/* Hero Section */
.hero {
  padding: 190px 0 110px 0;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: rgba(217, 70, 239, 0.08);
  border: 1px solid rgba(217, 70, 239, 0.25);
  border-radius: 50px;
  color: #d946ef;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.1);
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.15;
  margin-bottom: 1.8rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 3rem auto;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Stats Section */
.stats {
  padding: 3rem 0;
  margin-bottom: 6rem;
}

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

.stat-card {
  padding: 2.2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 70, 239, 0.2);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.05);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Features Section */
.section-title {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-bottom: 8rem;
}

.feature-card {
  padding: 2.8rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-hover-border);
  box-shadow: 0 15px 40px rgba(217, 70, 239, 0.08), 0 0 20px rgba(6, 182, 212, 0.05);
}

.feature-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: rgba(167, 139, 250, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  color: var(--accent-magic);
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.15);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  color: #fff;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Pricing Section - Horizontal Cards in magic theme */
.pricing {
  margin-bottom: 8rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 1.8rem;
  align-items: stretch;
}

.pricing-card {
  flex: 1;
  padding: 3.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent-magic);
  box-shadow: 0 0 35px rgba(167, 139, 250, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured::after {
  content: 'RECOMMENDED';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.3rem 1rem;
  background: var(--accent-gradient);
  color: #0c0721;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.4);
}

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

.pricing-card.featured:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 45px rgba(217, 70, 239, 0.25), 0 0 20px rgba(6, 182, 212, 0.15);
}

.pricing-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.pricing-header .plan-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
}

.price {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  color: #fff;
}

.price span {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 3rem;
}

.pricing-features li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pricing-features li::before {
  content: '✦';
  color: var(--accent-magic);
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
}

.pricing-card .btn {
  width: 100%;
}

/* User Reviews Section */
.reviews {
  margin-bottom: 8rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.review-card {
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.18);
}

.review-content {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2.2rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
}

.review-content::before {
  content: '“';
  font-family: var(--font-title);
  font-size: 5rem;
  color: rgba(217, 70, 239, 0.08);
  position: absolute;
  top: -2.5rem;
  left: -1rem;
  line-height: 1;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: #0c0721;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.user-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.user-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* FAQ Section */
.faq {
  margin-bottom: 8rem;
}

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

.faq-item {
  margin-bottom: 1.8rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 1.8rem;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-question::after {
  content: '✦';
  font-size: 1.1rem;
  color: var(--accent-magic);
  transition: var(--transition-smooth);
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}

.faq-item.active {
  border-color: rgba(217, 70, 239, 0.3);
  background: rgba(20, 15, 38, 0.6);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.05);
}

.faq-item.active .faq-question::after {
  content: '✦';
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.8rem;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.8rem 1.8rem 1.8rem;
}

/* SEO Articles Section */
.articles-sec {
  margin-bottom: 8rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.article-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-hover-border);
  box-shadow: 0 15px 40px rgba(217, 70, 239, 0.06);
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  line-height: 1.45;
  color: #fff;
  transition: var(--transition-smooth);
}

.article-card:hover h3 {
  color: var(--accent-magic);
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.read-more {
  color: var(--accent-magic);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more::after {
  content: '✦';
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.article-card:hover .read-more::after {
  transform: translateX(4px) rotate(45deg);
}

/* Call to Action Banner */
.cta-banner {
  padding: 6rem;
  text-align: center;
  margin-bottom: 8rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(50px);
}

.cta-banner h2 {
  font-size: 3.2rem;
  margin-bottom: 1.8rem;
  color: #fff;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 3rem auto;
  font-size: 1.15rem;
}

/* Footer & PBN Links */
footer {
  padding: 5rem 0 2.5rem 0;
  border-top: 1px solid rgba(167, 139, 250, 0.08);
  background: #030207;
  text-align: center;
}

footer .footer-logo {
  margin-bottom: 1.8rem;
  display: inline-flex;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 450px;
  margin: 0 auto 2.2rem auto;
}

/* Friendship Links Section - Low-key, elegant, dofollow */
.friend-links {
  margin: 2.2rem auto 2.8rem auto;
  padding: 1.1rem 0;
  border-top: 1px dashed rgba(167, 139, 250, 0.1);
  border-bottom: 1px dashed rgba(167, 139, 250, 0.1);
  max-width: 650px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.friend-links span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.friend-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.friend-links a:hover {
  color: var(--accent-magic);
  text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2.2rem;
}

/* Article Page Template Styles */
.article-page {
  padding-top: 150px;
  padding-bottom: 110px;
}

.article-header {
  max-width: 850px;
  margin: 0 auto 4.5rem auto;
  text-align: center;
}

.article-header h1 {
  font-size: 3.2rem;
  margin-bottom: 1.8rem;
  line-height: 1.25;
}

.article-meta-header {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 1.8rem;
}

.article-body {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 1.8rem;
}

.article-body h2 {
  font-size: 1.9rem;
  color: #fff;
  margin: 3rem 0 1.2rem 0;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
  padding-bottom: 0.6rem;
}

.article-body h3 {
  font-size: 1.5rem;
  color: #fff;
  margin: 2.2rem 0 1.2rem 0;
}

.article-body ul, .article-body ol {
  margin-left: 2.2rem;
  margin-bottom: 1.8rem;
}

.article-body li {
  margin-bottom: 0.6rem;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
  color: var(--accent-magic);
  font-weight: 500;
  font-size: 1rem;
}

.back-to-home:hover {
  transform: translateX(-4px);
}

.article-inner-links {
  background: rgba(167, 139, 250, 0.03);
  border: 1px solid rgba(167, 139, 250, 0.1);
  padding: 1.8rem;
  border-radius: 12px;
  margin: 3.5rem 0;
}

.article-inner-links h4 {
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  color: #fff;
}

.article-inner-links ul {
  list-style: none;
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.article-inner-links a {
  color: var(--accent-magic);
  font-size: 0.95rem;
}

.article-inner-links a:hover {
  text-decoration: underline;
  text-shadow: 0 0 5px rgba(167, 139, 250, 0.4);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.8rem;
  }
  .features-grid, .pricing-row, .reviews-grid, .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pricing-card {
    flex: none;
    width: 48%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  header .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .features-grid, .reviews-grid, .articles-grid {
    grid-template-columns: 1fr;
  }
  .pricing-row {
    flex-direction: column;
    align-items: center;
  }
  .pricing-card {
    width: 100%;
    margin-bottom: 2.2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .cta-banner {
    padding: 4.5rem 1.8rem;
  }
  .article-body {
    padding: 0 1.2rem;
  }
  .article-inner-links ul {
    grid-template-columns: 1fr;
  }
}
