:root {
  color-scheme: dark;
  --bg: #0a0f17;
  --bg-elevated: #101722;
  --surface: rgba(20, 29, 42, 0.72);
  --surface-solid: #141d2a;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.068);
  --text: #f4f7fb;
  --text-secondary: #a9b5c5;
  --text-muted: #738095;
  --border: rgba(255, 255, 255, 0.095);
  --border-strong: rgba(255, 255, 255, 0.15);
  --accent: #78aafc;
  --accent-strong: #9ac1ff;
  --accent-soft: rgba(89, 143, 235, 0.15);
  --teal: #63c8bc;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.16);
  --header-bg: rgba(10, 15, 23, 0.7);
  --hero-bottom: #0a0f17;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition: 240ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-elevated: #eaf0f7;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-solid: #ffffff;
  --surface-soft: rgba(35, 61, 91, 0.055);
  --surface-hover: rgba(35, 61, 91, 0.085);
  --text: #172131;
  --text-secondary: #526176;
  --text-muted: #7c899a;
  --border: rgba(30, 52, 78, 0.11);
  --border-strong: rgba(30, 52, 78, 0.18);
  --accent: #3e75d6;
  --accent-strong: #285eBD;
  --accent-soft: rgba(62, 117, 214, 0.12);
  --teal: #228d82;
  --shadow: 0 22px 60px rgba(41, 58, 78, 0.13);
  --shadow-soft: 0 10px 30px rgba(41, 58, 78, 0.09);
  --header-bg: rgba(244, 247, 251, 0.72);
  --hero-bottom: #f4f7fb;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 15px; border-radius: 10px; background: var(--surface-solid); transform: translateY(-150%); transition: transform var(--transition); }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 100;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--header-bg);
  box-shadow: 0 10px 36px rgba(0,0,0,.11);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-soft); border-color: var(--border-strong); }
.nav-shell { height: 64px; padding: 0 18px 0 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 760; letter-spacing: .13em; }
.brand-mark { position: relative; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 8px; background: linear-gradient(145deg, var(--surface-hover), transparent); box-shadow: inset 0 1px rgba(255,255,255,.09); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: .92; }
.brand-mark::before { transform: translate(-4px,-4px); }
.brand-mark::after { transform: translate(4px,4px); background: var(--teal); }
.brand-mark span { transform: translate(4px,-4px); opacity: .55; }
.desktop-nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.desktop-nav a { padding: 9px 13px; border-radius: 9px; color: var(--text-secondary); font-size: .875rem; font-weight: 570; transition: color var(--transition), background var(--transition); }
.desktop-nav a:hover { color: var(--text); background: var(--surface-soft); }
.theme-toggle { width: 54px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.theme-toggle-track { position: relative; width: 54px; height: 30px; display: block; border: 1px solid var(--border-strong); border-radius: 99px; background: var(--surface-soft); box-shadow: inset 0 2px 6px rgba(0,0,0,.08); }
.theme-icon { position: absolute; top: 7px; width: 14px; height: 14px; color: var(--text-muted); stroke-width: 1.6; }
.moon-icon { left: 7px; }
.sun-icon { right: 7px; }
.theme-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform var(--transition), background var(--transition); }
[data-theme="light"] .theme-toggle-thumb { transform: translateX(24px); }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 7px; min-height: 44px; padding: 0 11px 0 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); cursor: pointer; }
.menu-toggle svg { width: 18px; height: 18px; }
.mobile-menu { padding: 0 12px 12px; }
.mobile-menu a, .mobile-theme-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border: 0; border-radius: 10px; color: var(--text-secondary); background: transparent; text-align: left; cursor: pointer; }
.mobile-menu a:hover, .mobile-theme-button:hover { color: var(--text); background: var(--surface-soft); }
.mobile-theme-value { color: var(--text-muted); font-size: .82rem; }

