:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3ef;
  --primary: #2558ff;
  --primary-hover: #1f44c9;
  --accent: #16a34a;
  --hero-a: #f3e8ff;
  --hero-b: #e0ecff;
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #eef3ff 0%, var(--bg) 50%);
  color: var(--text);
  line-height: 1.45;
}

a { color: var(--primary); }

.site-shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 16px 36px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.brand-logo { height: 38px; width: auto; }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: #eef2ff;
  border-color: var(--line);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.section-space { margin-top: 14px; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero::before {
  width: 180px;
  height: 180px;
  right: -60px;
  top: -60px;
  border: 12px solid rgba(37, 88, 255, 0.18);
}
.hero::after {
  width: 130px;
  height: 130px;
  left: -40px;
  bottom: -50px;
  border: 10px solid rgba(22, 163, 74, 0.18);
}

.hero-title { margin: 0 0 8px; font-size: clamp(1.55rem, 2.2vw + 0.9rem, 2.3rem); line-height: 1.2; }
.hero-sub { margin: 0; color: var(--muted); max-width: 70ch; position: relative; z-index: 2; }

.search-wrap {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  position: relative;
  z-index: 2;
}
.search-wrap input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 0.98rem;
}

.button-row { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.btn {
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #eef2ff; color: var(--text); border: 1px solid var(--line); }

.grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.tool-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.tool-card h3 { margin: 8px 0 6px; font-size: 1.12rem; line-height: 1.25; }
.tool-card p { margin: 0 0 10px; color: var(--muted); flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.card-arrow { color: #667085; font-size: 1rem; }

.icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #e9f0ff, #dce9ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.badge {
  display: inline-flex;
  font-size: .75rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2f6e8;
  color: #166534;
  font-weight: 700;
}
.badge.next { background: #e6edff; color: #1e3a8a; }

.footer-grid {
  display: grid;
  gap: 8px;
}
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footnote { color: var(--muted); font-size: .9rem; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .panel { padding: 16px; }
  .tool-card { min-height: 200px; }
}
