:root {
  --ink: #0a0d11;
  --ink-soft: #2a3238;
  --muted: #5c6b72;
  --line: rgba(10, 13, 17, 0.1);
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: #ffffff;
  --teal: #00c1a3;
  --teal-deep: #009e86;
  --mist: #e8f1ef;
  --paper: #f4f8f7;
  --shadow: 0 18px 40px rgba(10, 13, 17, 0.06);
  --radius: 18px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(0, 193, 163, 0.18), transparent 55%),
    radial-gradient(900px 600px at 92% 8%, rgba(42, 70, 90, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fbfa 0%, var(--paper) 45%, #eef5f3 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-a {
  width: 380px;
  height: 380px;
  left: -120px;
  top: 30%;
  background: rgba(0, 193, 163, 0.22);
}

.orb-b {
  width: 320px;
  height: 320px;
  right: -100px;
  top: 55%;
  background: rgba(55, 90, 110, 0.16);
  animation-delay: -6s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(24px, -28px, 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;
}

.topbar,
.hero,
.tools,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark img {
  display: block;
}

.topnav {
  display: flex;
  gap: 1.25rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: var(--ink);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1.5rem 3.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.brand-line {
  display: block;
}

.brand-line.accent {
  color: var(--ink);
  position: relative;
}

.brand-line.accent::after {
  content: "";
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.18em;
  margin-bottom: 0.18em;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: baseline;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
}

.btn.primary:hover {
  background: #1a2228;
  transform: translateY(-1px);
}

.btn.ghost {
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.btn.ghost:hover {
  border-color: rgba(10, 13, 17, 0.25);
  color: var(--ink);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-stage {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-hero {
  width: 78%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 40px rgba(10, 13, 17, 0.12));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.pulse-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(0, 193, 163, 0.35);
  border-radius: 50%;
  animation: pulse 4.5s ease-out infinite;
}

.pulse-ring.delay {
  inset: 2%;
  animation-delay: 1.4s;
  border-color: rgba(10, 13, 17, 0.12);
}

@keyframes pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.tools {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(360px, 100%);
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease;
}

.search:focus-within {
  border-color: rgba(0, 193, 163, 0.55);
  color: var(--ink);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

.search input::placeholder {
  color: #8a9aa2;
}

.count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.tool {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.55s ease forwards;
}

.tool::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.tool:hover,
.tool:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 193, 163, 0.35);
  box-shadow: 0 22px 48px rgba(10, 13, 17, 0.09);
  outline: none;
}

.tool:hover::before,
.tool:focus-visible::before {
  transform: scaleY(1);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal-deep);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}

.tool-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.tool-body p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tool-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.arrow {
  color: var(--muted);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.tool:hover .arrow {
  color: var(--teal-deep);
  transform: translateX(3px);
}

.empty {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--muted);
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    text-align: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .logo-stage {
    width: min(260px, 70vw);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb,
  .logo-hero,
  .pulse-ring,
  .brand-line.accent::after,
  .tool {
    animation: none !important;
  }

  .tool {
    opacity: 1;
    transform: none;
  }
}