.hero { position: relative; min-height: 790px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #0a1019; color: #f5f8fd; }
[data-theme="light"] .hero { background: #eaf1fa; color: #132035; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 50% 42%, rgba(55, 85, 125, .21), transparent 50%), linear-gradient(150deg, rgba(18,28,43,.45), transparent 58%); }
[data-theme="light"] .hero::before { background: radial-gradient(circle at 50% 42%, rgba(105, 151, 212, .18), transparent 52%), linear-gradient(150deg, rgba(230,240,251,.25), transparent 58%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .28; will-change: transform; }
.orb-blue { width: 460px; height: 460px; top: 8%; left: 12%; background: #4079c5; animation: drift-a 24s ease-in-out infinite alternate; }
.orb-teal { width: 380px; height: 380px; right: 8%; top: 30%; background: #318b86; opacity: .21; animation: drift-b 28s ease-in-out infinite alternate; }
.orb-violet { width: 240px; height: 240px; left: 52%; top: 15%; background: #625d93; opacity: .12; animation: drift-a 30s ease-in-out infinite alternate-reverse; }
.hero-content { position: relative; padding-top: 78px; text-align: center; }
.hero-kicker { width: fit-content; margin: 0 auto 34px; display: flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; color: #aab8ca; background: rgba(255,255,255,.04); backdrop-filter: blur(12px); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="light"] .hero-kicker { color: #5c6d83; border-color: rgba(39,63,93,.1); background: rgba(255,255,255,.38); }
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: #61bdb4; box-shadow: 0 0 0 4px rgba(97,189,180,.1); }
.hero-brand { margin: 0 0 18px; color: var(--accent-strong); font-size: .83rem; font-weight: 750; letter-spacing: .25em; }
.hero h1 { margin: 0; font-size: clamp(3.5rem, 7.6vw, 6.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 675; }
.hero h1 span { color: #aebdce; font-weight: 570; }
[data-theme="light"] .hero h1 span { color: #667890; }
.hero-copy { margin: 32px auto 34px; color: #9baabd; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.65; }
[data-theme="light"] .hero-copy { color: #63758c; }
.primary-button { min-height: 50px; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(245,248,253,.94); color: #172131; box-shadow: 0 12px 30px rgba(0,0,0,.22), inset 0 1px #fff; font-size: .92rem; font-weight: 680; transition: transform var(--transition), box-shadow var(--transition); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.27), inset 0 1px #fff; }
.primary-button svg { width: 18px; height: 18px; }
.hero-fade { position: absolute; inset: auto 0 0; height: 190px; background: linear-gradient(to bottom, transparent, var(--hero-bottom)); pointer-events: none; }
@keyframes drift-a { to { transform: translate(70px, 45px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-65px, -35px) scale(.94); } }

.tool-browser { padding-top: 104px; padding-bottom: 126px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .73rem; font-weight: 720; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2, .about-inner h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 650; }
.section-heading > p { max-width: 320px; margin: 0 0 4px; color: var(--text-secondary); line-height: 1.6; }
.search-panel { position: relative; z-index: 5; padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft), inset 0 1px rgba(255,255,255,.055); backdrop-filter: blur(18px); }
.search-box { height: 58px; display: flex; align-items: center; gap: 13px; padding: 0 14px 0 17px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.search-box:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface-solid); }
.search-box svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--text-muted); }
.search-box input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 1rem; }
.search-box input::placeholder { color: var(--text-muted); opacity: 1; }
.search-box kbd { min-width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted); background: var(--surface-soft); box-shadow: 0 1px 2px rgba(0,0,0,.1); font-family: inherit; font-size: .74rem; }
.category-bar { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.category-pill { min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-secondary); font-size: .83rem; font-weight: 590; cursor: pointer; transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition); }
.category-pill:hover { color: var(--text); background: var(--surface-hover); }
.category-pill:active { transform: scale(.98); }
.category-pill.active { color: var(--text); border-color: var(--border); background: var(--surface-solid); box-shadow: 0 3px 10px rgba(0,0,0,.1), inset 0 1px rgba(255,255,255,.04); }
.featured-section, .all-tools-section { padding-top: 76px; }
.subsection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.subsection-heading h3 { margin: 0; font-size: 1.22rem; letter-spacing: -.025em; }
.subsection-heading span { color: var(--text-muted); font-size: .82rem; }
.featured-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); grid-template-rows: repeat(2, minmax(190px, auto)); gap: 16px; }
.tool-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 1px rgba(255,255,255,.045); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.tool-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: color-mix(in srgb, var(--surface-solid) 85%, transparent); box-shadow: var(--shadow-soft), 0 0 0 1px rgba(111,158,235,.035); }
.tool-card.featured { padding: 25px; }
.tool-card.featured-large { grid-row: 1 / 3; min-height: 430px; padding: 32px; background: radial-gradient(circle at 78% 20%, rgba(82,132,201,.17), transparent 40%), var(--surface); }
.featured-decoration { position: absolute; right: -22px; bottom: -42px; width: 230px; height: 230px; border: 1px solid rgba(116,164,237,.11); border-radius: 50%; pointer-events: none; }
.featured-decoration::before, .featured-decoration::after { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(116,164,237,.09); border-radius: 50%; }
.featured-decoration::after { inset: 68px; background: rgba(92,143,220,.06); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.tool-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, var(--surface-hover), var(--surface-soft)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.08); color: var(--accent-strong); }
.tool-icon svg { width: 24px; height: 24px; }
.featured-large .tool-icon { width: 58px; height: 58px; border-radius: 17px; }
.featured-large .tool-icon svg { width: 29px; height: 29px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; padding: 0 9px; border: 1px solid var(--border); border-radius: 99px; color: var(--text-secondary); background: var(--surface-soft); font-size: .69rem; font-weight: 630; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.status-online .status-dot { background: #59c58c; box-shadow: 0 0 0 3px rgba(89,197,140,.1); }
.status-beta .status-dot { background: #6da3f4; box-shadow: 0 0 0 3px rgba(109,163,244,.1); }
.status-developing .status-dot { background: #dcb568; box-shadow: 0 0 0 3px rgba(220,181,104,.1); }
.card-content { position: relative; z-index: 1; margin-top: auto; padding-top: 40px; }
.featured-large .card-content { padding-top: 90px; max-width: 475px; }
.card-category { margin: 0 0 9px; color: var(--accent); font-size: .7rem; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
.tool-card h4 { margin: 0; font-size: 1.28rem; letter-spacing: -.03em; font-weight: 650; }
.featured-large h4 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.card-description { margin: 10px 0 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.55; }
.featured-large .card-description { max-width: 420px; font-size: 1rem; }
.card-footer { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted); background: var(--surface-soft); font-size: .65rem; }
.open-arrow { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); transition: background var(--transition), transform var(--transition); }
.open-arrow svg { width: 17px; height: 17px; }
.tool-card:hover .open-arrow { background: var(--accent-soft); transform: translate(1px,-1px); }
.card-action { position: absolute; inset: 0; z-index: 2; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.card-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tools-grid .tool-card { min-height: 286px; padding: 22px; }
.tools-grid .card-content { padding-top: 34px; }
.empty-state { padding: 72px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); text-align: center; background: var(--surface-soft); }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 17px; border: 1px solid var(--border); border-radius: 15px; color: var(--text-muted); background: var(--surface-soft); }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.15rem; }
.empty-state p { margin: 0 0 22px; color: var(--text-secondary); }
.secondary-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-solid); cursor: pointer; font-weight: 620; transition: transform var(--transition), background var(--transition); }
.secondary-button:hover { transform: translateY(-2px); background: var(--surface-hover); }

.about-section { position: relative; overflow: hidden; padding: 118px 0; border-block: 1px solid var(--border); background: var(--bg-elevated); }
.about-glow { position: absolute; right: 10%; top: 10%; width: 380px; height: 380px; border-radius: 50%; background: rgba(67,121,181,.11); filter: blur(90px); }
.about-inner { position: relative; display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 82px; }
.about-mark { position: relative; width: 250px; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 46px; background: radial-gradient(circle at 35% 28%, rgba(116,168,237,.14), transparent 45%), var(--surface-soft); box-shadow: inset 0 1px rgba(255,255,255,.05); transform: rotate(-3deg); }
.about-mark::before { content: ""; position: absolute; inset: 54px; border: 1px solid var(--border-strong); border-radius: 27px; transform: rotate(7deg); }
.about-mark span { position: absolute; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); opacity: .75; box-shadow: 0 8px 24px rgba(70,118,189,.18); }
.about-mark span:nth-child(1) { left: 78px; top: 78px; }
.about-mark span:nth-child(2) { right: 76px; top: 81px; background: var(--teal); }
.about-mark span:nth-child(3) { right: 76px; bottom: 75px; opacity: .3; }
.about-inner > div:last-child { max-width: 650px; }
.about-inner > div > p:not(.eyebrow) { margin: 25px 0 24px; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; }
.about-inner strong { color: var(--text); font-size: 1rem; font-weight: 650; }

