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

:root {
  --bg-color: #030307;
  --panel-bg: rgba(10, 11, 20, 0.75);
  --panel-border: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.2);
  --secondary: #06b6d4; /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.2);
  --accent: #10b981; /* Emerald */
  --accent-glow: rgba(16, 185, 129, 0.15);
  
  --font-title: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
}

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

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

/* Background Ambient Glows - Subtle & Curved */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.06;
  animation: float 20s infinite alternate ease-in-out;
}

.glow-blob-1 {
  top: -10%;
  left: -5%;
  width: 45vw;
  height: 45vw;
  background: var(--primary);
  animation-duration: 25s;
}

.glow-blob-2 {
  bottom: -5%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: var(--secondary);
  animation-duration: 20s;
}

.glow-blob-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30vw;
  height: 30vw;
  background: #d946ef;
  opacity: 0.04;
  animation-duration: 30s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(40px, 40px) scale(1.05) rotate(180deg); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #04040a;
}
::-webkit-scrollbar-thumb {
  background: #18181b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Navigation Header */
header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(3, 3, 7, 0.75);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
  opacity: 0.9;
}

.logo:hover {
  opacity: 1;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav-links a.btn-github {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s;
  color: var(--text-primary);
  font-weight: 600;
}

.nav-links a.btn-github:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 2rem;
}

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

.hero-banner {
  margin-bottom: 2rem;
  filter: drop-shadow(0 15px 40px rgba(99, 102, 241, 0.1));
  border-radius: 16px;
  overflow: hidden;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--panel-border);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

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

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

/* Glassmorphism Panel Base */
.glass-panel {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 3.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title span {
  color: #818cf8;
}

/* Code Playground */
.playground-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
}

.lang-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
}

.lang-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

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

.lang-tab.active {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  box-shadow: inset 3px 0 0 var(--primary);
}

.lang-indicator {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  opacity: 0.5;
}

.code-box {
  background: #020205;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--panel-border);
  padding: 0.7rem 1.1rem;
}

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

.btn-copy {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

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

.code-pre {
  margin: 0;
  padding: 1.25rem;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e4e4e7;
  line-height: 1.6;
  max-height: 400px;
}

/* Feature Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.01);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.04);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

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

/* Live Simulator Demo */
.sim-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sim-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sim-step {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  padding: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
}

.sim-step:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.sim-step.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.08);
}

.sim-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-muted);
  color: var(--bg-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.85rem;
  transition: background 0.2s;
}

.sim-step.active .sim-step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 8px var(--primary-glow);
}

.sim-step-info h4 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.sim-step-info p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.sim-console {
  background: #010103;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 280px;
  max-height: 380px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.sim-console-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--panel-border);
  padding: 0.6rem 0.9rem;
}

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

.sim-console-title {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.sim-console-body {
  padding: 1.1rem;
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a7f3d0;
  overflow-y: auto;
  line-height: 1.5;
}

.sim-console-line {
  margin-bottom: 0.6rem;
}

.sim-console-line.info { color: var(--text-secondary); }
.sim-console-line.cmd { color: #f4f4f5; font-weight: 500; }
.sim-console-line.success { color: var(--accent); }

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--panel-border);
  padding: 0.9rem 1.25rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-primary);
}

td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-primary);
}

.cell-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.cell-badge-easy {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.cell-badge-medium {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

/* Footer */
footer {
  border-top: 1px solid var(--panel-border);
  background: #020204;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text-secondary);
}

.footer-text {
  font-size: 0.75rem;
}

/* Mobile & Tablet Responsiveness Overhaul */
@media (max-width: 968px) {
  .playground-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .lang-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.4rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .lang-tab {
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    box-shadow: none !important;
  }

  .lang-tab.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    box-shadow: none;
  }
  
  .sim-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sim-console {
    min-height: 250px;
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }
  
  .glass-panel {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  table {
    font-size: 0.8rem;
  }
  
  th, td {
    padding: 0.7rem 0.9rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .nav-links {
    display: none; /* Hide top links on micro-mobile to fit plain-text logo */
  }
  
  .nav-container {
    justify-content: center;
  }
}
