:root {
  --bg: #f8f9fa;
  --bg2: #ffffff;
  --panel: #ffffff;
  --text: #333333;
  --muted: #666666;
  --border: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --brand: #007bff;
  --brand2: #0056b3;
  --danger: #dc3545;
  --warn: #ffc107;
  --focus: rgba(0, 123, 255, 0.25);
  --navbar-height: 60px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Navbar */
.topbar {
  height: var(--navbar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 18px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #007bff, #00d2ff);
  border-radius: 8px;
}

.topbar__nav {
  display: flex;
  gap: 5px;
}

.navlink {
  text-decoration: none;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.navlink:hover {
  background-color: #f1f3f5;
  color: var(--brand);
}

.navlink--active {
  background-color: #e7f5ff;
  color: var(--brand);
  font-weight: 600;
}

/* New Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #007bff 0%, #00d2ff 100%);
  color: #fff;
  padding: 80px 20px 120px; /* Extra bottom padding for overlap */
  text-align: center;
  margin-bottom: -60px; /* Negative margin to pull content up */
}

.hero-banner__title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 15px;
  letter-spacing: 1px;
}

.hero-banner__subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
  font-weight: 300;
}

/* Features Grid */
.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-color: rgba(0,123,255,0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: var(--brand);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-btn {
  background: var(--brand);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  border: none;
}

.feature-card:hover .feature-btn {
  background: var(--brand2);
}

/* Custom Buttons - only apply to specific custom buttons if needed, but rely on Bootstrap for general .btn */
.btn--ghost {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.btn--ghost:hover {
  background-color: #f8f9fa;
  color: var(--brand);
}

/* Utils */
.muted { color: var(--muted); }
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.page-subtitle { color: var(--muted); margin-bottom: 20px; }
.section-title { font-size: 16px; font-weight: 600; margin: 20px 0 10px; border-left: 4px solid var(--brand); padding-left: 10px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.log { background: #f8f9fa; border: 1px solid var(--border); padding: 15px; border-radius: 6px; font-family: monospace; font-size: 13px; max-height: 500px; overflow-y: auto; white-space: pre-wrap; }
