/* ==========================================================================
   Jev Browser — Design System & Stylesheet
   Created by digitalfoundry.ai (https://digitalfoundry.ai/)
   ========================================================================== */

:root {
  --bg-primary: #07080e;
  --bg-secondary: #0d1120;
  --bg-tertiary: #131829;
  --bg-card: rgba(13, 17, 32, 0.72);
  --bg-card-hover: rgba(19, 24, 41, 0.9);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #04e4fc;
  --accent-blue: #04e4fc;
  --accent-indigo: #4e50f0;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;

  --gradient-glow: linear-gradient(135deg, #04e4fc 0%, #4e50f0 50%, #8b5cf6 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(4, 228, 252, 0.3);

  --shadow-glow: 0 0 35px rgba(4, 228, 252, 0.22);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);

  --font-sans: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

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

/* Background Atmosphere Glow */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -10vw;
  left: 20vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(79, 172, 254, 0.04) 50%, transparent 70%);
  filter: blur(80px);
}

.glow-orb-2 {
  position: absolute;
  top: 30vh;
  right: -10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.03) 60%, transparent 80%);
  filter: blur(100px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 11, 17, 0.75);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
}

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

.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);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-glow);
  color: #040810;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 242, 254, 0.55);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-1px);
}

.btn-pill {
  padding: 6px 16px;
  font-size: 0.85rem;
}

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

.badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.badge-brand:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Video Showcase Box */
.video-showcase {
  margin-top: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.browser-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--border-glass);
}

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

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.traffic-red { background: #ff5f56; }
.traffic-yellow { background: #ffbd2e; }
.traffic-green { background: #27c93f; }

.mockup-address-bar {
  flex: 1;
  max-width: 480px;
  margin: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.video-player-wrapper {
  position: relative;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-scene-timeline {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(15, 21, 35, 0.95);
  overflow-x: auto;
  border-top: 1px solid var(--border-glass);
}

.scene-tab-btn {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scene-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.scene-tab-btn.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Interactive Parallel Spaces Simulator */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

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

.spaces-simulator-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.spaces-tab-strip {
  display: flex;
  background: #0a0e18;
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
}

.space-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.space-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.space-tab.active {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-top: 2px solid var(--accent-cyan);
}

.space-pill-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pill-active { background: var(--accent-emerald); box-shadow: 0 0 8px var(--accent-emerald); }
.pill-busy { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.pill-idle { background: var(--text-dim); }

.spaces-view-content {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.space-pane {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.pane-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-terminal-block {
  background: #06090e;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: auto;
}

.ast-highlight {
  color: var(--accent-cyan);
}

.prob-score {
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Feature Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.bento-card-large {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

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

/* Comparison Table */
.comparison-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.table-comparison {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-comparison th,
.table-comparison td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.table-comparison th {
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.table-comparison td {
  font-size: 0.95rem;
}

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

.table-comparison .col-jev {
  background: rgba(0, 242, 254, 0.05);
  font-weight: 600;
  color: var(--accent-cyan);
}

.check-yes {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

.check-no {
  color: var(--text-dim);
  font-weight: 600;
}

/* Benchmarks Chart */
.benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bench-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.bench-metric {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
}

.bench-label {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.bench-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Footer */
.footer {
  background: #05070b;
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-links-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

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

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

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card-large {
    grid-column: span 2;
  }
  .spaces-view-content {
    grid-template-columns: 1fr;
  }
  .benchmarks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-large {
    grid-column: span 1;
  }
  .footer-links-group {
    gap: 32px;
  }
}
