* {
  box-sizing: border-box;
}

:root {
  --bg: #0a1114;
  --bg-2: #102026;
  --card: rgba(14, 27, 33, 0.78);
  --card-strong: rgba(18, 36, 44, 0.94);
  --border: rgba(109, 176, 165, 0.22);
  --border-strong: rgba(255, 186, 99, 0.28);
  --text: #f2f7f6;
  --muted: #b4c7c2;
  --soft: #7c9691;
  --accent: #64e4c6;
  --accent-2: #ffba63;
  --accent-3: #6fb4ff;
  --hero-highlight: #64e4c6;
  --hero-highlight-hover: #6fb4ff;
  --hero-highlight-glow: rgba(111, 180, 255, 0.24);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 14px 48px rgba(0, 0, 0, 0.28);
  --page-bg: #081013;
  --page-bg-2: #0f2026;
  --surface: rgba(17, 31, 37, 0.92);
  --surface-2: rgba(11, 23, 29, 0.9);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'DM Sans', sans-serif;
  --select-trigger-bg: linear-gradient(180deg, rgba(20, 34, 56, 0.88), rgba(12, 22, 38, 0.92));
  --select-trigger-bg-hover: linear-gradient(180deg, rgba(28, 46, 73, 0.9), rgba(16, 30, 50, 0.94));
  --select-trigger-border: rgba(111, 180, 255, 0.45);
  --select-trigger-ring: rgba(37, 99, 235, 0.2);
  --select-chevron-pill-bg: linear-gradient(180deg, rgba(111, 180, 255, 0.35), rgba(37, 99, 235, 0.28));
  --select-chevron-pill-border: rgba(111, 180, 255, 0.42);
  --select-chevron-color: #dbeafe;
  --select-panel-bg: linear-gradient(180deg, rgba(14, 28, 50, 0.98), rgba(8, 18, 33, 0.98));
  --select-panel-border: rgba(111, 180, 255, 0.35);
  --select-option-color: #dbeafe;
  --select-option-bg-active: linear-gradient(135deg, rgba(111, 180, 255, 0.22), rgba(37, 99, 235, 0.18));
  --select-option-border-active: rgba(111, 180, 255, 0.3);
  --dropdown-item-hover-bg: rgba(111, 180, 255, 0.18);
  --dropdown-item-hover-color: #cfe2ff;
  --donation-track: rgba(111, 180, 255, 0.16);
  --donation-fill-start: #4fd9b8;
  --donation-fill-mid: #6fb4ff;
  --donation-fill-end: #ffba63;
}

:root[data-theme='light'] {
  --bg: #d8e7ff;
  --bg-2: #e8f1ff;
  --card: rgba(247, 251, 255, 0.96);
  --card-strong: rgba(243, 249, 255, 0.98);
  --border: rgba(37, 99, 235, 0.14);
  --border-strong: rgba(37, 99, 235, 0.24);
  --text: #0f172a;
  --muted: #42536d;
  --soft: #5e7391;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-3: #1e40af;
  --shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  --shadow-soft: 0 6px 16px rgba(37, 99, 235, 0.08);
  --page-bg: #d8e7ff;
  --page-bg-2: #e5efff;
  --surface: rgba(245, 250, 255, 0.96);
  --surface-2: rgba(236, 245, 255, 0.94);
  --light-inner-surface: rgba(214, 231, 255, 0.96);
  --light-inner-surface-2: rgba(198, 220, 252, 0.92);
  --light-inner-border: rgba(37, 99, 235, 0.34);
  --select-trigger-bg: linear-gradient(180deg, rgba(224, 237, 255, 0.98), rgba(204, 224, 252, 0.94));
  --select-trigger-bg-hover: linear-gradient(180deg, rgba(214, 231, 255, 0.98), rgba(194, 218, 252, 0.94));
  --select-trigger-border: rgba(30, 64, 175, 0.4);
  --select-trigger-ring: rgba(30, 64, 175, 0.18);
  --select-chevron-pill-bg: linear-gradient(180deg, rgba(191, 219, 254, 0.92), rgba(147, 197, 253, 0.86));
  --select-chevron-pill-border: rgba(37, 99, 235, 0.3);
  --select-chevron-color: #1e3a8a;
  --select-panel-bg: linear-gradient(180deg, rgba(236, 246, 255, 0.98), rgba(220, 236, 255, 0.96));
  --select-panel-border: rgba(30, 64, 175, 0.28);
  --select-option-color: #1e293b;
  --select-option-bg-active: linear-gradient(135deg, rgba(191, 219, 254, 0.74), rgba(147, 197, 253, 0.64));
  --select-option-border-active: rgba(30, 64, 175, 0.34);
  --dropdown-item-hover-bg: rgba(37, 99, 235, 0.14);
  --dropdown-item-hover-color: #1e40af;
  --hero-highlight: #2563eb;
  --hero-highlight-hover: #1e40af;
  --hero-highlight-glow: rgba(37, 99, 235, 0.22);
  --donation-track: rgba(37, 99, 235, 0.16);
  --donation-fill-start: #2563eb;
  --donation-fill-mid: #1d4ed8;
  --donation-fill-end: #0f766e;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(100, 228, 198, 0.14), transparent 30%),
    radial-gradient(circle at 88% 5%, rgba(111, 180, 255, 0.18), transparent 26%),
    radial-gradient(circle at 72% 78%, rgba(255, 186, 99, 0.14), transparent 24%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 45%, var(--bg) 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
}

:root[data-theme='light'] body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.06), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.38), transparent 24%),
    radial-gradient(circle at 70% 75%, rgba(30, 58, 138, 0.14), transparent 22%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 45%, var(--bg) 100%);
}

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

