:root {
  --brand: #0165b4;
  --brand-rgb: 1, 101, 180;
  --brand-dark: #014f8d;
  --brand-deep: #003b6a;
  --brand-soft: #e7f2fb;
  --ink: #12212f;
  --muted: #647384;
  --line: #dbe4eb;
  --paper: #f7f9fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 43, 66, 0.09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 235, .78);
  background: rgba(247, 249, 251, .86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px 11px 11px 4px;
  background: var(--brand);
  color: white;
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(var(--brand-rgb), .22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #4a5a68;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
.header-cta {
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(20, 48, 70, .04);
}

.header-cta:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23a363;
  box-shadow: 0 0 0 4px rgba(35, 163, 99, .11);
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: 70px;
  padding-top: 76px;
  padding-bottom: 76px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  letter-spacing: .04em;
  text-transform: none;
}

.hero h1 {
  margin: 22px 0 20px;
  max-width: 650px;
  height: 2.16em;
  min-height: 2.16em;
  overflow: hidden;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.08;
  letter-spacing: -.065em;
}

.hero h1 .accent {
  color: var(--brand);
}

.typewriter-line {
  display: block;
  min-height: 1.08em;
  overflow: hidden;
  white-space: nowrap;
}

.typewriter-line > span::after {
  content: "";
  display: inline-block;
  width: .07em;
  height: .82em;
  margin-left: .1em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translateY(.06em);
}

.typewriter-line.is-active > span::after {
  opacity: 1;
  animation: typewriter-caret .82s steps(1, end) infinite;
}

@keyframes typewriter-caret {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

.hero-intro {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.tool-search {
  position: relative;
  max-width: 570px;
  margin-top: 30px;
}

.tool-search input {
  width: 100%;
  height: 58px;
  padding: 0 56px 0 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  box-shadow: 0 12px 35px rgba(30, 62, 88, .08);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tool-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .1), 0 12px 35px rgba(30, 62, 88, .08);
}

.tool-search input::placeholder {
  color: #92a0ac;
}

.search-symbol {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid #718394;
  border-radius: 50%;
}

.search-symbol::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #718394;
  transform: rotate(45deg);
}

.tool-search kbd {
  position: absolute;
  right: 16px;
  top: 15px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: #f6f8fa;
  color: #6e7e8c;
  font-family: inherit;
  font-size: 12px;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
  color: #7a8997;
  font-size: 12px;
}

.filter-row > span {
  margin-right: 4px;
}

.filter-chip {
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526473;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: #dcecf8;
  color: var(--brand-dark);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 455px;
  min-width: 0;
  min-height: 0;
  border-radius: 42px 42px 42px 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.22), transparent 22%),
    linear-gradient(145deg, #0476cb, #014a84);
  box-shadow: 0 30px 80px rgba(var(--brand-rgb), .24);
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
}

.hero-visual::before {
  width: 340px;
  height: 340px;
  right: -140px;
  top: -120px;
  box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.02);
}

.hero-visual::after {
  width: 230px;
  height: 230px;
  left: -120px;
  bottom: -130px;
}

.visual-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(135deg, black, transparent 80%);
  mask-image: linear-gradient(135deg, black, transparent 80%);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 22px 46px rgba(0, 39, 70, .25);
}

.card-back,
.card-mid {
  width: 170px;
  height: 76px;
  padding: 15px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 750;
}

.card-back {
  top: 82px;
  left: 46px;
  transform: rotate(-7deg);
}

.card-mid {
  top: 62px;
  right: 42px;
  transform: rotate(7deg);
}

.card-front {
  left: 50%;
  bottom: 68px;
  width: min(390px, calc(100% - 46px));
  min-height: 126px;
  padding: 20px;
  border-radius: 24px;
  transform: translateX(-50%);
}

.card-front > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.card-front strong,
.card-front span {
  display: block;
}

.card-front strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.card-front div > span {
  color: var(--muted);
  font-size: 12px;
}

.card-front b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-size: 18px;
}

.float-icon,
.cube-mark {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}

.music-icon {
  font-family: Georgia, serif;
  font-size: 25px;
}

.cube-mark {
  grid-template-columns: repeat(2, 8px);
  gap: 3px;
}

.cube-mark i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.poster-stack {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 84px;
}