.site-footer { padding: 50px 0; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: end; gap: 35px; }
.footer-brand { margin-bottom: 15px; }
.footer-inner p { margin: 0; color: var(--text-muted); font-size: .83rem; }
.footer-inner nav { display: flex; justify-content: center; gap: 9px; color: var(--text-secondary); font-size: .82rem; }
.footer-inner nav a:hover { color: var(--text); }
.footer-inner nav span { color: var(--text-muted); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; color: var(--text-muted); font-size: .76rem; }

.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity 220ms ease; }
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(4,8,13,.67); backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(470px, 100%); padding: 30px; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--surface-solid); box-shadow: 0 32px 90px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06); transform: translateY(8px) scale(.97); transition: transform 260ms cubic-bezier(.2,.8,.2,1); }
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-close-icon { position: absolute; top: 17px; right: 17px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); cursor: pointer; }
.modal-close-icon svg { width: 18px; height: 18px; }
.modal-tool-icon { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 16px; color: var(--accent); background: var(--surface-soft); }
.modal-tool-icon svg { width: 27px; height: 27px; }
.modal-category { margin: 0 0 8px; color: var(--accent); font-size: .7rem; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
.modal-card h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.035em; }
.modal-card > p#modal-description { margin: 13px 0 17px; color: var(--text-secondary); line-height: 1.6; }
.modal-notice { display: flex; gap: 11px; margin: 22px 0; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.modal-notice svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; color: var(--text-muted); }
.modal-notice p { margin: 0; color: var(--text-secondary); font-size: .83rem; line-height: 1.5; }
.modal-close-button { width: 100%; min-height: 46px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--text); color: var(--bg); cursor: pointer; font-weight: 680; transition: transform var(--transition), opacity var(--transition); }
.modal-close-button:hover { transform: translateY(-1px); opacity: .92; }
body.modal-open { overflow: hidden; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.25,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { min-height: 720px; }
  .featured-grid { grid-template-columns: 1.2fr 1fr; }
  .tool-card.featured-large { min-height: 410px; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner { grid-template-columns: 220px 1fr; gap: 58px; }
  .about-mark { width: 210px; }
  .about-mark span:nth-child(1) { left: 62px; top: 62px; }
  .about-mark span:nth-child(2) { right: 61px; top: 65px; }
  .about-mark span:nth-child(3) { right: 61px; bottom: 59px; }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 32px, 1200px); }
  .site-header { inset: 10px 0 auto; width: calc(100% - 20px); border-radius: 16px; }
  .nav-shell { height: 58px; padding-inline: 14px; }
  .desktop-nav, .theme-toggle { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: block; }
  .hero { min-height: 680px; }
  .hero-content { padding-top: 70px; }
  .hero-kicker { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(3.2rem, 13vw, 5rem); }
  .tool-browser { padding-top: 82px; padding-bottom: 96px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 17px; }
  .search-panel { padding: 12px; border-radius: 18px; }
  .category-bar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -12px; padding: 12px 12px 2px; scrollbar-width: none; }
  .category-bar::-webkit-scrollbar { display: none; }
  .category-pill { flex: 0 0 auto; min-height: 44px; }
  .featured-section, .all-tools-section { padding-top: 62px; }
  .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .tool-card.featured-large { grid-column: 1 / 3; grid-row: auto; min-height: 345px; }
  .tool-card.featured:not(.featured-large) { min-height: 280px; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-section { padding: 92px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-mark { width: 190px; }
  .about-mark::before { inset: 43px; }
  .about-mark span:nth-child(1) { left: 56px; top: 56px; }
  .about-mark span:nth-child(2) { right: 54px; top: 59px; }
  .about-mark span:nth-child(3) { right: 54px; bottom: 53px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner nav { justify-content: flex-end; }
  .footer-meta { grid-column: 1 / 3; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); }
}

@media (max-width: 599px) {
  .page-shell { width: calc(100% - 28px); }
  .brand { font-size: .81rem; }
  .brand-mark { width: 26px; height: 26px; }
  .hero { min-height: 655px; }
  .hero-kicker { max-width: calc(100% - 10px); font-size: .64rem; letter-spacing: .06em; }
  .hero-brand { margin-bottom: 15px; }
  .hero h1 { font-size: clamp(3rem, 15.5vw, 4.4rem); line-height: 1.01; }
  .hero-copy { margin-top: 27px; font-size: .98rem; }
  .desktop-break { display: none; }
  .orb-blue { width: 330px; height: 330px; left: -20%; }
  .orb-teal { width: 290px; height: 290px; right: -25%; }
  .section-heading h2, .about-inner h2 { font-size: 2.35rem; }
  .search-box kbd { display: none; }
  .subsection-heading { align-items: end; }
  .subsection-heading span { max-width: 130px; text-align: right; line-height: 1.4; }
  .featured-grid, .tools-grid { grid-template-columns: 1fr; }
  .tool-card.featured-large { grid-column: auto; min-height: 380px; padding: 25px; }
  .tool-card.featured:not(.featured-large) { min-height: 275px; }
  .featured-large .card-content { padding-top: 72px; }
  .tools-grid .tool-card { min-height: 275px; }
  .about-inner > div > p:not(.eyebrow) { font-size: .98rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner nav { justify-content: flex-start; }
  .footer-meta { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .modal-card { padding: 26px 22px 22px; border-radius: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