button,
input {
  font: inherit;
}

#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124, 240, 212, 0.95), rgba(147, 167, 255, 0.8));
  opacity: 0.2;
  filter: blur(0.3px);
  animation: drift linear infinite;
}

:root[data-theme='light'] .particle {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.7), rgba(30, 58, 138, 0.6));
  opacity: 0.25;
}

@keyframes drift {
  0% {
    transform: translateY(110vh) scale(0.4);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-15vh) scale(1);
    opacity: 0;
  }
}

.header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  background: rgba(8, 16, 20, 0.84);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .25s ease;
  backdrop-filter: blur(16px) saturate(1.8);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-width: 0;
  width: 100%;
  max-width: none;
  padding-top: .875rem;
  padding-bottom: .875rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
  overflow: visible;
  justify-content: flex-start;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--text);
  flex-shrink: 0;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 52px;
}

:root[data-theme='light'] .logo-icon {
  color: #fff;
}

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

.hero h1,
.section-heading h2,
.browser-topbar h3,
.cta-card h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
  justify-content: flex-end;
}

.nav {
  display: flex;
  gap: .25rem;
  align-items: center;
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

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

.nav-dropdown {
  position: static;
  flex: 0 0 auto;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  border: none;
  background: transparent;
}

.dropdown-toggle:hover {
  color: var(--accent-3);
  background: rgba(99, 102, 241, .08);
}

.dropdown-toggle .fa-chevron-down {
  font-size: .6rem;
  transition: transform .25s ease;
}

.nav-dropdown:hover .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--select-panel-bg);
  border: 1px solid var(--select-panel-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 36px rgba(2, 8, 23, 0.42);
  backdrop-filter: blur(10px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 1000;
}

.mega-menu {
  width: min(1080px, calc(100vw - 3rem));
  min-width: min(1080px, calc(100vw - 3rem));
  max-width: min(1080px, calc(100vw - 3rem));
}

@media (min-width: 761px) {
  .header .container {
    overflow: visible;
  }

  .header-left {
    padding-right: .5rem;
    flex: 1 1 auto;
    max-width: calc(100% - 340px);
    overflow: visible;
  }

  .nav {
    overflow: visible;
  }

  .header-right {
    position: static;
    transform: none;
    margin-left: auto;
    flex: 0 0 auto;
    max-width: 340px;
    width: auto;
    justify-content: flex-end;
  }

  .nav-search {
    width: min(290px, 28vw);
    flex: 0 1 290px;
  }
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
}

.mega-menu-content {
  padding: 8px 6px;
  max-height: 420px;
  overflow-y: auto;
}

.mega-menu-content h4 {
  font-size: .68rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .6rem 1rem .4rem;
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 1;
  border-bottom: 1px solid var(--select-panel-border);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .85rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--select-option-color);
  transition: all .18s ease;
  border-bottom: none;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 10px;
  margin: 3px;
  position: relative;
}

.dropdown-item:hover {
  background: var(--select-option-bg-active);
  color: var(--select-option-color);
  border: 1px solid var(--select-panel-border);
  border-radius: 10px;
  transform: translateX(3px);
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--select-panel-border);
  background: rgba(111, 180, 255, 0.16);
  color: var(--accent-3);
  flex-shrink: 0;
}

:root[data-theme='light'] .dropdown-item-icon {
  background: linear-gradient(180deg, rgba(214, 231, 255, 0.96), rgba(198, 220, 252, 0.9));
  border-color: rgba(30, 64, 175, 0.28);
  color: #1e3a8a;
}

.dropdown-item-title {
  font-weight: 500;
}

.dropdown-item-desc {
  display: none;
}

.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;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 0 1 300px;
  width: min(300px, 36vw);
  min-width: 180px;
  min-width: 210px;
  padding: .72rem .9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: linear-gradient(135deg, rgba(124, 240, 212, 0.12), rgba(99, 102, 241, 0.08));
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.12);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  position: relative;
}

.nav-search:hover {
  transform: translateY(-1px);
}

.nav-search-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 240, 212, 0.16);
  color: var(--accent-3);
  flex-shrink: 0;
}

.nav-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: .95rem;
  appearance: none;
  -webkit-appearance: none;
  caret-color: var(--accent-3);
  box-shadow: none;
}

.nav-search input::placeholder {
  color: color-mix(in srgb, var(--muted) 88%, white 12%);
  opacity: 1;
}

.nav-search input::-webkit-search-decoration,
.nav-search input::-webkit-search-cancel-button,
.nav-search input::-webkit-search-results-button,
.nav-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.nav-search input:focus {
  outline: none;
  box-shadow: none;
}

