/* tools402 site v7 — Linear/Vercel polish · identity preserved (2026) */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --layout-max: 1120px;
  --border-2: #2a2a33;
  --violet-bg: rgba(167, 139, 250, 0.08);
  --violet-border: rgba(167, 139, 250, 0.22);
  --blue: #60a5fa;
  --green: #22c55e;
}

/* Atmospheric grid */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -20%, rgba(167, 139, 250, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 50%, rgba(59, 130, 246, 0.08), transparent 50%),
    var(--bg);
}
.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 75%);
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 88%);
}

body.site-v7 {
  position: relative;
}
body.site-v7 > :not(.site-bg) {
  position: relative;
  z-index: 1;
}

/* Glass floating nav */
body.site-v7 .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 20px 0;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}
body.site-v7 .topbar-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 11, 0.65);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 8px 32px -12px rgba(0, 0, 0, 0.5);
}
body.site-v7 .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
body.site-v7 .topbar nav a {
  border-radius: 8px;
  padding: 7px 12px;
}
body.site-v7 .topbar nav a.cur {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
body.site-v7 .top-spacer {
  flex: 0;
}
body.site-v7 .topbar .pill {
  margin-left: 8px;
  max-width: min(280px, 32vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-cta.primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.nav-cta.primary:hover {
  background: #fff;
}

@media (max-width: 900px) {
  body.site-v7 .topbar .pill {
    display: none;
  }
}
@media (max-width: 768px) {
  body.site-v7 .nav-actions .nav-cta:not(.primary) {
    display: none;
  }
}

/* Buttons — unify legacy + v7 */
.btn-solid,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--text);
  color: var(--bg) !important;
  border: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 40px -16px rgba(167, 139, 250, 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}
.btn-solid:hover,
.btn-primary:hover {
  background: #fff !important;
  transform: translateY(-1px);
}
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s, border-color 0.15s;
}
.btn-outline:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

/* Home hero — centered */
.hero-v7 {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 24px 40px;
  text-align: center;
}
.hero-v7 h1 {
  font-size: clamp(40px, 6.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 auto 20px;
  max-width: 14ch;
}
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--text-2) 40%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-v7 .accent,
h1 .accent {
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-v7 .hero-lede,
.hero-v7 .lede {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 auto 28px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.hero-v7 .hero-cta,
.hero-v7 .hero-ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 20, 0.8);
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 24px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.announce:hover {
  border-color: var(--border-2);
  background: var(--surface);
  color: var(--text);
}
.announce-tag,
.pill-announce .pill-tag {
  font: 600 10px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(167, 139, 250, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Product frame */
.product-frame {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.frame-outer {
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    165deg,
    rgba(167, 139, 250, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(96, 165, 250, 0.25) 70%,
    rgba(167, 139, 250, 0.15) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 40px 80px -24px rgba(0, 0, 0, 0.7),
    0 0 120px -40px rgba(167, 139, 250, 0.22);
}
.frame-inner {
  border-radius: 15px;
  background: var(--bg-2);
  overflow: hidden;
}
.frame-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 20, 0.9);
}
.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.frame-dot.v {
  background: var(--violet);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}
.frame-url {
  flex: 1;
  margin-left: 8px;
  font: 11px var(--mono);
  color: var(--text-3);
  text-align: center;
}
.frame-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 300px;
}
@media (max-width: 800px) {
  .frame-body {
    grid-template-columns: 1fr;
  }
}
.frame-flow {
  padding: 24px;
  border-right: 1px solid var(--border);
}
@media (max-width: 800px) {
  .frame-flow {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
.frame-flow h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
}
.flow-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flow-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.flow-pill.on {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.08);
  box-shadow: 0 0 24px -8px rgba(167, 139, 250, 0.35);
}
.flow-pill span:last-child {
  font: 500 10px var(--mono);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.flow-pill.on span:last-child {
  color: var(--violet);
}
.frame-term,
.hero-term-body {
  padding: 20px 22px;
  font: 12.5px/1.75 var(--mono);
  color: var(--text-2);
  background: #08080a;
}
.frame-term .pr,
.hero-term-body .pr {
  color: var(--text-3);
}
.frame-term .cm,
.hero-term-body .cm {
  color: var(--text-2);
}
.frame-term .w,
.hero-term-body .w {
  color: var(--violet);
}
.frame-term .ok,
.hero-term-body .ok {
  color: var(--green);
}
.frame-term .s,
.hero-term-body .s {
  color: #fca5a5;
}
.frame-term .v,
.hero-term-body .v {
  color: var(--blue);
}

/* Stats band */
.stats-band {
  max-width: var(--layout-max);
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 700px) {
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stats-band .cell,
.stats-band .stat {
  background: rgba(17, 17, 20, 0.75);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
}
.stats-band .k,
.stats-band .stat-k {
  font: 500 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.stats-band .v,
.stats-band .stat-v {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Inner pages — page head */
body.site-v7 .page-head {
  max-width: var(--layout-max);
  padding-top: clamp(40px, 6vw, 64px);
}
body.site-v7 .page-head h1 {
  letter-spacing: -0.04em;
}
body.site-v7 .crumb {
  max-width: var(--layout-max);
}

/* Content width */
body.site-v7 .editorial {
  max-width: var(--layout-max);
}
body.site-v7 .editorial-wide {
  max-width: min(1280px, 100%);
}

/* Sections polish */
body.site-v7 .section-block {
  border-top-color: rgba(255, 255, 255, 0.06);
}
body.site-v7 .flow,
body.site-v7 .cat-table,
body.site-v7 .stat-row,
body.site-v7 .pitch-grid,
body.site-v7 .hero-chain,
body.site-v7 .card {
  border-radius: 12px;
}
body.site-v7 .hero-chain,
body.site-v7 .proof-block {
  background: rgba(17, 17, 20, 0.6);
  border-color: var(--border);
}
body.site-v7 .proof-block {
  border-radius: 14px;
}

/* CTA band */
.cta-band {
  max-width: var(--layout-max);
  margin: 0 auto 100px;
  padding: 48px 32px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.85) 0%, rgba(17, 17, 20, 0.45) 100%);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.12), transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.cta-band p {
  position: relative;
  color: var(--text-2);
  margin: 0 0 24px;
}

/* Bento (optional blocks) */
.bento {
  max-width: var(--layout-max);
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
  }
}
.bento .card {
  border-radius: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.bento .card.wide {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .bento .card.wide {
    grid-column: span 1;
  }
}
.bento .card-tag {
  font: 600 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
.pull-serif {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.35;
  margin: 16px 0 0;
}

/* Footer */
body.site-v7 .footer {
  max-width: var(--layout-max);
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-v7 > * {
  animation: fade-up 0.7s var(--ease-out) both;
}
.hero-v7 .pill-announce,
.hero-v7 #hero-changelog-pill {
  animation-delay: 0s;
}
.hero-v7 h1 {
  animation-delay: 0.06s;
}
.hero-v7 .hero-lede,
.hero-v7 .lede {
  animation-delay: 0.12s;
}
.hero-v7 .hero-cta,
.hero-v7 .hero-ctas {
  animation-delay: 0.18s;
}
.product-frame {
  animation: fade-up 0.9s var(--ease-out) 0.22s both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-v7 > *,
  .product-frame {
    animation: none;
  }
  .flow-pill {
    transition: none;
  }
}
