/* Modern Landing Page Styles - Redesign */
:root {
  --primary-color: #0f172a;
  --secondary-color: #1e293b;
  --accent-color: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --card-bg: rgba(30, 41, 59, 0.7);
  --nav-bg: rgba(15, 23, 42, 0.8);
  --container-width: 1200px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body.landing-page {
  font-family: var(--font-body);
  background-color: var(--primary-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  height: 70px;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.logo-accent {
  color: var(--accent-color);
  margin-left: 2px;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--secondary-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(-150%);
  transition: transform 0.4s ease;
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-nav-link {
  font-size: 1.1rem;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent-color);
  background: rgba(139, 92, 246, 0.1);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(217, 70, 239, 0.15) 0%, transparent 25%);
  z-index: -1;
}

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

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.code-editor-preview {
  background: #282a36;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.code-editor-preview:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.editor-header {
  background: #21222c;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.red {
  background: #ff5555;
}

.control.yellow {
  background: #f1fa8c;
}

.control.green {
  background: #50fa7b;
}

.file-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.editor-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-line {
  display: flex;
}

.line-num {
  color: #6272a4;
  margin-right: 20px;
  user-select: none;
  min-width: 20px;
  text-align: right;
}

/* Syntax Highlighting */
.kwd {
  color: #ff79c6;
  margin-right: 4px;
}

.var {
  color: #f8f8f2;
}

.cls {
  color: #8be9fd;
}

.prop {
  color: #f1fa8c;
}

.str {
  color: #f1fa8c;
}

.bool {
  color: #bd93f9;
}

.func {
  color: #50fa7b;
}

.cmt {
  color: #6272a4;
  font-style: italic;
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--secondary-color);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Demo Section */
.demo {
  padding: 100px 0;
  position: relative;
  background: var(--primary-color);
  overflow: hidden;
}

.demo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.demo-showcase {
  position: relative;
  margin: 0 auto 40px;
  max-width: 1000px;
  perspective: 1500px;
  z-index: 2;
}

.browser-mockup {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s ease;
}

.browser-mockup:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.browser-header {
  background: #2d2d2d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-controls {
  display: flex;
  gap: 8px;
}

.browser-address-bar {
  flex: 1;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.browser-address-bar i {
  font-size: 0.75rem;
  color: var(--success-color, #4ade80);
}

.browser-content {
  background: #1e1e1e;
  height: 600px;
  position: relative;
}

.browser-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.demo-cta {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: var(--secondary-color);
}

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

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.accordion-item.active {
  border-color: var(--accent-color);
  background: rgba(139, 92, 246, 0.05);
}

.accordion-header {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
}

.accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.accordion-icon {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.footer {
  background: #0f172a;
  padding-top: 100px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

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

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 80px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

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

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent-color);
  padding-left: 0;
  text-decoration: underline;
}

/* Newsletter */
.newsletter-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.newsletter-form .input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
  transition: border-color 0.3s ease;
}

.newsletter-form .input-group:focus-within {
  border-color: var(--accent-color);
}

.newsletter-form input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 10px 15px;
  width: 100%;
  outline: none;
  font-family: var(--font-body);
}

.btn-icon {
  background: var(--accent-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: #d946ef;
}

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
  .container {
    padding: 0 30px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .demo-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .demo-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .logo {
    font-size: 1.4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .footer-brand {
    text-align: center;
  }

  .footer-desc {
    margin: 0 auto 30px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-column {
    text-align: center;
  }

  /* FAQ Mobile */
  .accordion-item {
    margin-bottom: 12px;
  }

  .accordion-header {
    padding: 16px;
  }

  .accordion-body {
    padding: 0 16px 16px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }
  
  .logo-accent {
    margin-left: 1px;
  }
}