/* Base Styles */
:root {
  --primary: #7F5AF0;    /* Purple */
  --secondary: #2CB67D;  /* Green */
  --accent: #FF8E3C;     /* Orange */
  --danger: #E45858;     /* Red */
  --background: #16161A; /* Near Black */
  --surface: #242629;    /* Dark Gray */
  --text: #FFFFFE;       /* White */
  --text-secondary: #94A1B2; /* Light Gray */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

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

.section-header h2 span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.4;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 1;
}

.btn:hover::after {
  width: 300%;
  height: 300%;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--primary), #9966FF);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

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

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

.btn-outline:hover {
  background: var(--secondary);
  color: var(--text);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

/* Header and Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(22, 22, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 101;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: var(--transition);
  border-radius: 2px;
}

.menu-button span:first-child {
  top: 0;
}

.menu-button span:nth-child(2) {
  top: 10px;
}

.menu-button span:last-child {
  top: 20px;
}

.menu-toggle:checked + .menu-button span:first-child {
  transform: rotate(45deg);
  top: 10px;
  background: var(--primary);
}

.menu-toggle:checked + .menu-button span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked + .menu-button span:last-child {
  transform: rotate(-45deg);
  top: 10px;
  background: var(--primary);
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list li a {
  color: var(--text);
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

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

.nav-list li a:hover {
  color: var(--primary);
}

.nav-list li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 9rem 0 5rem;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), transparent);
  opacity: 0.1;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--secondary), transparent);
  opacity: 0.1;
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content h1 span {
  display: block;
  color: var(--primary);
  position: relative;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

/* Chat Demo Styles */
.hero-visual {
  position: relative;
}

.chat-demo {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header {
  background: var(--primary);
  color: var(--text);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.chat-messages {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 300px;
}

.message {
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.bubble {
  padding: 1rem;
  border-radius: var(--radius-sm);
  max-width: 80%;
}

.message.user .bubble {
  background: var(--primary);
  color: var(--text);
  border-bottom-right-radius: 0;
}

.message.bot .bubble {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-bottom-left-radius: 0;
}

.chat-input {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.input-placeholder {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  flex: 1;
  color: var(--text-secondary);
}

.send-button {
  background: var(--text);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.send-button:hover {
  transform: scale(1.1);
}

/* Features Section */
.features {
  padding: 6rem 0;
  position: relative;
  background: var(--surface);
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(127, 90, 240, 0.3);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  margin-bottom: 2rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--text);
}

/* Demo Section */
.demo {
  padding: 6rem 0;
  background: var(--background);
}

.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 25px;
  width: 2px;
  height: calc(100% + 1rem);
  background: var(--primary);
  opacity: 0.2;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  background: var(--surface);
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--background);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 1px solid var(--primary);
}

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

.pricing-card.featured:hover {
  transform: translateY(-10px) scale(1.05);
}

.ribbon {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary);
  color: var(--text);
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.plan-header {
  margin-bottom: 2rem;
}

.plan-header h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.description {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.plan-features {
  text-align: left;
  margin-bottom: 2rem;
}

.plan-features li {
  padding: 0.8rem 0;
  position: relative;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.plan-features li.not-included {
  opacity: 0.5;
  text-decoration: line-through;
}

.plan-features li.not-included::before {
  content: '✕';
  color: var(--danger);
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
  background: var(--background);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.faq-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(45deg, var(--primary), #9966FF);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta .btn-primary {
  background: var(--text);
  color: var(--primary);
}

.cta .btn-primary:hover {
  background: var(--background);
}

/* Footer */
.site-footer {
  background: var(--background);
  padding: 5rem 0 1rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

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

.footer-col h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

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

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 2;
    text-align: center;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .menu-button {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 100;
  }
  
  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto 1.5rem;
  }
  
  .step:not(:last-child)::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
