:root {
  --bg: #0b0b0d;
  --shell: #111114;
  --panel: #16161a;
  --hover: #1c1c23;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #8e8e98;
  --subtle: #62626c;
  --accent-border: rgba(129, 140, 248, 0.38);
  --live: #34d399;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(620px 280px at 50% -30px, rgba(34, 184, 228, 0.12), transparent 70%),
    radial-gradient(400px 220px at 78% 18%, rgba(99, 102, 241, 0.08), transparent 72%);
}

.viewport {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1.1rem;
}

.container {
  width: 100%;
  max-width: 560px;
}

.brand {
  text-align: center;
  margin-bottom: 1.4rem;
}

.brand-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 15px;
  background: var(--shell);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tagline {
  margin: 0 auto;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Polar Double-Bezel Shell */
.shell {
  background: var(--shell);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.55rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.7rem 0.65rem;
}

.shell-header h2 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: #d4d4dc;
}

.shell-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 0.45rem;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.tool-card:hover {
  background: var(--hover);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tool-icon svg {
  width: 28px;
  height: 28px;
}

.tool-meta {
  min-width: 0;
  flex: 1;
}

.tool-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.tool-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: #ffffff;
  color: #09090b;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.tool-card:hover .tool-cta {
  background: #e9ebff;
}

.arrow {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}

.tool-card:hover .arrow {
  transform: translateX(2px);
}

.footer {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--subtle);
  font-size: 0.76rem;
}

@media (max-width: 500px) {
  .tool-card {
    flex-wrap: wrap;
  }

  .tool-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
    padding: 0.55rem 1rem;
  }
}