.poster-stack i {
  position: absolute;
  width: 54px;
  height: 76px;
  border: 3px solid white;
  border-radius: 9px;
  background: linear-gradient(155deg, #0e3f66 0 45%, #f2bd69 46% 63%, #d7eaf8 64%);
  box-shadow: 0 7px 15px rgba(18, 33, 47, .15);
}

.poster-stack i:nth-child(1) { left: 1px; transform: rotate(-9deg); }
.poster-stack i:nth-child(2) { left: 12px; background: linear-gradient(155deg, #dceaf4 0 38%, #1877bd 39% 70%, #092f50 71%); }
.poster-stack i:nth-child(3) { left: 23px; transform: rotate(8deg); background: linear-gradient(155deg, #f0aa54 0 35%, #f6e2c1 36% 63%, #094c80 64%); }

.spark {
  position: absolute;
  color: rgba(255,255,255,.7);
}

.spark-a { top: 190px; left: 46px; font-size: 21px; }
.spark-b { right: 35px; bottom: 45px; font-size: 13px; }

.tool-section {
  padding: 94px 0 104px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}

.section-eyebrow span {
  font-size: 15px;
}

.section-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(34px, 4.1vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.section-heading h2 em {
  color: var(--brand);
  font: inherit;
  font-style: normal;
}

.section-intro {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -.045em;
}

.section-heading > p {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tool-carousel {
  position: relative;
}

.tool-viewport {
  margin: -8px 0 -30px;
  padding: 8px 0 30px;
  overflow: hidden;
}

.tool-track {
  min-width: 0;
  display: flex;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  transition: transform .62s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.tool-track.is-resetting {
  transition: none;
}

.tool-page {
  width: 100%;
  min-width: 0;
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 360px;
  column-gap: 18px;
  row-gap: 18px;
}

.tool-card {
  min-height: 360px;
  height: 360px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.tool-card:hover,
.tool-card:focus-visible,
.tool-card:focus-within {
  transform: translateY(-5px);
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  box-shadow: 0 20px 46px rgba(var(--brand-rgb), .22);
  outline: none;
}

.tool-card.featured {
  grid-column: auto;
}

.tool-card.featured:is(:hover, :focus-visible, :focus-within) {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  box-shadow: 0 20px 46px rgba(var(--brand-rgb), .22);
}

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

.card-topline {
  min-height: 56px;
  flex: 0 0 56px;
}

.tool-icon {
  width: 56px;
  height: 56px;
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  place-content: center;
  border-radius: 17px;
  background: var(--brand-soft);
  color: var(--brand);
  line-height: 1;
}

.featured .tool-icon {
  background: var(--brand-soft);
  color: var(--brand);
}

.icon-cover {
  position: relative;
}

.icon-cover i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 29px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: var(--brand);
}

.icon-cover i:nth-child(1) { transform: translate(-50%, -50%) translateX(-8px) rotate(-12deg); opacity: .6; }
.icon-cover i:nth-child(2) { transform: translate(-50%, -50%); opacity: .8; }
.icon-cover i:nth-child(3) { transform: translate(-50%, -50%) translateX(8px) rotate(12deg); }

.icon-music {
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.icon-lego {
  grid-template-columns: repeat(2, 12px);
  place-content: center;
  gap: 4px;
}

.icon-lego i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.1);
}

.icon-namecard {
  position: relative;
}

.icon-namecard::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 31px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: translate(-50%, -50%);
}

.icon-namecard i {
  position: absolute;
  left: 17px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.icon-namecard i::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 8px;
  width: 11px;
  height: 5px;
  border-radius: 5px 5px 2px 2px;
  background: currentColor;
}

.icon-namecard b {
  position: absolute;
  right: 14px;
  top: 22px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.icon-image,
.icon-code,
.icon-time,
.icon-password,
.icon-text,
.icon-number,
.icon-crop,
.icon-chat,
.icon-lottery {
  position: relative;
}

.icon-image::before {
  content: "";
  width: 30px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-image::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.icon-image i {
  position: absolute;
  left: 18px;
  bottom: 17px;
  width: 16px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.icon-code {
  grid-template-columns: repeat(2, 11px);
  place-content: center;
  gap: 7px;
}

.icon-code i {
  width: 10px;
  height: 22px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.icon-code i:first-child {
  border-left: 3px solid currentColor;
  border-radius: 4px 0 0 4px;
}

.icon-code i:last-child {
  border-right: 3px solid currentColor;
  border-radius: 0 4px 4px 0;
}

.icon-time::before {
  content: "";
  width: 29px;
  height: 29px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-time i,
.icon-time i::after {
  position: absolute;
  left: 27px;
  top: 18px;
  width: 2px;
  height: 11px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 1px 10px;
}

.icon-time i::after {
  content: "";
  left: 0;
  top: 9px;
  height: 8px;
  transform-origin: 1px 1px;
  transform: rotate(125deg);
}

.icon-password::before {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 24px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-password::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 21px;
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: currentColor;
}

.icon-password i {
  position: absolute;
  left: 21px;
  top: 13px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.icon-text {
  align-content: center;
  justify-content: center;
  gap: 5px;
}

.icon-text i {
  width: 27px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
}

.icon-text i:nth-child(2) { width: 21px; }

.icon-number::before {
  content: "123";
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -1px;
}

.icon-crop::before,
.icon-crop::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
}
.icon-crop::before { left: 14px; top: 14px; border-left: 3px solid currentColor; border-top: 3px solid currentColor; }
.icon-crop::after { right: 14px; bottom: 14px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; }

.icon-chat::before {
  content: "";
  width: 30px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 12px;
}
.icon-chat::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 13px;
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  transform: skew(-28deg) rotate(-18deg);
}
.icon-chat i,
.icon-chat i::before,
.icon-chat i::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.icon-chat i::before, .icon-chat i::after { position: absolute; content: ""; top: 0; }
.icon-chat i { position: absolute; left: 26px; top: 26px; }
.icon-chat i::before { left: -8px; }
.icon-chat i::after { left: 8px; }

.icon-lottery { grid-template-columns: repeat(2, 15px); place-content: center; gap: 3px; }
.icon-lottery i { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; }
.icon-lottery i:last-child { grid-column: 1 / -1; justify-self: center; background: currentColor; }

.letter-icon {
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.number,
.tag,
.tool-state {
  flex: 0 0 auto;
  color: #91a0ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf2f5;
  color: #6b7b89;
  letter-spacing: .03em;
}

.tool-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  letter-spacing: .03em;
}

.tool-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7de3b0;
}

.card-content {
  margin-top: auto;
  padding-top: 52px;
}

.featured .card-content {
  max-width: 540px;
}

.tool-label {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.featured .tool-label {
  color: var(--brand);
}

.tool-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.tool-card .card-content > p:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.featured .card-content > p:last-child {
  color: var(--muted);
}

.card-footer {
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #50616f;
  font-size: 12px;
  font-weight: 700;
}

.featured .card-footer {
  border-color: var(--line);
  color: #50616f;
}

.arrow {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
  transition: transform .2s ease;
}

.featured .arrow {
  background: var(--brand-soft);
}

.tool-card:hover .arrow {
  transform: rotate(45deg);
}

.tool-card:is(:hover, :focus-visible, :focus-within) .tool-icon {
  background: rgba(255,255,255,.16);
  color: white;
}

.tool-card:is(:hover, :focus-visible, :focus-within) .icon-lego i {
  background: white;
}

.tool-card:is(:hover, :focus-visible, :focus-within) .icon-cover i {
  background: white;
}

.tool-card:is(:hover, :focus-visible, :focus-within) .tool-label,
.tool-card:is(:hover, :focus-visible, :focus-within) .number,
.tool-card:is(:hover, :focus-visible, :focus-within) .tag,
.tool-card:is(:hover, :focus-visible, :focus-within) .tool-state,
.tool-card:is(:hover, :focus-visible, :focus-within) .card-content > p:last-child,
.tool-card:is(:hover, :focus-visible, :focus-within) .card-footer {
  color: white;
}

.tool-card:is(:hover, :focus-visible, :focus-within) .tag,
.tool-card:is(:hover, :focus-visible, :focus-within) .tool-state {
  background: rgba(255,255,255,.15);
}

.tool-card:is(:hover, :focus-visible, :focus-within) .card-footer {
  border-color: rgba(255,255,255,.2);
}

.tool-card:is(:hover, :focus-visible, :focus-within) .arrow {
  background: white;
  color: var(--brand);
}

.cover-group {
  grid-column: auto;
}

.variant-links {
  display: grid;
  grid-template-columns: repeat(var(--variant-columns, 3), 1fr);
  gap: 8px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.variant-links a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.variant-links a > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
}

.variant-links strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-links i {
  color: var(--brand);
  font-size: 13px;
  font-style: normal;
}

.cover-group:is(:hover, :focus-within) .variant-links {
  border-color: rgba(255,255,255,.2);
}

.cover-group:is(:hover, :focus-within) .variant-links a {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.14);
  color: white;
}

.cover-group:is(:hover, :focus-within) .variant-links a > span {
  background: white;
  color: var(--brand);
}

.cover-group:is(:hover, :focus-within) .variant-links i {
  color: white;
}

.variant-links a:hover,
.variant-links a:focus-visible,
.cover-group:is(:hover, :focus-within) .variant-links a:hover,
.cover-group:is(:hover, :focus-within) .variant-links a:focus-visible {
  border-color: white;
  background: white;
  color: var(--brand);
  transform: translateY(-2px);
  outline: none;
}

.cover-group:is(:hover, :focus-within) .variant-links a:hover i,
.cover-group:is(:hover, :focus-within) .variant-links a:focus-visible i {
  color: var(--brand);
}

.tool-card.compact {
  min-height: 360px;
}

.tool-card.compact .card-content {
  padding-top: 36px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.carousel-controls[hidden] {
  display: none;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--brand);
  cursor: pointer;
  font-size: 19px;
  box-shadow: 0 8px 24px rgba(16, 43, 66, .07);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.carousel-arrow:hover:not(:disabled),
.carousel-arrow:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
  outline: none;
}

.carousel-arrow:disabled {
  opacity: .32;
  cursor: default;
  box-shadow: none;
}

.carousel-status {
  min-width: 52px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-align: center;
}

.empty-state {
  padding: 70px 20px;
  border: 1px dashed #c8d6df;
  border-radius: var(--radius);
  text-align: center;
  background: #fbfcfd;
}

.empty-state > span {
  color: var(--brand);
  font-size: 38px;
}

.empty-state h3 {
  margin: 12px 0 6px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.empty-state button {
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  cursor: pointer;
}

.about-section {
  padding-top: 72px;
  padding-bottom: 104px;
}

.about-panel {
  position: relative;
  padding: 64px;
  border-radius: 32px 32px 32px 10px;
  overflow: hidden;
  background: #e7f2fb;
}

.about-panel::after {
  content: "s";
  position: absolute;
  right: 52px;
  top: -56px;
  color: rgba(var(--brand-rgb), .07);
  font-family: Georgia, serif;
  font-size: 280px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.about-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.about-panel > p:nth-of-type(2) {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 19px 0 25px;
  color: #536878;
  line-height: 1.8;
}

.about-panel a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  color: var(--ink);
  font-size: 17px;
}

.footer-brand .brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 9px 9px 9px 3px;
  font-size: 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:last-child {
  justify-self: end;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    height: 400px;
  }

  .tool-page {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    padding: 9px 11px;
    font-size: 11px;
  }

  .brand { font-size: 17px; }
  .brand-mark { width: 31px; height: 31px; font-size: 19px; }
  .typewriter-line {
    min-height: 2.16em;
    max-height: 2.16em;
    white-space: normal;
  }
  .tool-search input { font-size: 16px; }

  .hero {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 62px;
  }

  .hero h1 {
    height: 4.32em;
    min-height: 4.32em;
    font-size: clamp(27px, 7.6vw, 38px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-visual {
    height: 360px;
    border-radius: 30px 30px 30px 10px;
  }

  .card-back {
    top: 45px;
    left: 22px;
  }

  .card-mid {
    top: 95px;
    right: 19px;
  }

  .card-back,
  .card-mid {
    width: 145px;
    height: 66px;
    padding: 11px;
  }

  .float-icon,
  .cube-mark {
    width: 38px;
    height: 38px;
  }

  .card-front {
    bottom: 42px;
    min-height: 108px;
    padding: 14px;
  }

  .poster-stack {
    width: 67px;
    height: 73px;
  }

  .poster-stack i {
    width: 46px;
    height: 66px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: clamp(27px, 7.6vw, 38px);
    white-space: normal;
  }

  .section-heading > p {
    justify-self: start;
  }

  .section-intro {
    font-size: 13px;
  }

  .tool-section {
    padding: 72px 0;
  }

  .tool-page {
    grid-template-columns: 1fr;
    grid-auto-rows: 340px;
  }

  .cover-group {
    grid-column: auto;
  }

  .variant-links {
    grid-template-columns: repeat(var(--variant-columns, 3), 1fr);
  }

  .variant-links a {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    padding: 8px 4px;
  }

  .variant-links i {
    display: none;
  }

  .variant-links strong {
    width: 100%;
    font-size: 10px;
    text-align: center;
  }

  .tool-card,
  .tool-card.compact {
    min-height: 340px;
    height: 340px;
  }

  .carousel-controls {
    margin-top: 24px;
  }

  .about-section {
    padding-bottom: 72px;
  }

  .about-panel {
    padding: 42px 28px;
  }

  .about-panel::after {
    right: -25px;
    top: -35px;
    font-size: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .footer-inner p:last-child {
    justify-self: start;
  }
}

@media (max-width: 380px) {
  .header-cta { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-visual { height: 330px; }
  .tool-page, .tool-card, .tool-card.compact { grid-auto-rows: 320px; min-height: 320px; height: 320px; }
  .about-panel { padding: 36px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-line.is-active > span::after {
    animation: none;
    opacity: 0;
  }
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
