:root {
  --bg: #f2f7ff;
  --text: #0b1a33;
  --muted: #5d6f8f;
  --cyan: #06b6d4;
  --violet: #6d5ce7;
  --pink: #db2777;
  --green: #059669;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(21, 58, 112, 0.12);
  --radius: 22px;
  --shadow: 0 24px 64px rgba(26, 60, 130, 0.16);
  --particle-a: 2, 132, 199;
  --particle-b: 37, 99, 235;
  --particle-link: 37, 99, 235;
  --particle-mouse: 6, 182, 212;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px circle at 12% -8%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(820px circle at 92% 0%, rgba(99, 102, 241, 0.13), transparent 62%),
    radial-gradient(700px circle at 50% 108%, rgba(20, 184, 166, 0.08), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eaf2ff;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #eaf2ff;
  border-radius: 999px;
  background: linear-gradient(#7dd3fc, #3b82f6);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(37, 99, 235, 0.2);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

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

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora .blob-a {
  top: -180px;
  left: 50%;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42), transparent 65%);
  animation: drift-a 20s ease-in-out infinite alternate;
}

.aurora .blob-b {
  top: 16vh;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 65%);
  animation: drift-b 24s ease-in-out infinite alternate;
}

.aurora .blob-c {
  bottom: -220px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.24), transparent 65%);
  animation: drift-c 28s ease-in-out infinite alternate;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 22%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 22%, #000 0%, transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(250, 252, 255, 0.82);
  border-bottom-color: rgba(21, 58, 112, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.14));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
  color: #0369a1;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-text {
  font-size: 1.08rem;
  background: linear-gradient(100deg, #0b1a33, #2456b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.theme-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.theme-option svg {
  width: 16px;
  height: 16px;
}

.theme-option:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
}

.theme-option[aria-pressed="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.theme-option:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

main {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.hero {
  position: relative;
  padding: clamp(52px, 9vw, 116px) 0 clamp(48px, 8vw, 92px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -2%;
  left: 50%;
  width: min(720px, 94vw);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border: 1px dashed rgba(37, 99, 235, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), rgba(56, 189, 248, 0.04) 42%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 14%;
  left: 50%;
  width: min(430px, 72vw);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #2b4a80;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.65);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(5, 150, 105, 0.4);
  animation: pulse 2s ease-out infinite;
}

.hero h1 {
  max-width: 920px;
  margin: 26px auto 0;
  font-size: clamp(2.5rem, 7.4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .grad {
  display: inline-block;
  background: linear-gradient(110deg, #0ea5e9 0%, #2563eb 44%, #7c3aed 78%, #0ea5e9 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue 9s ease-in-out infinite;
}

.hero-sub {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.1vw, 1.12rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, #06b6d4, #2563eb 62%, #4f46e5);
  box-shadow: 0 14px 44px rgba(37, 99, 235, 0.22), 0 10px 44px rgba(79, 70, 229, 0.18);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -30%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(18deg) translateX(-180%);
  transition: transform 0.7s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 54px rgba(37, 99, 235, 0.28), 0 14px 54px rgba(79, 70, 229, 0.22);
}

.btn-primary:hover::after {
  transform: rotate(18deg) translateX(520%);
}

.btn-primary:hover svg,
.btn-ghost:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.06);
}

.hero-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 34px;
  color: #667897;
  font-size: 0.82rem;
}

.hero-hints span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-hints svg {
  width: 14px;
  height: 14px;
  color: #2563eb;
}

.section {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-desc {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  box-shadow: 0 12px 34px rgba(30, 64, 140, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 99, 235, 0.13), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tool-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.45), rgba(6, 182, 212, 0.45), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow);
}

.tool-card.featured {
  border-color: rgba(37, 99, 235, 0.24);
  background:
    linear-gradient(160deg, rgba(14, 165, 233, 0.11), rgba(37, 99, 235, 0.06) 48%, rgba(255, 255, 255, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 22px 70px rgba(37, 99, 235, 0.09);
}

.tool-card.featured:hover {
  border-color: rgba(37, 99, 235, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 90px rgba(37, 99, 235, 0.14);
}

.tool-card.live-card {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.09), rgba(255, 255, 255, 0.72));
}

.tool-card.live-card:hover {
  border-color: rgba(37, 99, 235, 0.38);
}

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.11));
  color: #0369a1;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.1);
}

.tool-icon svg {
  width: 26px;
  height: 26px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(21, 58, 112, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tag.live {
  color: #047857;
  border-color: rgba(5, 150, 105, 0.28);
  background: rgba(5, 150, 105, 0.08);
}

.tag.live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.55);
}

.tag.soon {
  color: #4338ca;
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.07);
}

.tool-card h3 {
  margin: 22px 0 10px;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips span {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(21, 58, 112, 0.1);
  background: rgba(255, 255, 255, 0.5);
  color: #52648a;
  font-size: 0.7rem;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: #0369a1;
  font-size: 0.9rem;
  font-weight: 600;
}

.card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.tool-card:hover .card-cta svg {
  transform: translate(3px, -3px);
}

.tool-card.placeholder {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.34));
  border-color: rgba(21, 58, 112, 0.08);
}

