/* Base design tokens & typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-dark: #09090b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.06);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  
  --primary-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  --btn-gradient: linear-gradient(135deg, #9333ea 0%, #0891b2 100%);
  --glow-color: rgba(147, 51, 234, 0.15);

  --font-title: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0d11;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-b: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
}

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

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

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

/* Glow Effect */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
  z-index: -1;
  filter: blur(40px);
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c084fc;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

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

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

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  padding: 0.8rem 1.8rem;
  background: var(--btn-gradient);
  border: none;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  box-shadow: 0 4px 20px var(--glow-color);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.25);
  filter: brightness(1.1);
}

.btn-secondary {
  padding: 0.8rem 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-primary.btn-chrome {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.badge-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.hero-badge {
  height: 48px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Showcase Section */
.showcase {
  padding: 40px 0 80px 0;
}

.showcase-slider {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.showcase-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-card);
  z-index: 1;
}

/* Mock Browser Top Bar */
.window-controls {
  position: absolute;
  top: 14px;
  left: 18px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.window-title {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  z-index: 2;
}

/* Carousel Inner */
.carousel {
  margin-top: 30px;
  position: relative;
}

.slide {
  display: none;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.slide.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot-nav {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot-nav.active {
  background: #a855f7;
  width: 24px;
  border-radius: 9999px;
}

/* Features Section */
.features {
  padding: 80px 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  z-index: -1;
  filter: blur(30px);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(147, 51, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Steps Section */
.steps-section {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.01);
  border-y: 1px solid rgba(255, 255, 255, 0.03);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.step-item {
  position: relative;
}

.step-num {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-item h3 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Call to Action Banner */
.cta-banner {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 24px;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem auto;
}

/* Footer Section */
footer {
  border-t: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  background: #060608;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

/* Capabilities Detail Section */
.capabilities-detail {
  padding: 80px 0;
  position: relative;
}

.capability-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 80px;
}

.capability-row:last-child {
  margin-bottom: 0;
}

.capability-row.reverse {
  flex-direction: row-reverse;
}

.capability-info {
  flex: 1;
}

.cap-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c084fc;
  margin-bottom: 1rem;
}

.capability-info h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.capability-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cap-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.cap-list li::before {
  content: "✓";
  color: #06b6d4;
  font-weight: bold;
}

.capability-preview {
  flex: 1.2;
}

.preview-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.preview-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.preview-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .capability-row, .capability-row.reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 60px;
  }
  .nav-links {
    display: none; /* simple stack overlay menu could go here, keeping minimal for CWS requirements */
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-ctas, .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 1rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}
