/* Base Variables */
:root {
  --primary: #C62828;
  --primary-light: #FF5252;
  --primary-dark: #8E0000;
  --accent: #1E88E5;
  --accent-light: #6AB7FF;
  --accent-dark: #005CB2;
  --dark: #212121;
  --light: #FFFFFF;
  --gray: #757575;
  --gray-light: #F5F5F5;
  --gradient: linear-gradient(135deg, #C62828 0%, #8E0000 100%);
  --accent-gradient: linear-gradient(135deg, #1E88E5 0%, #005CB2 100%);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 8px 30px rgba(198, 40, 40, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #FFFFFF;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
header {
  background-color: var(--light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

/* Navigation */
#menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-button span {
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul li a {
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  padding-bottom: 5px;
  position: relative;
}

nav ul li a:not(.cta-button)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

nav ul li a:hover:not(.cta-button) {
  color: var(--primary);
}

nav ul li a:hover:not(.cta-button)::after {
  width: 100%;
}

.cta-button {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Button Styles */
.primary-button {
  background: var(--gradient);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.primary-button span {
  transition: var(--transition);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.primary-button:hover span {
  transform: translateX(5px);
}

.secondary-button {
  background: transparent;
  color: var(--primary);
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.secondary-button:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
  background-color: var(--gray-light);
}

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

.hero-content {
  position: relative;
}

.accent-box {
  position: absolute;
  width: 50px;
  height: 200px;
  background: var(--primary);
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  opacity: 0.6;
}

.hero-content h1 {
  color: var(--dark);
  margin-bottom: 20px;
  position: relative;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: var(--primary);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-element {
  position: relative;
  width: 300px;
  height: 300px;
}

.tech-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: var(--shadow-strong);
  animation: pulse 3s infinite alternate;
}

.tech-lines span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border: 2px dashed rgba(198, 40, 40, 0.3);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.tech-lines span:nth-child(2) {
  width: 270px;
  height: 270px;
  animation-direction: reverse;
  animation-duration: 25s;
}

.tech-lines span:nth-child(3) {
  width: 300px;
  height: 300px;
  animation-duration: 30s;
}

.ai-badge {
  position: absolute;
  bottom: 50px;
  right: 30px;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: var(--shadow);
  transform: rotate(5deg);
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Section Styles */
.section-title {
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  font-size: 2.5rem;
}

.section-title span {
  color: var(--primary);
  position: relative;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 50px;
  font-size: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Best Generator Section */
.best-generator {
  padding: 100px 0;
  background-color: white;
}

.generation-steps {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 30px;
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -45px;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C62828'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  transform: translateY(-50%);
}

.step:last-child::after {
  display: none;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.step-icon {
  margin-bottom: 20px;
}

.step h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.step p {
  color: var(--gray);
}

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

/* Why Best Section */
.why-best {
  padding: 100px 0;
  background-color: var(--gray-light);
}

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

.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: var(--gradient);
  color: white;
}

.testimonials .section-title {
  color: white;
  margin-bottom: 50px;
}

.testimonials .section-title span {
  color: var(--accent-light);
}

.testimonials .section-title span::after {
  background-color: var(--accent-light);
}

.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background-color: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--gray-light);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.faq-item p {
  color: var(--gray);
}

/* CTA Section */
.final-cta {
  padding: 100px 0;
  background-color: var(--gray-light);
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
  background: var(--gradient);
  color: white;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-strong);
}

.cta-box h2 {
  margin-bottom: 20px;
}

.cta-box p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-box .primary-button {
  background: white;
  color: var(--primary);
}

.cta-box .primary-button:hover {
  background: var(--gray-light);
}

/* Footer */
footer {
  padding: 80px 0 30px;
  background-color: var(--dark);
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 5px;
}

.footer-brand p {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-menu h4 {
  color: var(--primary-light);
  margin-bottom: 20px;
}

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

.footer-menu ul li a,
.footer-menu ul li {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-menu ul li a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .accent-box {
    display: none;
  }
  
  .hero-content h1::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .generation-steps {
    flex-direction: column;
  }
  
  .step::after {
    top: auto;
    bottom: -45px;
    right: 50%;
    transform: translateX(50%) rotate(90deg);
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-around;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: flex;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }
  
  #menu-toggle:checked ~ nav {
    max-height: 400px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 40px 20px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .stats {
    flex-direction: column;
  }
  
  .stat {
    margin-bottom: 30px;
  }
}