.nav-search:focus-within {
  border-color: rgba(111, 180, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(111, 180, 255, 0.12), 0 14px 28px rgba(2, 8, 23, 0.14);
}

:root[data-theme='light'] .nav-search {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(229, 245, 255, 0.92));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

:root[data-theme='light'] .nav-search-icon {
  background: linear-gradient(180deg, rgba(214, 231, 255, 0.96), rgba(198, 220, 252, 0.9));
  color: #1e3a8a;
}

:root[data-theme='light'] .nav-search:focus-within {
  border-color: rgba(30, 64, 175, 0.3);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08), 0 14px 24px rgba(15, 23, 42, 0.08);
}

.nav-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: var(--select-panel-bg);
  border: 1px solid var(--select-panel-border);
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.28);
  z-index: 1200;
}

.nav-search-results.hidden {
  display: none;
}

.nav-search-result {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: .75rem .85rem;
  cursor: pointer;
  display: grid;
  gap: .2rem;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.nav-search-result:hover {
  background: var(--select-option-bg-active);
  border-color: var(--select-option-border-active);
  transform: translateY(-1px);
}

.nav-search-result-title {
  font-weight: 700;
  color: var(--text);
}

.nav-search-result-meta,
.nav-search-empty {
  font-size: .82rem;
  color: var(--muted);
}

.nav-search-empty {
  padding: .85rem .9rem;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
}

.theme-toggle:hover {
  color: var(--accent-3);
  border-color: var(--accent-3);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}

.pill-link {
  background: linear-gradient(135deg, rgba(124, 240, 212, 0.16), rgba(147, 167, 255, 0.16));
  color: var(--text) !important;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 28px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: stretch;
  padding: 48px 0 24px;
}

.hero-copy,
.hero-panel,
.glass-card,
.cta-card {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 36px;
  border-radius: 34px;
  overflow: hidden;
}

.hero-copy::before,
.hero-panel::before,
.glass-card::before,
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(124, 240, 212, 0.08), transparent 34%, rgba(147, 167, 255, 0.06));
}

:root[data-theme='light'] .hero-copy::before,
:root[data-theme='light'] .hero-panel::before,
:root[data-theme='light'] .glass-card::before,
:root[data-theme='light'] .cta-card::before {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), transparent 34%, rgba(37, 99, 235, 0.04));
}

.eyebrow,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  line-height: 0.94;
  max-width: 11ch;
}

.hero h1 .hero-highlight {
  display: inline-block;
  color: var(--hero-highlight);
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
  will-change: transform, color, text-shadow;
}

.hero h1 .hero-highlight:hover {
  transform: translateY(-3px);
  color: var(--hero-highlight-hover);
  text-shadow: 0 0 18px var(--hero-highlight-glow);
}

.hero h1 .hero-rotate {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-width: 9ch;
  height: 1.2em;
  margin: 0 0.25ch;
  vertical-align: text-bottom;
  overflow: hidden;
  transform: translateY(4px);
}

.hero h1 .hero-rotate span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  animation-timing-function: ease-in-out;
  font-weight: 800;
  will-change: opacity, transform;
}

.hero h1 .hero-rotate span:nth-child(1) {
  animation: drop-down 24s ease-in-out infinite;
  animation-delay: 0s;
  background: linear-gradient(135deg, var(--accent), #4fd9b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .hero-rotate span:nth-child(2) {
  animation: slide-left 24s ease-in-out infinite;
  animation-delay: 4s;
  background: linear-gradient(135deg, var(--accent-2), #ffd699);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .hero-rotate span:nth-child(3) {
  animation: slide-right 24s ease-in-out infinite;
  animation-delay: 8s;
  background: linear-gradient(135deg, var(--accent-3), #99d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .hero-rotate span:nth-child(4) {
  animation: pop-up 24s ease-in-out infinite;
  animation-delay: 12s;
  background: linear-gradient(135deg, rgba(100, 228, 198, 0.95), rgba(255, 186, 99, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .hero-rotate span:nth-child(5) {
  animation: drop-down 24s ease-in-out infinite;
  animation-delay: 16s;
  background: linear-gradient(135deg, rgba(111, 180, 255, 0.95), rgba(100, 228, 198, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .hero-rotate span:nth-child(6) {
  animation: slide-left 24s ease-in-out infinite;
  animation-delay: 20s;
  background: linear-gradient(135deg, rgba(255, 186, 99, 0.95), rgba(111, 180, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes drop-down {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  5% {
    opacity: 1;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  20% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes slide-left {
  0% {
    opacity: 0;
    transform: translateX(32px);
  }
  5% {
    opacity: 1;
    transform: translateX(0);
  }
  15% {
    opacity: 1;
    transform: translateX(0);
  }
  20% {
    opacity: 0;
    transform: translateX(-32px);
  }
  100% {
    opacity: 0;
    transform: translateX(-32px);
  }
}

@keyframes slide-right {
  0% {
    opacity: 0;
    transform: translateX(-32px);
  }
  5% {
    opacity: 1;
    transform: translateX(0);
  }
  15% {
    opacity: 1;
    transform: translateX(0);
  }
  20% {
    opacity: 0;
    transform: translateX(32px);
  }
  100% {
    opacity: 0;
    transform: translateX(32px);
  }
}

@keyframes pop-up {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.8);
  }
  5% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  20% {
    opacity: 0;
    transform: translateY(-24px) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.8);
  }
}

.hero p,
.section-heading p,
.workflow-card p,
.cta-card p,
.browser-topbar p,
.preview-placeholder,
.sidebar-section p,
.tool-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  max-width: 62ch;
  font-size: 1.06rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  color: #041017;
  background: linear-gradient(135deg, var(--accent), #c4fff2);
  box-shadow: 0 12px 32px rgba(124, 240, 212, 0.18);
}

:root[data-theme='light'] .primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.26);
}

:root[data-theme='light'] .primary:hover {
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.32);
}

.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges li,
.tool-chip,
.meta-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
}

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

.value-item {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(100, 228, 198, 0.08), rgba(111, 180, 255, 0.06));
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
}

.value-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.value-item h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.suggest-section {
  display: grid;
  gap: 16px;
}

.suggest-shell {
  padding: 24px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.suggest-copy h2 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.suggest-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.suggest-meta {
  margin-top: 12px;
  color: var(--soft);
  font-size: 0.9rem;
}

.suggest-form {
  display: grid;
  gap: 12px;
}

.suggest-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.suggest-form input,
.suggest-form select,
.suggest-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  resize: vertical;
}

.select-control {
  position: relative;
}

.select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 50px 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--select-trigger-bg);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.select-trigger::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--select-chevron-pill-bg);
  border: 1px solid var(--select-chevron-pill-border);
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25);
}

.select-trigger::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-35%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--select-chevron-color);
  transition: transform 0.2s ease;
}

