/* Global Reset & Styling Variables */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --accent-blue: #2563eb;
  --accent-purple: #4f46e5;
  --accent-cyan: #0284c7;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --glass-border: rgba(37, 99, 235, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  --gradient-glow: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(248, 250, 252, 0) 70%);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  height: 36px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  height: 32px;
  max-width: 42px;
}

.logo-icon {
  font-family: 'Material Icons Round';
  font-size: 28px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-blue);
}

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background-color: rgba(59, 130, 246, 0.06);
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.auth-button .auth-icon {
  font-family: 'Material Icons Round';
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: var(--transition-smooth);
}

.auth-button .auth-text {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.auth-button:hover {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.auth-button:hover .auth-icon {
  transform: translateX(2px);
}

.cta-button {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-btn .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 160px 24px 80px 24px;
  background-image: radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 1.2;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background-color: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  position: relative;
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--gradient-glow);
  z-index: 1;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--glass-border);
  z-index: 2;
  position: relative;
  transition: var(--transition-smooth);
}

.hero-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(37, 99, 235, 0.15);
}

/* Stats Section */
.stats-section {
  padding: 40px 24px;
  background-color: var(--bg-secondary);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 24px;
}

.stat-card {
  flex: 1;
  padding: 24px;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-top: 12px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.feature-icon-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.feature-icon-wrapper span {
  font-size: 28px;
  color: #fff;
}

.feature-icon-wrapper.color-1 {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.feature-icon-wrapper.color-2 {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.feature-icon-wrapper.color-3 {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Assistant & Chat Simulator */
.assistant-section {
  padding: 100px 24px;
  background-color: var(--bg-secondary);
}

.assistant-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.assistant-content {
  flex: 1;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 32px;
}

.preset-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-btn {
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition: var(--transition-smooth);
}

.question-btn:hover {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.15);
}

.question-btn.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.assistant-chat {
  flex: 1;
  height: 480px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(37, 99, 235, 0.03);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar span {
  font-size: 22px;
  color: #fff;
}

.chat-header-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.chat-header-info .status-indicator {
  font-size: 11px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-info .status-indicator::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

.chat-messages {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.chat-message.user {
  align-self: flex-end;
  background-color: var(--accent-blue);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-message.bot {
  align-self: flex-start;
  background-color: #f1f5f9;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.chat-message .time {
  font-size: 10px;
  align-self: flex-end;
  margin-top: 4px;
}

.chat-message.user .time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-message.bot .time {
  color: rgba(15, 23, 42, 0.5);
}

/* Dashboard Preview & Browser Mockup */
.preview-section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.preview-browser {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(15, 23, 42, 0.08);
  background: var(--bg-secondary);
}

.browser-header {
  padding: 12px 20px;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 24px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.browser-dots span:nth-child(1) { background-color: #ef4444; }
.browser-dots span:nth-child(2) { background-color: #f59e0b; }
.browser-dots span:nth-child(3) { background-color: #10b981; }

.browser-address {
  background-color: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 4px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-grow: 1;
  max-width: 480px;
  font-family: monospace;
}

.preview-image {
  width: 100%;
  display: block;
}

/* Contact & CTA Section */
.contact-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  width: 100%;
  padding: 64px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.contact-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.contact-form-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  background-color: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.contact-form input {
  flex-grow: 1;
  border: none;
  background: none;
  color: var(--text-primary);
  font-family: inherit;
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
}

.contact-form input::placeholder {
  color: var(--text-secondary);
}

.contact-form button {
  padding: 10px 24px;
}

.success-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #10b981;
  font-weight: 600;
  font-size: 16px;
  margin-top: 16px;
}

/* Footer */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--glass-border);
  background-color: var(--bg-primary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-message {
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .assistant-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .assistant-content, .assistant-chat {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .mobile-menu-btn {
    display: flex;
    z-index: 1100;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px;
    gap: 24px;
    transition: var(--transition-smooth);
    z-index: 1050;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hero Section */
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    margin: 0 auto 32px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    flex-direction: column;
    background: none;
    border: none;
    padding: 0;
  }
  
  .contact-form input {
    background-color: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 8px;
  }
  
  .contact-form button {
    border-radius: 8px;
  }
}
