:root {
  --bg-dark: #0a0d18;
  --bg-card: rgba(18, 26, 47, 0.65);
  --bg-card-hover: rgba(26, 38, 68, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 210, 255, 0.35);
  
  --primary: #00d2ff;
  --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #7000ff 100%);
  --accent-purple: #9d4edd;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

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

/* Glow Background Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: #00d2ff;
  top: -150px;
  right: -100px;
}
.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: #7000ff;
  bottom: 10%;
  left: -200px;
}
.bg-glow-3 {
  width: 450px;
  height: 450px;
  background: #10b981;
  top: 40%;
  right: 15%;
  opacity: 0.25;
}

/* Utility Glass Class */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
  border-color: rgba(0, 210, 255, 0.25);
}

/* Header */
.header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto;
  max-width: 1200px;
  width: 92%;
  border-radius: var(--radius-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo-badge {
  font-size: 0.75rem;
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
}

.nav {
  display: flex;
  gap: 24px;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
}

.lang-select option {
  background: #0f172a;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 210, 255, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Main Container */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Hero Section */
.hero-section {
  padding: 40px 0 60px;
}

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

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}

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

.hero-description {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Browser Mockup */
.mock-browser {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.browser-bar {
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.bar-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.bar-circle.close { background: #ff5f56; }
.bar-circle.min { background: #ffbd2e; }
.bar-circle.max { background: #27c93f; }

.browser-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-left: 12px;
  font-family: var(--font-code);
}

.browser-img {
  width: 100%;
  display: block;
  height: auto;
}

/* Feature Grid */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Interactive Simulator / Demo Section */
.demo-container {
  padding: 36px;
  margin-bottom: 80px;
}

.demo-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.demo-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.demo-tab-btn.active, .demo-tab-btn:hover {
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary);
}

.demo-panel {
  display: none;
}
.demo-panel.active {
  display: block;
}

.sim-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.sim-tab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

.sim-tab-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-tab-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.sim-tab-url {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.ram-pill {
  font-family: var(--font-code);
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.ram-pill.high { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.ram-pill.med { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.ram-pill.low { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.ram-pill.discarded { background: rgba(148, 163, 184, 0.2); color: #94a3b8; text-decoration: line-through; }

/* Workflow Canvas Simulator */
.workflow-nodes {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  padding: 20px 0;
}

.wf-node {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  min-width: 180px;
  position: relative;
}
.wf-node-trigger { border-color: rgba(0, 210, 255, 0.5); }
.wf-node-action { border-color: rgba(112, 0, 255, 0.5); }
.wf-node-guard { border-color: rgba(16, 185, 129, 0.5); }

.wf-arrow {
  color: var(--primary);
  font-size: 1.4rem;
}

/* FAQ Section */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 80px;
}

.faq-item {
  padding: 24px;
}

.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Footer */
.footer-section {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav {
    display: none;
  }
}