.tool-card.placeholder .tool-icon {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(21, 58, 112, 0.1);
  color: #8593ad;
  box-shadow: none;
}

.tool-card.placeholder h3 {
  color: #45536f;
}

.tool-card.placeholder p {
  color: #6b7a97;
}

.tool-card.suggest {
  border-style: dashed;
  border-color: rgba(109, 92, 231, 0.3);
  background: linear-gradient(160deg, rgba(109, 92, 231, 0.05), rgba(255, 255, 255, 0.5));
}

.tool-card.suggest .tool-icon {
  color: #6d5ce7;
  background: rgba(109, 92, 231, 0.08);
  border-color: rgba(109, 92, 231, 0.22);
}

.tool-card.suggest .card-cta {
  color: #6d5ce7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.about-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 30px rgba(30, 64, 140, 0.04);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.26);
}

.about-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.6);
  color: #2563eb;
}

.about-icon svg {
  width: 20px;
  height: 20px;
}

.about-card h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}

.cta-panel {
  position: relative;
  margin: clamp(36px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
  padding: clamp(34px, 6vw, 58px) clamp(24px, 5vw, 48px);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(620px circle at 50% 0%, rgba(37, 99, 235, 0.14), transparent 64%),
    linear-gradient(160deg, rgba(14, 165, 233, 0.06), rgba(255, 255, 255, 0.6));
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 78%);
  pointer-events: none;
}

.cta-panel h2 {
  position: relative;
  margin: 0;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  letter-spacing: -0.02em;
}

.cta-panel p {
  position: relative;
  max-width: 480px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.cta-panel .btn {
  position: relative;
  margin-top: 26px;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 40px) 46px;
  border-top: 1px solid rgba(21, 58, 112, 0.1);
  color: #6b7a97;
  font-size: 0.78rem;
  line-height: 1.8;
}

.site-footer p {
  margin: 0;
}

.site-footer .accent {
  color: #2456b8;
}

.js .reveal {
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(26px);
}

@media (min-width: 640px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card.featured {
    grid-column: span 2;
  }

  .tool-card.suggest {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 22px;
    row-gap: 4px;
    min-height: 0;
    padding: 22px 26px;
  }

  .tool-card.suggest .tool-top {
    display: contents;
  }

  .tool-card.suggest .tool-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
  }

  .tool-card.suggest .tag {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .tool-card.suggest h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .tool-card.suggest p {
    grid-column: 2;
    grid-row: 2;
  }

  .tool-card.suggest .card-cta {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin: 0;
    padding: 0;
  }

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

@media (min-width: 960px) {
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 639px) {
  .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .header-actions {
    gap: 12px;
  }

  .theme-switch {
    padding: 2px;
  }

  .theme-option {
    width: 28px;
    height: 26px;
    padding: 0;
  }

  .theme-option-label {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-hints {
    gap: 8px 16px;
  }

  .tool-card {
    min-height: 230px;
    padding: 22px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

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

  .js .reveal {
    opacity: 1;
  }
}

@keyframes drift-a {
  from {
    transform: translate3d(-6%, -4%, 0) scale(1);
  }
  to {
    transform: translate3d(8%, 10%, 0) scale(1.16);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(4%, 6%, 0) scale(1.08);
  }
  to {
    transform: translate3d(-10%, -8%, 0) scale(0.94);
  }
}

@keyframes drift-c {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(12%, -10%, 0) scale(1.2);
  }
}

@keyframes hue {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #05060e;
  --text: #eef1ff;
  --muted: #9aa3c0;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --green: #34d399;
  --card: rgba(15, 18, 35, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --particle-a: 34, 211, 238;
  --particle-b: 139, 92, 246;
  --particle-link: 125, 150, 255;
  --particle-mouse: 34, 211, 238;
}

html[data-theme="night"] body {
  background-image: none;
}

html[data-theme="night"] ::selection {
  background: rgba(139, 92, 246, 0.42);
  color: #ffffff;
}

html[data-theme="night"] #bg {
  opacity: 0.8;
}

html[data-theme="night"] ::-webkit-scrollbar-track {
  background: #080a16;
}

html[data-theme="night"] ::-webkit-scrollbar-thumb {
  border-color: #080a16;
  background: linear-gradient(#22d3ee, #8b5cf6);
}

html[data-theme="night"] .aurora .blob-a {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 65%);
}

html[data-theme="night"] .aurora .blob-b {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%);
}

html[data-theme="night"] .aurora .blob-c {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.32), transparent 65%);
}

html[data-theme="night"] .grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

html[data-theme="night"] .site-header.scrolled {
  background: rgba(5, 6, 14, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="night"] .brand-mark {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.28));
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.22);
  color: #a5f3fc;
}

