/* Custom CSS for Antigravity CLI Statusline landing page */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  --bg-color: #06070a;
  --bg-gradient: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
                 radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
                 #06070a;
  --panel-bg: rgba(255, 255, 255, 0.02);
  --panel-border: rgba(255, 255, 255, 0.05);
  --panel-border-top: rgba(255, 255, 255, 0.09);
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.15);
  --accent: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --terminal-bg: #090b11;
  --terminal-border: rgba(255, 255, 255, 0.06);
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.8);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Typography & Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 0 0 15px var(--primary-glow);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Glass panel component */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--panel-border);
  border-top: 1px solid var(--panel-border-top);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 7, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
  transition: var(--transition-normal);
}

header.scrolled {
  background: rgba(6, 7, 10, 0.9);
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.logo img {
  height: 32px;
  width: 32px;
}

.logo-glow {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

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

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

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

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

.hero-glow-sphere {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(50px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Install Code Box */
.install-box {
  max-width: 640px;
  margin: 0 auto 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(6, 7, 10, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.install-cmd {
  color: var(--secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
  text-align: left;
  flex: 1;
}

.install-cmd span {
  color: var(--text-muted);
  margin-right: 6px;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.3);
}

.copy-tooltip {
  position: absolute;
  right: 1.2rem;
  top: -36px;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.copy-tooltip.show {
  opacity: 1;
  transform: translateY(-4px);
}

/* Terminal Mockup & Live Demo */
.demo-section {
  margin-bottom: 6rem;
}

.terminal-window {
  border: 1px solid var(--terminal-border);
  background: var(--terminal-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.terminal-header {
  background: rgba(13, 16, 26, 0.9);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: #22c55e; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.terminal-actions {
  width: 42px; /* Spacer to balance layout */
}

.terminal-body {
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #cbd5e1;
  text-align: left;
}

.terminal-prompt {
  margin-bottom: auto;
}

.prompt-line {
  margin-bottom: 10px;
}

.prompt-cmd {
  color: #38bdf8;
}

.terminal-output {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Statusline representation inside mock terminal */
.statusline-container {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

/* Demo Control panel */
.demo-controls {
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.btn-pill-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  padding: 3px;
}

.btn-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-pill.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Statusline rendering */
.statusline-preview {
  display: flex;
  align-items: center;
  background: #0d101a;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  transition: var(--transition-normal);
  width: 100%;
  font-family: "FiraCode Nerd Font", var(--font-mono);
}

.statusline-preview.medium {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.statusline-preview.small {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.statusline-row {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.statusline-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Specific elements inside the preview */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.net-on {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.git-branch {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.status-badge.model {
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-badge.error {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Progress bar inside statusline */
.statusline-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.statusline-progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.statusline-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}

.statusline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* Feature grid */
.features-section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.feature-card {
  padding: 2.5rem 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

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

/* Screenshots / Layout detail section */
.layout-showcase {
  padding: 80px 0;
  text-align: center;
}

.layout-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.layout-image-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-lg);
  background: #090a0e;
}

.layout-img {
  width: 100%;
  height: auto;
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.layout-img.active {
  display: block;
}

/* Installation tabs & Instructions */
.install-section {
  padding: 80px 0;
}

.install-tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 2.5rem;
}

.install-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.install-tab-btn:hover {
  color: var(--text-primary);
}

.install-tab-btn.active {
  color: var(--primary);
}

.install-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.install-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.install-pane.active {
  display: block;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.step-content {
  text-align: left;
  flex: 1;
}

.step-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.code-block {
  background: rgba(6, 7, 10, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.code-text {
  color: #e2e8f0;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  padding-right: 1.5rem;
}

.code-text::-webkit-scrollbar {
  height: 4px;
}

/* Compatibility Banner */
.compatibility-section {
  background: radial-gradient(circle at 100% 0, rgba(6, 182, 212, 0.05) 0%, transparent 60%), rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 60px 0;
}

.compat-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.compat-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.compat-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.compat-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.compat-code {
  flex: 1;
  min-width: 300px;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--panel-border);
  background: #040507;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.heart-icon {
  color: var(--accent);
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  nav {
    display: none; /* simple hidden nav for mobile simplicity */
  }
  .nav-container {
    justify-content: center;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .step-card {
    flex-direction: column;
    gap: 0.75rem;
  }
  .step-number {
    margin-bottom: 4px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Language switcher and visibility toggles */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  transition: var(--transition-fast);
  border-radius: 4px;
}

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

.lang-btn.active {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

.lang-separator {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Body language visibility filters */
body.lang-en .lang-ua {
  display: none !important;
}

body.lang-ua .lang-en {
  display: none !important;
}

/* Fallback: if body has neither class, default to hiding UA */
body:not(.lang-ua):not(.lang-en) .lang-ua {
  display: none !important;
}


