/* =====================================================
   GramChat Landing Page Styles
   ===================================================== */

/* Variables */
:root {
  --primary-color: #0088CC;
  --primary-dark: #0066AA;
  --success-color: #28A745;
  --dark-color: #212529;
  --text-color: #4A5568;
  --light-bg: #F8F9FA;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  color: var(--text-color);
  line-height: 1.7;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

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

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo i {
  font-size: 28px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #F5F7FF 0%, #FFFFFF 100%);
  overflow: hidden;
}

/* Dashboard Slider Styles */
.dashboard-slider {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.slider-container {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 136, 204, 0.2);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 450px;
  background: #f8f9fa;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 5px;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

@media (max-width: 768px) {
  .slider-track {
    height: 300px;
  }
  
  .slider-prev,
  .slider-next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .slider-prev {
    left: 10px;
  }
  
  .slider-next {
    right: 10px;
  }
}

/* Removed old dashboard animation styles - now using image slider */

/* Removed old chat animation styles - now using image slider */

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 136, 204, 0.1);
  color: var(--primary-color);
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--success-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: var(--text-color);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 24px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
}

.stat i {
  color: var(--success-color);
}

.hero-image {
  position: relative;
  animation: fadeIn 1s ease 0.4s both;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  animation: float 3s ease-in-out infinite;
}

.card-1 {
  top: 20px;
  left: -40px;
  color: var(--primary-color);
}

.card-2 {
  top: 50%;
  right: -40px;
  color: var(--success-color);
  animation-delay: 1s;
}

.card-3 {
  bottom: 20px;
  left: 20px;
  color: var(--primary-color);
  animation-delay: 2s;
}

/* Problems Section */
.problems {
  padding: 80px 0;
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-color);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.problem-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.problem-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 53, 69, 0.1);
  color: #DC3545;
  border-radius: 50%;
  font-size: 24px;
}

.problem-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

/* Solution Section */
.solution {
  padding: 80px 0;
}

.solution-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

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

.solution-item.reverse {
  direction: rtl;
}

.solution-item.reverse .solution-content {
  direction: ltr;
}

.solution-content h3 {
  margin-bottom: 16px;
}

.solution-content p {
  margin-bottom: 24px;
}

.solution-content ul {
  list-style: none;
}

.solution-content li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.solution-content li i {
  color: var(--success-color);
  font-size: 20px;
}

.solution-item img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--light-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(40, 167, 69, 0.1));
  color: var(--primary-color);
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  z-index: 0;
}

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

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.cta-center {
  text-align: center;
}

/* Coming Soon Section */
.coming-soon {
  padding: 80px 0;
  background: var(--light-bg);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.roadmap-item {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  border-top: 4px solid var(--border-color);
  transition: var(--transition);
}

.roadmap-item.active {
  border-top-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.roadmap-date {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 136, 204, 0.1);
  color: var(--primary-color);
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.roadmap-content h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.roadmap-content ul {
  list-style: none;
}

.roadmap-content li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.roadmap-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.newsletter {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  color: var(--white);
}

.newsletter h3 {
  color: var(--white);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 12px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
  margin-bottom: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--dark-color);
}

.currency {
  font-size: 24px;
  color: var(--text-color);
}

.period {
  color: var(--text-color);
}

.price-description {
  color: var(--text-color);
  font-size: 14px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.pricing-features li i {
  font-size: 20px;
}

.pricing-features li i.bi-check-circle-fill {
  color: var(--success-color);
}

.pricing-features li.disabled {
  opacity: 0.5;
}

.pricing-features li.disabled i {
  color: var(--text-color);
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: var(--light-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: #FFB400;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.8;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  font-weight: 600;
}

.author-name {
  font-weight: 600;
  color: var(--dark-color);
}

.author-position {
  font-size: 14px;
  color: var(--text-color);
}

/* FAQ Section */
.faq {
  padding: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.faq-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 18px;
}

.faq-question i {
  color: var(--primary-color);
  font-size: 20px;
  margin-top: 2px;
}

.faq-answer {
  padding-left: 32px;
  line-height: 1.8;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  text-align: center;
}

.cta-title {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
}

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

.footer-column h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 0;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

.text-danger {
  color: #DC3545;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-nav {
  padding: 20px;
}

.mobile-menu-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text-color);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-actions {
  padding: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .nav-actions {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    margin-top: 40px;
  }

  .solution-item,
  .solution-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .steps::before {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .hero {
    padding: 60px 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-card {
    display: none;
  }

  .problems-grid,
  .features-grid,
  .roadmap,
  .pricing-grid,
  .testimonials-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .section-header {
    margin-bottom: 40px;
  }

  .pricing-card {
    padding: 24px;
  }

  .amount {
    font-size: 36px;
  }
}