html[data-theme="night"] .brand-text {
  background: linear-gradient(100deg, #e6e9ff, #b6c2ff);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="night"] .theme-switch {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="night"] .theme-option {
  color: #9aa3c0;
}

html[data-theme="night"] .theme-option:hover {
  color: #eef1ff;
  background: rgba(139, 92, 246, 0.14);
}

html[data-theme="night"] .theme-option[aria-pressed="true"] {
  color: #03121a;
  background: linear-gradient(135deg, #67e8f9, #a78bfa);
  box-shadow: 0 4px 14px rgba(103, 232, 249, 0.25);
}

html[data-theme="night"] .badge {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.09);
  color: #ddd2ff;
}

html[data-theme="night"] .pulse-dot {
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
}

html[data-theme="night"] .pulse-dot::after {
  border-color: rgba(52, 211, 153, 0.55);
}

html[data-theme="night"] .hero::before {
  border-color: rgba(139, 92, 246, 0.18);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.06) 42%, transparent 68%);
}

html[data-theme="night"] .hero::after {
  border-color: rgba(34, 211, 238, 0.14);
}

html[data-theme="night"] .hero h1 .grad {
  background: linear-gradient(110deg, #67e8f9 0%, #a78bfa 44%, #f9a8d4 78%, #67e8f9 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="night"] .btn-primary {
  color: #03121a;
  background: linear-gradient(120deg, #67e8f9, #a78bfa 62%, #f0abfc);
  box-shadow: 0 14px 44px rgba(103, 232, 249, 0.22), 0 10px 44px rgba(139, 92, 246, 0.28);
}

html[data-theme="night"] .btn-primary:hover {
  box-shadow: 0 18px 54px rgba(103, 232, 249, 0.3), 0 14px 54px rgba(139, 92, 246, 0.36);
}

html[data-theme="night"] .btn-ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

html[data-theme="night"] .btn-ghost:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.1);
}

html[data-theme="night"] .hero-hints {
  color: #7f89a8;
}

html[data-theme="night"] .hero-hints svg {
  color: #7dd3fc;
}

html[data-theme="night"] .tool-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014));
  box-shadow: none;
}

html[data-theme="night"] .tool-card::before {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.2), transparent 68%);
}

html[data-theme="night"] .tool-card::after {
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.5), transparent);
  opacity: 0.7;
}

html[data-theme="night"] .tool-card:hover {
  border-color: rgba(139, 92, 246, 0.34);
  box-shadow: var(--shadow);
}

html[data-theme="night"] .tool-card.featured {
  border-color: rgba(103, 232, 249, 0.24);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.1) 48%, rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 70px rgba(34, 211, 238, 0.08);
}

html[data-theme="night"] .tool-card.featured:hover {
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 90px rgba(34, 211, 238, 0.14);
}

html[data-theme="night"] .tool-card.live-card {
  border-color: rgba(34, 211, 238, 0.2);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(255, 255, 255, 0.02));
}

html[data-theme="night"] .tool-card.live-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
}

html[data-theme="night"] .tool-icon {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.22));
  color: #a5f3fc;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.1);
}

html[data-theme="night"] .tag {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="night"] .tag.live {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.09);
}

html[data-theme="night"] .tag.live::before {
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
}

html[data-theme="night"] .tag.soon {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.1);
}

html[data-theme="night"] .chips span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #b9c2e0;
}

html[data-theme="night"] .card-cta {
  color: #a5f3fc;
}

html[data-theme="night"] .tool-card.placeholder {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="night"] .tool-card.placeholder .tool-icon {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  color: #8e98b8;
  box-shadow: none;
}

html[data-theme="night"] .tool-card.placeholder h3 {
  color: #c8cfe6;
}

html[data-theme="night"] .tool-card.placeholder p {
  color: #7f89a8;
}

html[data-theme="night"] .tool-card.suggest {
  border-color: rgba(139, 92, 246, 0.24);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.06), rgba(255, 255, 255, 0.01));
}

html[data-theme="night"] .tool-card.suggest .tool-icon {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.24);
}

html[data-theme="night"] .tool-card.suggest .card-cta {
  color: #c4b5fd;
}

html[data-theme="night"] .about-card {
  background: rgba(255, 255, 255, 0.022);
  box-shadow: none;
}

html[data-theme="night"] .about-card:hover {
  border-color: rgba(34, 211, 238, 0.24);
}

html[data-theme="night"] .about-icon {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #7dd3fc;
}

html[data-theme="night"] .cta-panel {
  border-color: rgba(139, 92, 246, 0.26);
  background:
    radial-gradient(620px circle at 50% 0%, rgba(139, 92, 246, 0.24), transparent 64%),
    linear-gradient(160deg, rgba(34, 211, 238, 0.07), rgba(255, 255, 255, 0.018));
}

html[data-theme="night"] .cta-panel::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html[data-theme="night"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
  color: #7882a4;
}

html[data-theme="night"] .site-footer .accent {
  color: #9aa8d8;
}
