@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Color Palette */
  --bg-dark: #070913;
  --bg-card: rgba(13, 17, 33, 0.7);
  --bg-input: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Brand Gradients */
  --primary: #6366f1;
  --secondary: #a855f7;
  --accent: #06b6d4;
  --accent-success: #10b981;
  
  --gradient-brand: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-cyan: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-dark: linear-gradient(180deg, rgba(13, 17, 33, 0.9) 0%, rgba(7, 9, 19, 0.95) 100%);
  
  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Orbs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

body::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

body::after {
  bottom: 10%;
  right: -10%;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* Helper utilities */
.glow-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.glow-text-cyan {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 19, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: var(--transition);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.nav-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.lang-selector-wrapper select {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-selector-wrapper select:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.lang-selector-wrapper option {
  background-color: #0d1121;
  color: #fff;
}

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

.hero-logo-container {
  display: inline-flex;
  position: relative;
  margin-bottom: 2rem;
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: var(--gradient-brand);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: pulse 4s infinite alternate;
  pointer-events: none;
}

.hero-logo {
  height: 220px;
  width: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 36px rgba(99, 102, 241, 0.4));
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-logo {
    height: 160px;
  }
  .hero-logo-glow {
    width: 180px;
    height: 180px;
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
  line-height: 1.6;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Architecture Visualizer Section */
.architecture-sec {
  padding: 6rem 0;
  background: rgba(7, 9, 19, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.sec-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.sec-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Diagram */
.diagram-container {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.diagram-wrapper {
  min-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 2rem 0;
}

.diagram-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  width: 180px;
  text-align: center;
  position: relative;
  z-index: 5;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.diagram-node:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.diagram-node i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.node-client i { color: #f59e0b; }
.node-proxy i { color: var(--accent); }
.node-server i { color: var(--primary); }
.node-db i { color: var(--accent-success); }

.diagram-node h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.diagram-node p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* SVG Line Connections */
.diagram-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  animation: dash 30s linear infinite;
}

.glow-particle {
  fill: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary));
}

.glow-particle-reverse {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

/* Features Grid */
.features-sec {
  padding: 6rem 0;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.15);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-brand);
  color: #fff;
  transform: scale(1.05);
}

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

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

/* AI Dev Highlight Section */
.ai-highlight-sec {
  padding: 6rem 0;
  background: radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  border-top: 1px solid var(--border-color);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.ai-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ai-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.ai-bullet {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ai-bullet-icon {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-top: 0.2rem;
}

.ai-bullet-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.ai-bullet-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Graphic or representation of AI coding loop */
.ai-visual {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.ai-visual::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(168, 85, 247, 0.2);
  filter: blur(40px);
  border-radius: 50%;
}

.ai-loop-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.ai-loop-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.ai-loop-step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.4);
}

.ai-loop-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.ai-loop-detail h4 {
  font-size: 1rem;
  font-weight: 600;
}

.ai-loop-detail p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Interactive Code playground */
.playground-sec {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .playground-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.playground-editor {
  background: #090b16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.editor-header {
  background: #0f1326;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-buttons {
  display: flex;
  gap: 6px;
}

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

.btn-red { background: #ef4444; }
.btn-yellow { background: #f59e0b; }
.btn-green { background: #10b981; }

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

.editor-tabs {
  display: flex;
  background: #0b0d1a;
  border-bottom: 1px solid var(--border-color);
}

.editor-tab {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  border-right: 1px solid var(--border-color);
  background: #080a14;
  transition: var(--transition);
}

.editor-tab.active {
  background: #090b16;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
}

.editor-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-x: auto;
}

.code-line {
  display: flex;
  margin-bottom: 0.25rem;
}

.line-num {
  width: 30px;
  color: var(--text-muted);
  user-select: none;
}

.line-content {
  white-space: pre;
}

.keyword { color: #f43f5e; }
.directive { color: #06b6d4; }
.comment { color: #4b5563; }
.string { color: #10b981; }
.type { color: #6366f1; }
.method { color: #a855f7; }

/* Interactive simulator panel */
.playground-sim {
  padding: 1rem;
}

.sim-trigger-btn {
  background: var(--gradient-cyan);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
  filter: brightness(1.1);
}

.sim-trigger-btn:active {
  transform: translateY(0);
}

.sim-output-container {
  margin-top: 1.5rem;
  background: #04050d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  min-height: 140px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.sim-output-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.sim-output-status {
  color: var(--accent-success);
  display: none;
}

.sim-output-content {
  color: var(--text-secondary);
}

/* Steps Timeline */
.steps-sec {
  padding: 6rem 0;
  background: rgba(7, 9, 19, 0.2);
  border-top: 1px solid var(--border-color);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

@media (max-width: 768px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 1;
}

@media (max-width: 768px) {
  .steps-container::before {
    display: none;
  }
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 4px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.step-card:hover .step-number {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.step-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* Call to Action Section */
.cta-sec {
  padding: 8rem 0;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  border-top: 1px solid var(--border-color);
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.cta-box h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #04060d;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-social-link {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-link:hover {
  color: var(--primary);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.55; }
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Downloads Section Styles */
.downloads-sec {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(7, 9, 19, 0.2) 0%, rgba(13, 17, 33, 0.4) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.download-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-success);
  color: #10b981;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

.download-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.download-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.download-card.windows .download-icon {
  color: #0078d4;
}

.download-card.linux .download-icon {
  color: #f59e0b;
}

.download-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.command-box {
  width: 100%;
  background: #04050d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: left;
  position: relative;
  margin-bottom: 1.5rem;
}

.command-box code {
  color: #38bdf8;
  display: block;
  word-break: break-all;
  white-space: pre-wrap;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

