:root {
  --ink: #141427;
  --muted: #5a5a77;
  --paper: #f4efe8;
  --sand: #ebe0d2;
  --purple: #5e5cff;
  --purple-dark: #3d3bdb;
  --teal: #30c7b1;
  --gold: #ffbc5c;
  --mint: #dff6ef;
  --peach: #ffe4ca;
  --shadow: 0 20px 50px rgba(20, 20, 39, 0.14);
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(94, 92, 255, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(48, 199, 177, 0.14) 0%, transparent 24%),
    radial-gradient(circle at 85% 82%, rgba(255, 188, 92, 0.18) 0%, transparent 26%),
    linear-gradient(180deg, #fcfaf7 0%, #f3ede5 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 46, 0.2);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(94, 92, 255, 0.08) 0%, transparent 45%),
    linear-gradient(45deg, rgba(20, 20, 39, 0.04) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0%, transparent 42%);
  pointer-events: none;
  opacity: 0.8;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 20, 39, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(20, 20, 39, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 39, 0.04);
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(94, 92, 255, 0.1);
  color: var(--purple-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(94, 92, 255, 0.12);
}

.nav {
  display: flex;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.38);
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-pill:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(20, 20, 39, 0.08);
  box-shadow: 0 10px 22px rgba(20, 20, 39, 0.06);
  transform: translateY(-1px);
}

.nav-pill.active,
.nav-pill[aria-current="page"] {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #ffffff;
  border-color: rgba(94, 92, 255, 0.18);
  box-shadow: 0 12px 30px rgba(94, 92, 255, 0.16);
  transform: translateY(-1px);
}

/* Animated gradient for accent elements */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-primary,
.nav-pill.active,
.nav-pill[aria-current="page"] {
  background-size: 200% 200%;
  animation: gradientShift 7s ease infinite;
}

.tool-card::before {
  background-size: 300% 100%;
  animation: gradientShift 10s ease infinite;
}

/* Subtle motion for hero and icons */
@keyframes floatUp {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes bob {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.hero-panel {
  animation: floatUp 8s ease-in-out infinite;
}

.tool-card__icon {
  will-change: transform;
  animation: bob 9s ease-in-out infinite;
}

.brand-chip {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-chip:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(94,92,255,0.08);
}

/* Make animations subtle or disabled for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-panel, .tool-card__icon, .btn-primary, .nav-pill.active, .tool-card::before {
    animation: none !important;
    transition: none !important;
  }
}

.nav-pill:focus-visible,
.header-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(94, 92, 255, 0.18);
}

.header-cta {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn.is-copied {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(94, 92, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(94, 92, 255, 0.34);
}

.btn-ghost {
  border-color: rgba(20, 20, 39, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  box-shadow: 0 14px 30px rgba(20, 20, 39, 0.1);
  border-color: rgba(20, 20, 39, 0.18);
}

.hero {
  padding: 84px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.75rem;
  color: var(--purple-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  box-shadow: 0 0 0 6px rgba(94, 92, 255, 0.08);
}

.hero-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 10px 0 16px;
  line-height: 1.05;
  max-width: 12ch;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(20, 20, 39, 0.08);
  border: 1px solid rgba(20, 20, 39, 0.08);
}

.stat-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.stat-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top right, rgba(94, 92, 255, 0.12), transparent 40%);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 26px 60px rgba(20, 20, 39, 0.12);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 39, 0.08);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 8%, rgba(94, 92, 255, 0.16), transparent 28%),
    radial-gradient(circle at 12% 92%, rgba(48, 199, 177, 0.14), transparent 24%);
  pointer-events: none;
}

.hero-panel h2,
.hero-panel p {
  position: relative;
  z-index: 1;
}

.hero-panel__cards {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 20, 39, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-card__mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(94, 92, 255, 0.14), rgba(48, 199, 177, 0.16));
  color: var(--ink);
  flex: 0 0 auto;
}

.hero-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(94, 92, 255, 0.08);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 20, 39, 0.14);
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.input:focus {
  outline: none;
  border-color: rgba(94, 92, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(94, 92, 255, 0.12);
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 10px;
  font-family: "Fraunces", "Times New Roman", serif;
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 24px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chip {
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid rgba(20, 20, 39, 0.12);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.chip.active {
  background: linear-gradient(135deg, var(--ink), #2a2a4a);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 10px 22px rgba(20, 20, 39, 0.16);
  transform: translateY(-1px);
}

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

.tool-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 18px 36px rgba(20, 20, 39, 0.09);
  border: 1px solid rgba(20, 20, 39, 0.08);
  display: grid;
  gap: 10px;
  min-height: 180px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(20, 20, 39, 0.14);
  border-color: rgba(94, 92, 255, 0.18);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--teal), var(--gold));
}

.tool-card:hover .tool-card__icon {
  transform: translateY(-2px) rotate(-2deg);
}

.tool-card__icon {
  height: 46px;
  width: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(94, 92, 255, 0.14), rgba(48, 199, 177, 0.18));
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.22s ease;
}

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 188, 92, 0.18);
  display: inline-flex;
  width: max-content;
  border: 1px solid rgba(255, 188, 92, 0.24);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 16px 34px rgba(20, 20, 39, 0.08);
  border: 1px solid rgba(20, 20, 39, 0.08);
}

details.feature-card {
  cursor: pointer;
}

details.feature-card summary {
  font-weight: 600;
  list-style: none;
}

details.feature-card summary::-webkit-details-marker {
  display: none;
}

.ad-slot {
  border: 1px dashed rgba(20, 20, 39, 0.18);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}

.tool-shell {
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 18px 42px rgba(20, 20, 39, 0.1);
  border: 1px solid rgba(20, 20, 39, 0.08);
}

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

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.metric {
  background: rgba(94, 92, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(94, 92, 255, 0.08);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 12px 0 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(26, 26, 46, 0.1);
  font-size: 0.95rem;
}

.table .empty-row td {
  color: var(--muted);
  font-style: italic;
}

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

.section-title + .section-subtitle {
  max-width: 60ch;
}

.hero-panel .section-title {
  margin-bottom: 6px;
}

.hero-panel .section-subtitle {
  margin-bottom: 0;
}

.tool-card h3,
.feature-card h3,
.stat-card h3 {
  letter-spacing: -0.02em;
}

.tool-card .section-subtitle,
.feature-card .section-subtitle,
.stat-card p {
  margin-bottom: 0;
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(26, 26, 46, 0.08);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  color: var(--muted);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fade-up 0.6s ease both;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .brand-lockup {
    flex: 1 1 auto;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .header-cta {
    margin-left: auto;
    padding-inline: 14px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
