/* ============================================
   FRIENDLY SYSTEM GROUP - Main Styles
   ============================================ */

/* Variables */
:root {
  --fsg-primary: #0066FF;
  --fsg-primary-dark: #0052CC;
  --fsg-secondary: #6C5CE7;
  --fsg-accent: #00D9FF;
  --fsg-success: #00B894;
  --fsg-dark: #0F0F23;
  --fsg-darker: #080816;
  --fsg-gray: #8892B0;
  --fsg-light: #F8FAFC;
  --fsg-gradient: linear-gradient(135deg, #0066FF 0%, #6C5CE7 50%, #00D9FF 100%);
  --fsg-gradient-green: linear-gradient(135deg, #00B894 0%, #55EFC4 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--fsg-darker);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-primary {
  background: var(--fsg-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 22, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 22, 0.98);
  box-shadow: var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: var(--fsg-gray);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 10px 24px !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  padding: 20px;
  background: var(--fsg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu a {
  color: var(--fsg-gray);
  font-size: 16px;
  padding: 10px 0;
  display: block;
}

.mobile-menu .btn {
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 15px 20px;
  }

  .nav-links, .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu.active {
    display: block;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  padding: 12px 24px;
  border-radius: 50px;
  color: var(--fsg-accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--fsg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--fsg-gray);
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fsg-gray);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-badge {
  display: inline-block;
  background: rgba(0, 102, 255, 0.1);
  color: var(--fsg-primary);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-badge.badge-green {
  background: rgba(0, 184, 148, 0.15);
  color: var(--fsg-success);
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--fsg-gray);
  font-size: 18px;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: 120px 0;
  background: var(--fsg-darker);
}

.products-alt {
  background: var(--fsg-dark);
}

.products-free {
  background: linear-gradient(180deg, var(--fsg-dark) 0%, var(--fsg-darker) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.products-grid.featured {
  grid-template-columns: repeat(3, 1fr);
}

.products-grid.single {
  max-width: 800px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
  .products-grid.featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fsg-gradient);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}

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

.product-card.card-large {
  text-align: center;
  padding: 60px;
}

.product-card.card-large .product-icon {
  margin: 0 auto 30px;
}

.product-card.card-large .btn {
  margin-top: 30px;
}

.product-logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  object-fit: contain;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.product-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  color: #fff;
}

.product-icon.blue { background: linear-gradient(135deg, #0066FF, #00D9FF); }
.product-icon.purple { background: linear-gradient(135deg, #6C5CE7, #A29BFE); }
.product-icon.green { background: linear-gradient(135deg, #00B894, #55EFC4); }
.product-icon.teal { background: linear-gradient(135deg, #1ABC9C, #16A085); }
.product-icon.pink { background: linear-gradient(135deg, #E91E63, #9C27B0); }
.product-icon.orange { background: linear-gradient(135deg, #F39C12, #F1C40F); }

.product-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-tag {
  display: inline-block;
  color: var(--fsg-accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-card > p {
  color: var(--fsg-gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  margin-bottom: 24px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li i {
  color: var(--fsg-accent);
  font-size: 11px;
}

.product-features.horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.product-features.horizontal li {
  border: none;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fsg-primary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.product-link:hover {
  gap: 14px;
}

.free-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--fsg-gradient-green);
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.app-store-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.app-store-btn i {
  font-size: 20px;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--fsg-dark) 0%, var(--fsg-darker) 100%);
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fsg-gradient);
  opacity: 0.03;
}

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

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat {
  text-align: center;
}

.stat-number {
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 800;
  background: var(--fsg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--fsg-gray);
  font-size: 16px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: var(--fsg-gradient);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  filter: blur(100px);
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

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

.cta p {
  color: var(--fsg-gray);
  font-size: 18px;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #050510;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand p {
  color: var(--fsg-gray);
  margin-top: 20px;
  font-size: 14px;
}

.footer-logo {
  height: 50px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

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

.footer-links a {
  color: var(--fsg-gray);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--fsg-gray);
  font-size: 13px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}
