:root {
  --bg-color: #0b0f19;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent: #09547A;
  --accent-hover: #0b6898;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-color); color: var(--text-primary);
  overflow-x: hidden;
}
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* Navigation */
nav {
  position: fixed; top: 0; width: 100%; padding: 1rem 2rem; z-index: 100;
  background: rgba(11, 15, 25, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center;
}
nav .brand { font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; color: #fff; }
nav .links a { margin-left: 1.5rem; font-weight: 500; color: var(--text-secondary); }
nav .links a:hover { color: #fff; }

/* Parallax Hero */
.hero {
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: radial-gradient(circle at center, rgba(9, 84, 122, 0.25) 0%, var(--bg-color) 70%),
              url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
  background-attachment: fixed; /* Native Parallax */
  padding: 0 1rem;
}
.hero h1 { font-size: 4.5rem; margin: 0 0 1rem; background: linear-gradient(to right, #fff, #0b6898); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); max-width: 650px; margin-bottom: 2rem; line-height: 1.6; }
.btn { display: inline-block; padding: 0.85rem 2.5rem; background: var(--accent); color: #fff; border-radius: 999px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(9, 84, 122, 0.4); color: #fff; }

/* Cardiogram Animation */
.beat-line {
  stroke-dasharray: 120 800;
  stroke-dashoffset: 820;
  animation: cardiogram 1.8s linear infinite;
  filter: drop-shadow(0 0 10px var(--accent));
}

@keyframes cardiogram {
  0% { stroke-dashoffset: 820; }
  100% { stroke-dashoffset: 0; }
}

/* Sections */
section { padding: 8rem 2rem; max-width: 1000px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;}
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; color: #fff; }

/* Comparison Table */
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 1rem;
}
.comp-header, .comp-row { display: contents; }
.comp-cell {
  padding: 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.comp-header .comp-cell { background: rgba(255,255,255,0.05); font-weight: 700; color: #fff; font-size: 1.1rem; border-bottom: 2px solid var(--accent); }
.comp-cell.feature { font-weight: 600; justify-content: flex-start; text-align: left; }
.comp-row:hover .comp-cell { background: rgba(255,255,255,0.06); transition: background 0.3s; transform: scale(1.01); }
.highlight-bad { color: #f87171; font-weight: 500;}
.highlight-good { color: #34d399; font-weight: 500;}

/* Content pages (Docs) */
.content-wrapper { padding-top: 8rem; max-width: 800px; margin: 0 auto; padding-bottom: 4rem; padding-left: 2rem; padding-right: 2rem; }
.content-wrapper h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: #fff; }
.content-wrapper h2 { margin-top: 2.5rem; color: #e2e8f0; }
.content-wrapper h3 { margin-top: 2rem; color: var(--text-secondary); }
.content-wrapper p { font-size: 1.1rem; line-height: 1.7; }
.content-wrapper pre { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 1.5rem; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0;}
.content-wrapper code { font-family: monospace; color: #0b6898; background: rgba(9, 84, 122, 0.2); padding: 0.2rem 0.4rem; border-radius: 4px; }
.content-wrapper pre code { background: none; padding: 0; color: #e2e8f0; }
.content-wrapper ul { margin-bottom: 2rem; }
.content-wrapper li { margin-bottom: 0.5rem; line-height: 1.6; }

/* Mobile Optimization */
@media (max-width: 768px) {
  /* Typography and Spacing */
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.05rem; }
  section { padding: 5rem 1.25rem; min-height: auto; }
  .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
  #speed h2 { font-size: 2rem !important; }
  
  /* Hero Buttons */
  .hero > div { flex-direction: column; width: 100%; gap: 1rem !important; }
  .btn { width: 100%; display: block; box-sizing: border-box; }
  
  /* Navbar */
  nav { padding: 1rem; }
  nav .links a { margin-left: 0.75rem; font-size: 0.9rem; }
  
  /* Comparison Grid to Cards */
  .comparison-grid { display: flex; flex-direction: column; gap: 1.5rem; }
  .comp-header { display: none; }
  .comp-row { 
    display: flex; flex-direction: column; gap: 0.5rem;
    background: var(--glass-bg); padding: 1.25rem; border-radius: 12px; border: 1px solid var(--glass-border); 
  }
  .comp-row:hover .comp-cell { transform: none; background: transparent; }
  .comp-cell { 
    border: none !important; padding: 0.5rem 0; border-radius: 0 !important; 
    background: transparent !important; justify-content: flex-start; text-align: left;
  }
  .comp-cell.feature { 
    font-size: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.1) !important; 
    padding-bottom: 0.75rem; margin-bottom: 0.5rem; justify-content: center; text-align: center;
  }
  
  /* Add explicit labels for mobile cards */
  .comp-cell.highlight-bad { flex-direction: column; align-items: flex-start; }
  .comp-cell.highlight-good { flex-direction: column; align-items: flex-start; }
  
  .comp-cell.highlight-bad::before { content: "Website"; font-weight: 700; color: #fff; margin-bottom: 0.25rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
  .comp-cell.highlight-good::before { content: "Nobook"; font-weight: 700; color: #fff; margin-bottom: 0.25rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
  
  /* Footer */
  footer > div { flex-direction: column !important; gap: 2.5rem !important; margin-bottom: 2.5rem !important; }
}
