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

:root {
  --bg-dark: #070A11;
  --bg-card: rgba(15, 22, 36, 0.75);
  --bg-card-hover: rgba(22, 33, 54, 0.85);
  --bg-terminal: #0B101C;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --primary-cyan: #00F2FE;
  --primary-blue: #4FACFE;
  --accent-purple: #7F56D9;
  --accent-green: #10B981;
  --accent-orange: #F59E0B;
  --accent-pink: #EC4899;
  
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --gradient-brand: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #7F56D9 100%);
  --gradient-dark: linear-gradient(180deg, rgba(7, 10, 17, 0.8) 0%, #070A11 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 35px rgba(0, 242, 254, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Global Ambient Background Lights */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.light-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}
.blob-1 {
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: var(--primary-cyan);
}
.blob-2 {
  top: 40%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: var(--accent-purple);
}
.blob-3 {
  bottom: -10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: var(--primary-blue);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 17, 0.75);
  border-bottom: 1px solid var(--border-color);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.logo-icon {
  width: 42px;
  height: 42px;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: var(--primary-cyan);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Multi-Language Dropdown Selector */
.lang-selector {
  position: relative;
}
#lang-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
#lang-select:hover, #lang-select:focus {
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
}
#lang-select option {
  background: #0B101C;
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #050811;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.5);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  text-align: center;
  position: relative;
}
.hero-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-cyan);
}
.badge-purple {
  background: rgba(127, 86, 217, 0.1);
  border-color: rgba(127, 86, 217, 0.3);
  color: #B692F6;
}
.badge-green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}
.hero-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-installer {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.installer-cmd {
  font-family: var(--font-code);
  font-size: 14px;
  color: var(--primary-cyan);
  white-space: nowrap;
  overflow-x: auto;
}
.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.copy-btn:hover {
  background: var(--primary-blue);
  color: #000;
  border-color: var(--primary-blue);
}

/* GIF Showcase Grid */
.showcase-section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.gif-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.gif-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.gif-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.gif-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gif-info {
  padding: 24px;
}
.gif-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.gif-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive CLI Playground */
.playground-section {
  padding: 80px 0;
}
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}
.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }
.terminal-title {
  font-family: var(--font-code);
  font-size: 13px;
  color: var(--text-muted);
}
.terminal-quick-preset {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}
.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-code);
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}
.terminal-body {
  padding: 24px;
  font-family: var(--font-code);
  font-size: 14px;
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  line-height: 1.6;
}
.term-line {
  margin-bottom: 12px;
}
.term-prompt {
  color: var(--accent-green);
  font-weight: 600;
}
.term-cmd {
  color: var(--primary-cyan);
}
.term-output {
  color: var(--text-muted);
  white-space: pre-wrap;
  margin-top: 4px;
}
.term-json-key { color: var(--primary-blue); }
.term-json-val { color: #A7F3D0; }
.terminal-input-bar {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-color);
}
.terminal-input-bar span {
  font-family: var(--font-code);
  color: var(--accent-green);
  margin-right: 12px;
  font-weight: 700;
}
.terminal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--primary-cyan);
  font-family: var(--font-code);
  font-size: 14px;
}

/* Documentation Hub */
.docs-section {
  padding: 80px 0;
}
.docs-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.docs-sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 24px;
}
.docs-search {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 20px;
  outline: none;
}
.docs-search:focus {
  border-color: var(--primary-cyan);
}
.docs-nav-group {
  margin-bottom: 24px;
}
.docs-nav-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.docs-nav-item {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}
.docs-nav-item:hover, .docs-nav-item.active {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
}

.docs-content-area {
  min-height: 500px;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.tab-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}
.tab-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Code Snippets */
.code-block {
  position: relative;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-dim);
}
.code-body {
  padding: 20px;
  font-family: var(--font-code);
  font-size: 14px;
  color: var(--text-main);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.6;
}

/* Free Deployment Cards */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.deploy-card {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}
.deploy-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.deploy-card ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Download Section */
.download-section {
  padding: 80px 0;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}
.download-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-4px);
}
.download-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.download-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.download-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px 0;
  background: rgba(5, 8, 15, 0.9);
}
.footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-copy {
  font-size: 14px;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--primary-cyan);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .gif-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-container { grid-template-columns: 1fr; }
  .docs-sidebar { border-right: none; border-bottom: 1px solid var(--border-color); padding-right: 0; padding-bottom: 24px; }
  .download-grid { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .installer-cmd { font-size: 12px; }
}
