@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Dark theme colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-glass-active: rgba(255, 255, 255, 0.12);
  
  --accent-primary: #00d9ff;
  --accent-secondary: rgba(0, 217, 255, 0.3);
  --accent-tertiary: rgba(0, 217, 255, 0.1);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-hover: rgba(255, 255, 255, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
  
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  --blur-sm: blur(8px);
  --blur-md: blur(12px);
  --blur-lg: blur(20px);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --bg-glass-active: rgba(0, 0, 0, 0.1);
  
  --accent-primary: #0066cc;
  --accent-secondary: rgba(0, 102, 204, 0.2);
  --accent-tertiary: rgba(0, 102, 204, 0.1);
  
  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-hover: rgba(0, 0, 0, 0.2);
  
  --text-primary: #1a1a1a;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-tertiary: rgba(0, 0, 0, 0.5);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(0, 102, 204, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.logo-icon {
  color: var(--accent-primary);
  position: relative;
  top: 2px;
}

.logo-subtitle {
  font-size: 9px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1;
  margin-left: 28px;
}

.developed-with-ai {
  font-weight: 700;
  font-size: 9px;
  background: linear-gradient(135deg, #6764f3 0%, #7861f2 50%, #865cf5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.theme-icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="light"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 24px;
  backdrop-filter: var(--blur-sm);
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #00a8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
}

.btn-primary {
  background: var(--accent-primary);
  color: #0a0a0a;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-sm);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color-hover);
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-preview {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: var(--blur-md);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.code-dots span:nth-child(1) {
  background: #ff5f56;
}

.code-dots span:nth-child(2) {
  background: #ffbd2e;
}

.code-dots span:nth-child(3) {
  background: #27c93f;
}

.code-title {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.code-content {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.code-line {
  margin-bottom: 4px;
}

.code-keyword {
  color: var(--accent-primary);
}

.code-string {
  color: #00ff88;
}

.code-comment {
  color: var(--text-tertiary);
  font-style: italic;
}

.code-variable {
  color: #ffbd2e;
}

.code-function {
  color: #9d4edd;
}

.code-property {
  color: #00d9ff;
}

.code-text {
  color: var(--text-primary);
}

.user-prompt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.prompt-label {
  color: var(--accent-primary);
  font-weight: 600;
  flex-shrink: 0;
}

.prompt-text {
  color: var(--text-primary);
  flex: 1;
}

.ai-response {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 100px;
}

.ai-label {
  color: #00ff88;
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 2px;
}

.code-output {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
}

.code-output .cursor {
  display: inline-block;
  margin-left: 2px;
}

.cursor {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 400;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-description {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: var(--blur-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  background: var(--bg-glass-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tertiary);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--bg-primary);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 28px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 24px 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-actions {
    justify-content: center;
  }

  .section-title {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-title {
    font-size: 32px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