.modern-select.is-open .select-trigger::after {
  transform: translateY(-65%) rotate(180deg);
}

.modern-select.is-open .select-trigger {
  border-color: var(--select-trigger-border);
  box-shadow: 0 0 0 3px var(--select-trigger-ring);
}

.select-trigger:hover {
  border-color: var(--select-trigger-border);
  background: var(--select-trigger-bg-hover);
}

.select-trigger:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.select-panel {
  position: absolute;
  z-index: 35;
  left: 0;
  right: 0;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--select-panel-border);
  background: var(--select-panel-bg);
  box-shadow: 0 20px 36px rgba(2, 8, 23, 0.42);
  backdrop-filter: blur(10px);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
}

.select-option {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--select-option-color);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.select-option:hover,
.select-option.active {
  background: var(--select-option-bg-active);
  border-color: var(--select-option-border-active);
}

.select-option:hover {
  transform: translateX(2px);
}

.select-option.active {
  color: #f8fbff;
}

.suggest-form textarea {
  min-height: 88px;
}

.suggest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggest-status {
  min-height: 1.4rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.suggest-recent {
  padding: 20px;
  border-radius: 24px;
}

.suggest-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.suggest-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.suggest-item strong {
  color: var(--text);
}

.suggest-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.suggest-empty {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 12px;
  color: var(--soft);
}

.hero-panel {
  padding: 26px;
  border-radius: 30px;
  display: grid;
  gap: 18px;
}

.accent-panel {
  padding: 24px;
  border-radius: 24px;
}

.accent-panel strong,
.cta-card h2,
.browser-topbar h3,
.workflow-card strong {
  display: block;
  font-size: 1.22rem;
  margin: 6px 0 10px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-stats-wide {
  display: block;
}

.hero-stats article {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.hero-stats-wide article {
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(111, 180, 255, 0.16), rgba(124, 240, 212, 0.1));
  border: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 4px;
  color: var(--text);
}

.hero-stats span,
.workflow-card p,
.sidebar-section p,
.preview-placeholder {
  font-size: 0.94rem;
}

.hero-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-card,
.category-card,
.tool-card,
.workflow-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.preview-card {
  padding: 16px;
}

.preview-card strong,
.category-card h3,
.tool-card h4 {
  display: block;
  margin: 14px 0 8px;
  font-size: 1.02rem;
}

.preview-card p,
.category-card p,
.tool-card p {
  margin: 0;
  font-size: 0.92rem;
}

.preview-card .count {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 240, 212, 0.11);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.section {
  padding: 48px 0 0;
}

.section-tight {
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p {
  max-width: 56ch;
  margin: 0;
}

.support-card,
.tool-support-card {
  padding: 30px;
  border-radius: 28px;
  display: grid;
  gap: 22px;
}

.support-card {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.tool-support-card {
  margin-bottom: 20px;
}

.support-highlight {
  color: var(--accent-2);
}

.support-copy h2 {
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.support-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.support-list {
  margin: 14px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.55;
}

.support-actions {
  display: grid;
  gap: 14px;
}

.donation-goal {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(111, 180, 255, 0.13), rgba(100, 228, 198, 0.09));
}

.donation-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--donation-track);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.donation-fill {
  display: block;
  height: 100%;
  width: 0;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--donation-fill-start), var(--donation-fill-mid), var(--donation-fill-end));
  box-shadow: 0 8px 18px rgba(79, 217, 184, 0.24);
  transition: width 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.donation-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.24) 0 9px, rgba(255, 255, 255, 0.05) 9px 18px);
  mix-blend-mode: screen;
  animation: donation-stripes 2.4s linear infinite;
}

.donation-goal-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.donation-raised-amount {
  color: var(--text);
}

.support-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-button-row .button {
  min-width: 210px;
}

