:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #ff9900;
  --accent-soft: rgba(255, 153, 0, 0.12);
  --green: #16a34a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,153,0,.08), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(59,130,246,.08), transparent 25%),
    var(--bg);
  overflow-x: hidden;
}

button, input { font: inherit; }

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(100px);
  opacity: .28;
  pointer-events: none;
}

.ambient-one { background: #ffb74d; top: -140px; left: -120px; }
.ambient-two { background: #93c5fd; top: 60px; right: -180px; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17,24,39,.14);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand-subtitle { margin-top: 2px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.environment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(14px);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.1);
}

.hero {
  display: block;
  padding: 0 4px 60px;
}

.eyebrow, .section-kicker {
  display: block;
  margin-bottom: 14px;
  color: #b86800;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 0 4px;
}
.section-kicker { margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.count-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.tool-card {
  min-height: 260px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 22px 58px rgba(15,23,42,.1);
}

.card-topline, .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  transition: transform .22s ease;
}
.tool-card:hover .tool-icon { transform: scale(1.05); }
.tool-card[data-icon="radar"] .tool-icon { background: #e8f1ff; color: #2563eb; }
.tool-card[data-icon="split"] .tool-icon { background: #f2eaff; color: #7c3aed; }
.tool-card[data-icon="calendar"] .tool-icon { background: #fff0df; color: #ea580c; }
.tool-card[data-icon="chart"] .tool-icon { background: #e6f7ed; color: #15803d; }
.tool-icon svg { width: 24px; height: 24px; }

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}
.tool-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

.tool-body { margin-top: 28px; flex: 1; }
.tool-category {
  margin-bottom: 8px;
  color: #9a6700;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.tool-name { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.tool-description { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.card-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #667085;
}
.launch-label {
  font-size: 12px;
  font-weight: 600;
  transition: color .18s ease;
}
.launch-arrow {
  width: 17px;
  height: 17px;
  transition: transform .18s ease, color .18s ease;
}
.tool-card:hover .launch-label,
.tool-card:hover .launch-arrow { color: #111827; }
.tool-card:hover .launch-arrow { transform: translate(2px, -2px); }

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 42px 0 8px;
  color: #98a2b3;
  font-size: 11px;
  letter-spacing: .03em;
}
.footer-separator { opacity: .45; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 720px); padding-top: 20px; }
  .topbar { margin-bottom: 50px; }
  .hero { padding-bottom: 44px; }
  .tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 20px, 480px); }
  .brand-subtitle { display: none; }
  .environment { font-size: 0; padding: 10px; }
  .environment .status-dot { margin: 0; }
  .hero { padding-left: 2px; padding-right: 2px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 14px; }
  .tool-card { min-height: 240px; padding: 20px; border-radius: 20px; }
  .card-footer { align-items: center; }
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
