:root {
  --bg-dark: #080d1a;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(14, 165, 233, 0.4);
  
  --primary: #0ea5e9;
  --primary-cyan: #06b6d4;
  --primary-indigo: #6366f1;
  --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #a855f7 100%);
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  
  --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.55);
  --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.4;
}
.bg-glow-1 {
  width: 550px;
  height: 550px;
  background: #0ea5e9;
  top: -150px;
  right: -100px;
}
.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: #6366f1;
  bottom: 10%;
  left: -200px;
}
.bg-glow-3 {
  width: 450px;
  height: 450px;
  background: #a855f7;
  top: 40%;
  right: 15%;
  opacity: 0.25;
}

/* Glassmorphism */
.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(14, 165, 233, 0.35);
}

/* Typography & Gradients */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

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

.font-code {
  font-family: var(--font-code);
}

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

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

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

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

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

.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-badge {
  font-size: 0.75rem;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

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

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

.lang-select {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

.lang-select:focus {
  border-color: var(--primary);
}

/* Main Content Layout */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

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

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Demo Simulator Section */
.demo-section {
  margin: 50px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Interactive DevTools Inspector Card */
.inspector-card {
  border: 1px solid rgba(14, 165, 233, 0.25);
  overflow: hidden;
  background: #090e1a;
}

.inspector-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.inspector-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.35);
}

.inspector-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 500;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Inspector Body */
.inspector-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 480px;
}

.requests-table-container {
  overflow-x: auto;
  border-right: 1px solid var(--border-color);
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: var(--font-code);
}

.requests-table th {
  background: rgba(15, 23, 42, 0.7);
  padding: 10px 14px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
}

.requests-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.req-row {
  cursor: pointer;
  transition: background 0.15s;
}

.req-row:hover {
  background: rgba(30, 41, 59, 0.5);
}

.req-row.selected {
  background: rgba(14, 165, 233, 0.15) !important;
  border-left: 3px solid #0ea5e9;
}

/* Method Pills */
.pill-method {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.method-get { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.method-post { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.method-put, .method-patch { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.method-delete { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

/* Status Pills */
.pill-status {
  font-weight: 600;
}
.status-2xx { color: #34d399; }
.status-3xx { color: #38bdf8; }
.status-4xx { color: #fbbf24; }
.status-5xx { color: #f87171; }

/* Timing Bar */
.timing-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.timing-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

/* Detail Drawer */
.detail-drawer {
  background: rgba(11, 17, 33, 0.85);
  padding: 18px;
  overflow-y: auto;
  font-size: 0.85rem;
}

.detail-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section-title {
  color: #38bdf8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  font-weight: 700;
}

.detail-kv {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  word-break: break-all;
}

.detail-k {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.detail-v {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.78rem;
}

/* Console Simulator Tab Content */
.console-view {
  padding: 16px;
  font-family: var(--font-code);
  font-size: 0.85rem;
}
.log-line {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.log-line.log-info { color: #f8fafc; }
.log-line.log-warn { background: rgba(245, 158, 11, 0.08); color: #fbbf24; }
.log-line.log-error { background: rgba(244, 63, 94, 0.1); color: #f87171; }
.log-time { color: var(--text-dim); font-size: 0.75rem; min-width: 65px; }

/* Web Vitals Tab Content */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px;
}

.vital-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-md);
  text-align: center;
}

.vital-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 8px 0;
  color: #34d399;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 60px 0;
}

.feature-card {
  padding: 32px;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  margin: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.faq-card {
  padding: 24px;
}

.faq-question {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #38bdf8;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Privacy & Terms Document Pages */
.doc-section {
  padding: 40px 0;
}

.doc-card {
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.doc-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.doc-date {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.doc-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-main);
}

.doc-content p, .doc-content ul {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.doc-content ul {
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-content code {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .inspector-body { grid-template-columns: 1fr; }
  .detail-drawer { border-top: 1px solid var(--border-color); }
  .faq-grid { grid-template-columns: 1fr; }
  .doc-card { padding: 24px; }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .hero-title { font-size: 2.1rem; }
}