.support-note {
  margin: 0;
  color: var(--soft);
  font-size: 0.86rem;
}

@keyframes donation-stripes {
  from {
    transform: translateX(-24px);
  }
  to {
    transform: translateX(24px);
  }
}

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

.category-card {
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 240, 212, 0.22);
}

.category-card.active {
  background: linear-gradient(180deg, rgba(124, 240, 212, 0.08), rgba(18, 24, 46, 0.94));
  border-color: rgba(124, 240, 212, 0.3);
}

.category-head,
.tool-card-head,
.browser-topbar,
.tool-toolbar,
.load-more-row,
.cta-card,
.workflow-grid {
  display: flex;
  gap: 16px;
}

.category-head {
  align-items: flex-start;
  justify-content: space-between;
}

.category-icon,
.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(124, 240, 212, 0.05);
  border: 1px solid var(--border);
  font-size: 1.1rem;
}

:root[data-theme='light'] .category-icon,
:root[data-theme='light'] .tool-icon {
  background: rgba(15, 23, 42, 0.04);
}

.category-meta,
.tool-meta,
.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-file {
  color: var(--soft);
  font-size: 0.84rem;
  margin-top: 12px;
}

.browser-shell {
  display: grid;
  grid-template-columns: 0.28fr 0.44fr 0.28fr;
  gap: 16px;
  align-items: start;
}

.browser-sidebar,
.browser-main,
.browser-preview {
  padding: 20px;
  border-radius: 28px;
}

.sidebar-section {
  margin-bottom: 18px;
}

.category-list {
  display: grid;
  gap: 10px;
}

.category-list button,
.tool-chip {
  cursor: pointer;
}

.category-list button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(124, 240, 212, 0.04);
  color: var(--text);
  transition: 0.2s ease;
}

:root[data-theme='light'] .category-list button {
  background: rgba(15, 23, 42, 0.04);
}

.category-list button:hover,
.category-list button.active {
  border-color: rgba(124, 240, 212, 0.28);
  background: rgba(124, 240, 212, 0.08);
}

.category-list button span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 4px;
}

.browser-main {
  min-height: 680px;
}

.browser-topbar {
  justify-content: space-between;
  align-items: end;
  margin-bottom: 16px;
}

.browser-topbar h3 {
  margin: 8px 0 6px;
  font-size: 1.5rem;
}

.search-box {
  min-width: min(100%, 320px);
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(124, 240, 212, 0.04);
  outline: none;
}

:root[data-theme='light'] .search-box input {
  background: rgba(15, 23, 42, 0.04);
}

.search-box input:focus {
  border-color: rgba(124, 240, 212, 0.3);
  box-shadow: 0 0 0 3px rgba(124, 240, 212, 0.1);
}

.tool-toolbar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-chip.active {
  background: rgba(124, 240, 212, 0.11);
  border-color: rgba(124, 240, 212, 0.3);
  color: var(--text);
}

.load-status {
  color: var(--soft);
  font-size: 0.88rem;
}

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

.tool-card {
  padding: 18px;
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 167, 255, 0.22);
}

.tool-card-head {
  align-items: center;
  justify-content: space-between;
}

.tool-card h4 {
  margin: 0;
}

.tool-card .tool-type {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.mini-button {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(124, 240, 212, 0.04);
  color: var(--text);
  cursor: pointer;
}

:root[data-theme='light'] .mini-button {
  background: linear-gradient(180deg, var(--light-inner-surface), var(--light-inner-surface-2));
  border-color: var(--light-inner-border);
}

:root[data-theme='light'] .mini-button:hover {
  background: linear-gradient(180deg, rgba(219, 234, 255, 0.96), rgba(205, 225, 255, 0.9));
  border-color: rgba(37, 99, 235, 0.32);
}

.load-more-row {
  justify-content: center;
  margin-top: 16px;
}

.browser-preview {
  display: grid;
  gap: 14px;
}

.preview-placeholder {
  padding: 18px;
  border-radius: 18px;
  background: rgba(124, 240, 212, 0.04);
  border: 1px dashed var(--border);
}

:root[data-theme='light'] .preview-placeholder {
  background: rgba(15, 118, 110, 0.04);
  border-color: rgba(15, 118, 110, 0.15);
}

.preview-content {
  display: grid;
  gap: 14px;
}

.preview-content h3 {
  margin: 0;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.preview-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-sample,
.preview-config {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(124, 240, 212, 0.04);
}

:root[data-theme='light'] .preview-sample,
:root[data-theme='light'] .preview-config {
  background: rgba(15, 118, 110, 0.04);
  border-color: rgba(15, 118, 110, 0.15);
}

.preview-config {
  margin: 0;
  color: var(--text);
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.02);
}

:root[data-theme='light'] .preview-config {
  background: rgba(15, 118, 110, 0.03);
}

.workflow-grid {
  align-items: stretch;
}

.workflow-card {
  flex: 1;
  padding: 22px;
}

.cta-card {
  padding: 28px;
  border-radius: 30px;
  align-items: center;
  justify-content: space-between;
}

.bottom-showcase {
  padding-top: 36px;
}

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

.bottom-feature-card {
  border-radius: 26px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.bottom-feature-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.26rem;
  letter-spacing: -0.02em;
}

.bottom-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.bottom-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bottom-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bottom-link-grid .mini-button {
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  justify-content: center;
}

.bottom-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.68;
}

