:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(12, 22, 40, .84);
  --panel-2: rgba(16, 29, 52, .92);
  --line: rgba(125, 145, 180, .22);
  --line-strong: rgba(96, 165, 250, .35);
  --text: #edf3ff;
  --text-soft: #a6b5d3;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --good: #34d399;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 10% 0%, rgba(96, 165, 250, .22), transparent 60%),
    radial-gradient(900px 540px at 90% 10%, rgba(167, 139, 250, .18), transparent 65%),
    radial-gradient(800px 520px at 50% 100%, rgba(34, 211, 238, .10), transparent 60%),
    var(--bg);
}

.app {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.hero-panel-card,
.section,
.search-wrap,
.tool-card,
.back-link {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
}

.hero-copy {
  border-radius: 24px;
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(125, 211, 252, .12);
  border: 1px solid rgba(125, 211, 252, .18);
  color: #d4f1ff;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.lead {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  color: #04111d;
  background: linear-gradient(180deg, #a5f3fc, #67e8f9);
  box-shadow: 0 12px 24px rgba(103, 232, 249, .18);
}

.button.secondary {
  color: var(--text);
  background: rgba(15, 23, 42, .5);
  border: 1px solid var(--line-strong);
}

.stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border-radius: 18px;
  padding: 14px;
  background: rgba(9, 18, 35, .48);
  border: 1px solid rgba(125, 145, 180, .18);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: .9rem;
}

.hero-panel-card {
  height: 100%;
  border-radius: 24px;
  padding: 24px;
}

.hero-panel-card h2,
.section-head h2,
.seo-content h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.hero-panel-card p,
.section-head p,
.seo-content p {
  color: var(--text-soft);
  line-height: 1.65;
}

.hero-panel-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.8;
}

.toolbar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.search-wrap {
  border-radius: 20px;
  padding: 16px 16px 14px;
}

.search-wrap span {
  display: block;
  color: var(--text-soft);
  font-size: .92rem;
  margin-bottom: 10px;
}

.search-wrap input {
  width: 100%;
  border: 1px solid rgba(125, 145, 180, .25);
  border-radius: 14px;
  background: rgba(6, 12, 23, .72);
  color: var(--text);
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
}

.search-wrap input:focus {
  border-color: rgba(125, 211, 252, .65);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, .14);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid rgba(125, 145, 180, .22);
  background: rgba(11, 19, 36, .75);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.filter-btn:hover { transform: translateY(-1px); }
.filter-btn.active {
  color: #03111d;
  border-color: rgba(125, 211, 252, .45);
  background: linear-gradient(180deg, #a5f3fc, #67e8f9);
}

.section {
  margin-top: 22px;
  border-radius: 24px;
  padding: 24px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  border-radius: 20px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, .45);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .3);
}

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.badge.live {
  color: #052012;
  background: rgba(52, 211, 153, .92);
}

.badge.soon {
  color: #251800;
  background: rgba(251, 191, 36, .95);
}

.tool-desc {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 145, 180, .16);
  color: #d9e4f8;
  background: rgba(9, 18, 35, .42);
  font-size: .8rem;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #bfefff;
}

.tool-card.soon {
  opacity: .93;
}

.tool-card.soon .tool-cta {
  color: #f5c96f;
}

.roadmap-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.9;
}

.seo-content {
  margin-top: 22px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 29, 52, .9), rgba(10, 18, 35, .82));
}

.back-link {
  margin-top: 18px;
  border-radius: 18px;
  padding: 14px 16px;
}

.back-link a {
  color: #bfefff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .app { width: min(100% - 18px, 1200px); padding-top: 12px; }
  .hero,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel-card,
  .section,
  .seo-content {
    border-radius: 20px;
    padding: 18px;
  }

  .button {
    width: 100%;
  }
}
