:root {
  --bg-color: #0d0d12;
  --bg-gradient: linear-gradient(135deg, #0d0d12 0%, #15151e 100%);
  --text-primary: #f8f9fa;
  --text-secondary: #9ca3af;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Header */
header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.8);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-symbol {
  width: 24px;
  height: 24px;
  background: var(--text-primary);
  border-radius: 4px;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent-color);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Dashboard Preview */
.dashboard-preview {
  margin: 4rem auto;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: #111116;
  position: relative;
}

.dashboard-preview::before {
  content: '';
  display: block;
  height: 32px;
  background: #1a1a24;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.window-dots {
  position: absolute;
  top: 12px;
  left: 1rem;
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b5563;
}

.window-dot:nth-child(1) { background: #ef4444; }
.window-dot:nth-child(2) { background: #f59e0b; }
.window-dot:nth-child(3) { background: #10b981; }

.dashboard-inner {
  padding: 2rem;
  display: flex;
  gap: 2rem;
  min-height: 400px;
}

.preview-sidebar {
  width: 250px;
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-item {
  height: 24px;
  background: var(--card-bg);
  border-radius: 4px;
  width: 100%;
}
.preview-item:first-child { width: 60%; margin-bottom: 1rem;}
.preview-item:nth-child(2) { width: 80%; }
.preview-item:nth-child(3) { width: 70%; }
.preview-item:nth-child(4) { width: 90%; }

.preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preview-message {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.preview-message.user {
  align-self: flex-end;
  max-width: 80%;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.preview-message.assistant {
  align-self: flex-start;
  max-width: 90%;
}

.preview-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 8px;
}
.preview-line:last-child { margin-bottom: 0; }
.preview-line.short { width: 60%; }
.preview-line.medium { width: 85%; }


/* Features Section */
.features {
  padding: 6rem 0;
  border-top: 1px solid var(--card-border);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--card-border);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Use Case Section */
.use-case {
  padding: 6rem 0;
  background: #0f0f15;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.use-case-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.use-case-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.use-case-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.use-case-list {
  list-style: none;
}

.use-case-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.use-case-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
}

.use-case-image {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.code-mockup {
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem;
  font-family: monospace;
  color: #d4d4d4;
  font-size: 0.9rem;
  border: 1px solid #333;
}

.code-mockup-line { margin-bottom: 0.5rem; }
.code-keyword { color: #569cd6; }
.code-string { color: #ce9178; }
.code-comment { color: #6a9955; }
.code-function { color: #dcdcaa; }

/* CTA Section */
.cta {
  padding: 8rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.cta p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--card-border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
}

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

footer a:hover {
  text-decoration: underline;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 18, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-15px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform-origin: top center;
  }
  
  .nav-links.nav-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(.btn-primary) {
    width: 100%;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    display: block;
  }

  .nav-links a.btn-primary {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
  
  .hero h1 { font-size: 2.5rem; }
  .use-case-content { grid-template-columns: 1fr; }
  .dashboard-inner { flex-direction: column; }
  .preview-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--card-border); padding-bottom: 1rem;}
  .use-case-image { height: 300px; }
}