.bottom-ribbon {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(100, 228, 198, 0.1), rgba(111, 180, 255, 0.08));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.bottom-ribbon-track {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 11px 14px;
}

.bottom-ribbon-track span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 40px;
  color: var(--soft);
  display: grid;
  gap: 6px;
  text-align: center;
}

.footer-trust-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.footer-company-grid {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-col h3 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col a,
.footer-legal-line a {
  color: var(--accent-3);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-col a:hover,
.footer-legal-line a:hover {
  color: var(--accent);
}

.footer-legal-line {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.82rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-panel,
  .value-item,
  .browser-shell > * {
    opacity: 0;
    transform: translateY(20px);
  }

  body.motion-ready .hero-copy,
  body.motion-ready .hero-panel,
  body.motion-ready .value-item,
  body.motion-ready .browser-shell > * {
    animation: rise-in 0.65s ease both;
  }

  body.motion-ready .hero-panel {
    animation-delay: 0.08s;
  }

  body.motion-ready .value-item:nth-child(1) {
    animation-delay: 0.06s;
  }

  body.motion-ready .value-item:nth-child(2) {
    animation-delay: 0.14s;
  }

  body.motion-ready .value-item:nth-child(3) {
    animation-delay: 0.22s;
  }

  body.motion-ready .browser-shell > :nth-child(1) {
    animation-delay: 0.18s;
  }

  body.motion-ready .browser-shell > :nth-child(2) {
    animation-delay: 0.25s;
  }

  body.motion-ready .browser-shell > :nth-child(3) {
    animation-delay: 0.32s;
  }

  body.motion-ready .hero-stats article,
  body.motion-ready .hero-stats-wide article {
    animation: pulse-in 2.8s ease-in-out infinite;
  }

  body.motion-ready .hero-stats article:nth-child(2) {
    animation-delay: 0.15s;
  }

  body.motion-ready .hero-stats article:nth-child(3) {
    animation-delay: 0.3s;
  }

  body.motion-ready .hero-preview-grid .preview-card {
    animation: hover-float 5s ease-in-out infinite;
  }

  body.motion-ready .hero-preview-grid .preview-card:nth-child(2n) {
    animation-delay: 0.5s;
  }

  body.motion-ready .bottom-ribbon-track {
    animation: ribbon-run 20s linear infinite;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-in {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: var(--shadow-soft);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  }
}

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

@keyframes ribbon-run {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 32px, 0) scale(0.985);
    transition:
      opacity 0.72s cubic-bezier(0.2, 0.7, 0.18, 1),
      transform 0.72s cubic-bezier(0.2, 0.7, 0.18, 1),
      filter 0.72s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity, filter;
  }

  .scroll-reveal[data-reveal='left'] {
    transform: translate3d(-34px, 20px, 0) scale(0.985) rotate(-0.45deg);
  }

  .scroll-reveal[data-reveal='right'] {
    transform: translate3d(34px, 20px, 0) scale(0.985) rotate(0.45deg);
  }

  .scroll-reveal[data-reveal='up'] {
    transform: translate3d(0, 34px, 0) scale(0.985);
  }

  .scroll-reveal.in-view {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  .category-card.scroll-reveal,
  .tool-card.scroll-reveal,
  .workflow-card.scroll-reveal,
  .value-item.scroll-reveal,
  .suggest-shell.scroll-reveal,
  .suggest-recent.scroll-reveal,
  .bottom-feature-card.scroll-reveal,
  .bottom-ribbon.scroll-reveal,
  .cta-card.scroll-reveal,
  .browser-sidebar.scroll-reveal,
  .browser-main.scroll-reveal,
  .browser-preview.scroll-reveal {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  .category-card.scroll-reveal::after,
  .tool-card.scroll-reveal::after,
  .workflow-card.scroll-reveal::after,
  .value-item.scroll-reveal::after,
  .suggest-shell.scroll-reveal::after,
  .suggest-recent.scroll-reveal::after,
  .bottom-feature-card.scroll-reveal::after,
  .bottom-ribbon.scroll-reveal::after,
  .cta-card.scroll-reveal::after,
  .browser-sidebar.scroll-reveal::after,
  .browser-main.scroll-reveal::after,
  .browser-preview.scroll-reveal::after {
    content: '';
    position: absolute;
    inset: -40% auto auto -55%;
    width: 44%;
    height: 190%;
    pointer-events: none;
    background: linear-gradient(
      110deg,
      transparent 0%,
      rgba(255, 255, 255, 0.01) 32%,
      rgba(255, 255, 255, 0.22) 50%,
      rgba(255, 255, 255, 0.01) 68%,
      transparent 100%
    );
    transform: translateX(-160%) rotate(8deg);
    opacity: 0;
  }

  .scroll-reveal.in-view::after {
    opacity: 0.5;
    animation: sheen-pass 1.1s ease-out 0.08s 1 both;
  }
}

@keyframes sheen-pass {
  from {
    transform: translateX(-160%) rotate(8deg);
  }
  to {
    transform: translateX(290%) rotate(8deg);
  }
}

.hidden {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: rgba(124, 240, 212, 0.02);
}

:root[data-theme='light'] .empty-state {
  background: rgba(15, 118, 110, 0.03);
  border-color: rgba(15, 118, 110, 0.15);
}

:root[data-theme='light'] .header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(248, 250, 252, 0.8);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
  backdrop-filter: blur(16px);
}

:root[data-theme='light'] .hero-copy,
:root[data-theme='light'] .hero-panel,
:root[data-theme='light'] .glass-card,
:root[data-theme='light'] .cta-card,
:root[data-theme='light'] .preview-card,
:root[data-theme='light'] .category-card,
:root[data-theme='light'] .tool-card,
:root[data-theme='light'] .workflow-card,
:root[data-theme='light'] .browser-sidebar,
:root[data-theme='light'] .browser-main,
:root[data-theme='light'] .browser-preview,
:root[data-theme='light'] .dropdown-menu {
  background: var(--select-panel-bg);
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.12);
  border-color: var(--select-panel-border);
  backdrop-filter: blur(12px);
}

:root[data-theme='light'] .theme-toggle,
:root[data-theme='light'] .menu-toggle,
:root[data-theme='light'] .dropdown-toggle {
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(230, 240, 255, 0.9));
  border-color: var(--light-inner-border);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

:root[data-theme='light'] .hero-badges li,
:root[data-theme='light'] .tool-chip,
:root[data-theme='light'] .meta-chip,
:root[data-theme='light'] .category-list button,
:root[data-theme='light'] .search-box input,
:root[data-theme='light'] .mini-button {
  background: linear-gradient(180deg, var(--light-inner-surface), var(--light-inner-surface-2));
  border-color: var(--light-inner-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(37, 99, 235, 0.08),
    0 6px 16px rgba(37, 99, 235, 0.16);
}

:root[data-theme='light'] .dropdown-item {
  color: var(--select-option-color);
}

:root[data-theme='light'] .dropdown-item:hover {
  background: var(--select-option-bg-active);
  color: var(--select-option-color);
}

:root[data-theme='light'] .mega-menu-content h4 {
  color: var(--accent);
  border-bottom-color: var(--select-panel-border);
}

:root[data-theme='light'] .category-card:hover,
:root[data-theme='light'] .tool-card:hover,
:root[data-theme='light'] .category-list button:hover,
:root[data-theme='light'] .category-list button.active,
:root[data-theme='light'] .tool-chip.active {
  background: linear-gradient(135deg, rgba(216, 233, 255, 0.98), rgba(198, 220, 252, 0.94));
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

:root[data-theme='light'] .suggest-form input,
:root[data-theme='light'] .suggest-form select,
:root[data-theme='light'] .suggest-form textarea,
:root[data-theme='light'] .suggest-item {
  background: linear-gradient(180deg, var(--light-inner-surface), var(--light-inner-surface-2));
  border-color: var(--light-inner-border);
}

:root[data-theme='light'] .select-trigger {
  background: linear-gradient(180deg, rgba(229, 240, 255, 0.94), rgba(214, 231, 255, 0.88));
  border-color: rgba(37, 99, 235, 0.34);
}

:root[data-theme='light'] .select-trigger::before {
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.96), rgba(147, 197, 253, 0.88));
  border-color: rgba(37, 99, 235, 0.32);
}

:root[data-theme='light'] .select-trigger::after {
  border-top-color: #1e3a8a;
}

:root[data-theme='light'] .select-panel {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.99), rgba(224, 236, 255, 0.98));
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

:root[data-theme='light'] .select-option {
  color: #1e3a8a;
}

:root[data-theme='light'] .select-option:hover,
:root[data-theme='light'] .select-option.active {
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.62), rgba(147, 197, 253, 0.56));
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

:root[data-theme='light'] .select-option.active {
  color: #0f172a;
}

:root[data-theme='light'] .suggest-form .select-field::before {
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.92), rgba(147, 197, 253, 0.86));
  border-color: rgba(37, 99, 235, 0.3);
}

:root[data-theme='light'] .suggest-form .select-field::after {
  border-top-color: #1e3a8a;
}

:root[data-theme='light'] .suggest-form select option {
  color: #0f172a;
  background: #dbeafe;
}

:root[data-theme='light'] .footer-pill {
  background: linear-gradient(180deg, var(--light-inner-surface), var(--light-inner-surface-2));
  border-color: var(--light-inner-border);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

:root[data-theme='light'] .footer-company-grid {
  background: linear-gradient(180deg, rgba(242, 248, 255, 0.96), rgba(232, 243, 255, 0.92));
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

:root[data-theme='light'] .hero-stats article,
:root[data-theme='light'] .hero-stats-wide article,
:root[data-theme='light'] .tool-io-box,
:root[data-theme='light'] .preview-sample,
:root[data-theme='light'] .preview-config,
:root[data-theme='light'] .preview-placeholder {
  background: linear-gradient(160deg, rgba(212, 230, 255, 0.96), rgba(194, 218, 252, 0.9));
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(37, 99, 235, 0.16);
}

/* Strong contrast for the 4 featured hero boxes */
:root[data-theme='light'] .hero-preview-grid .preview-card {
  background: linear-gradient(165deg, rgba(208, 228, 255, 0.98), rgba(188, 214, 252, 0.92));
  border-color: rgba(30, 64, 175, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 24px rgba(30, 64, 175, 0.18);
}

:root[data-theme='light'] .hero-preview-grid .preview-card .category-icon {
  background: linear-gradient(160deg, rgba(188, 214, 252, 0.96), rgba(168, 197, 246, 0.92));
  border-color: rgba(30, 64, 175, 0.4);
}

:root[data-theme='light'] .hero-preview-grid .preview-card .count {
  background: linear-gradient(180deg, rgba(181, 207, 250, 0.96), rgba(161, 191, 245, 0.92));
  border: 1px solid rgba(30, 64, 175, 0.38);
  color: #12317f;
}

/* Apply the same standout layering to tool cards */
:root[data-theme='light'] .tool-grid .tool-card {
  background: linear-gradient(165deg, rgba(215, 233, 255, 0.98), rgba(194, 219, 252, 0.92));
  border-color: rgba(30, 64, 175, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(30, 64, 175, 0.16);
}

:root[data-theme='light'] .tool-grid .tool-card:hover {
  border-color: rgba(30, 64, 175, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(30, 64, 175, 0.2);
}

:root[data-theme='light'] .tool-grid .tool-card .tool-icon,
:root[data-theme='light'] .tool-grid .tool-card .meta-chip {
  background: linear-gradient(180deg, rgba(188, 214, 252, 0.96), rgba(170, 200, 247, 0.9));
  border-color: rgba(30, 64, 175, 0.38);
}

:root[data-theme='light'] .hero-badges li,
:root[data-theme='light'] .tool-chip,
:root[data-theme='light'] .meta-chip,
:root[data-theme='light'] .category-list button,
:root[data-theme='light'] .search-box input,
:root[data-theme='light'] .mini-button,
:root[data-theme='light'] .dropdown-item,
:root[data-theme='light'] .bottom-ribbon-track span,
:root[data-theme='light'] .suggest-empty,
:root[data-theme='light'] .empty-state {
  background: linear-gradient(180deg, rgba(214, 231, 255, 0.96), rgba(198, 220, 252, 0.92));
  border-color: rgba(37, 99, 235, 0.34);
}

@media (max-width: 1180px) {
  .hero,
  .value-strip,
  .suggest-shell,
  .browser-shell,
  .workflow-grid,
  .cta-card,
  .support-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .browser-shell {
    gap: 18px;
  }

  .tool-grid,
  .category-grid,
  .hero-preview-grid,
  .bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dropdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header .container,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy,
  .hero-panel,
  .browser-sidebar,
  .browser-main,
  .browser-preview,
  .cta-card,
  .workflow-card {
    border-radius: 22px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.6rem, 11vw, 4.4rem);
  }

  .value-strip {
    margin-top: 0;
  }

  .section-heading,
  .browser-topbar,
  .tool-toolbar,
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: flex;
  }

  .header-left {
    flex-wrap: wrap;
    gap: .65rem;
    overflow: visible;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem;
    gap: .25rem;
    z-index: 999;
    overflow: visible;
    padding-bottom: 1rem;
  }

  .nav-search {
    order: 4;
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .nav.mobile-open {
    display: flex;
  }

  .nav.mobile-open .nav-dropdown {
    width: 100%;
  }

  .nav.mobile-open .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: .75rem;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .mega-menu {
    min-width: 100%;
    max-width: 100%;
  }

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

  .hero-stats,
  .category-grid,
  .tool-grid,
  .hero-preview-grid,
  .bottom-grid,
  .bottom-link-grid {
    grid-template-columns: 1fr;
  }

  .support-card,
  .tool-support-card {
    padding: 22px;
    border-radius: 22px;
  }

  .support-button-row .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .footer-company-grid,
  .footer-legal-line {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .hero-copy {
    padding: 26px;
  }
}

.tool-io-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.tool-io-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124, 240, 212, 0.06), rgba(147, 167, 255, 0.04));
}

.io-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.io-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* Tool Modal Styles */
.tool-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.tool-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.tool-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.tool-modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 90vw;
  max-height: 90vh;
  width: 1000px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tool-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tool-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text);
  font-family: var(--font-display);
}

.tool-modal-close {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tool-modal-close:hover {
  background: rgba(124, 240, 212, 0.1);
  color: var(--accent);
}

:root[data-theme='light'] .tool-modal-close:hover {
  background: rgba(15, 118, 110, 0.1);
}

:root[data-theme='light'] .tool-modal-overlay {
  background: rgba(15, 23, 42, 0.4);
}

.tool-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-3);
  font-weight: 500;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-link:hover {
  gap: 12px;
  color: var(--accent);
}

.tool-container {
  display: grid;
  gap: 20px;
}

@media (max-width: 1200px) {
  .tool-modal-content {
    width: 95vw;
    max-width: 95vw;
  }
}

@media (max-width: 760px) {
  .tool-modal-content {
    max-height: 95vh;
    border-radius: 16px;
  }

  .tool-modal-header {
    padding: 16px;
  }

  .tool-modal-header h2 {
    font-size: 1.4rem;
  }

  .tool-modal-body {
    padding: 16px;
  }
}

