:root {
  --bg: #f5efe6;
  --bg-strong: #fffaf3;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-2: rgba(255, 255, 255, 0.95);
  --ink: #1c2230;
  --muted: #637089;
  --line: rgba(28, 34, 48, 0.1);
  --accent: #f56a1f;
  --accent-2: #ffb067;
  --accent-3: #146c63;
  --shadow: 0 18px 45px rgba(31, 36, 48, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 176, 103, 0.45), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(20, 108, 99, 0.16), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, #f5efe6 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.8;
  animation: driftBlob 18s ease-in-out infinite alternate;
}

body::before {
  top: 8%;
  left: -5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 106, 31, 0.22), transparent 68%);
}

body::after {
  top: 40%;
  right: -6%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(20, 108, 99, 0.18), transparent 70%);
  animation-duration: 22s;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  border: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: calc(100% - 16px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 0 32px;
}

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

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.38;
  filter: blur(4px);
  animation: floatOrb linear infinite;
  will-change: transform;
}

.ambient-orb.orange {
  background: radial-gradient(circle, rgba(245, 106, 31, 0.34), rgba(245, 106, 31, 0));
}

.ambient-orb.teal {
  background: radial-gradient(circle, rgba(20, 108, 99, 0.28), rgba(20, 108, 99, 0));
}

.ambient-orb.gold {
  background: radial-gradient(circle, rgba(255, 176, 103, 0.34), rgba(255, 176, 103, 0));
}

.site-header,
.hero,
.section-block,
.tool-sidebar,
.stage-panel,
.page-hero {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring), background 0.45s ease;
  animation: slideDown 0.8s var(--ease-spring) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #ee3f52);
  box-shadow: 0 12px 22px rgba(245, 106, 31, 0.24);
  animation: pulseGlow 3.6s ease-in-out infinite;
}

.brand-copy {
  display: grid;
}

.brand-copy strong,
.hero h1,
.hero h2,
.section-head h2,
.category-card h3,
.featured-card h3,
.page-hero h1,
.sidebar-head h2,
.stage-top h2,
.tool-card h3,
.result-main {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy small,
.eyebrow,
.metric-card span,
.metric-grid span,
.category-card strong,
.count-pill,
.badge {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.brand-copy small,
.eyebrow,
.hero-text,
.category-card p,
.featured-card p,
.page-hero p,
.input-wrap span,
.tool-card p,
.stage-text,
.result-copy,
.placeholder,
.site-footer span {
  color: var(--muted);
}

.site-nav {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.site-nav a {
  flex: 1 1 calc(50% - 10px);
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #f05b4f);
  color: #fff;
}

.site-nav a.is-active.nav-cta {
  box-shadow: 0 12px 24px rgba(245, 106, 31, 0.2);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 18px;
  margin-top: 14px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -8%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 68%);
  animation: sweepGlow 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-home {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.hero-copy,
.hero-panel,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  animation: revealUp 0.95s var(--ease-spring) both;
}

.hero-panel {
  animation: revealUp 1.1s var(--ease-spring) both;
}

.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  background: linear-gradient(135deg, #1c2230 0%, #414d67 38%, #f56a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  margin-top: 18px;
  max-width: 64ch;
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-actions,
.hero-strip,
.metric-grid,
.section-head,
.tool-workspace,
.sidebar-head,
.stage-top,
.stage-actions,
.result-pills {
  display: flex;
  gap: 14px;
}

.hero-actions,
.hero-strip,
.metric-grid,
.stage-actions,
.result-pills,
.site-nav {
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), background 0.3s ease;
}

.button:hover,
.tool-card:hover {
  transform: translateY(-3px) scale(1.01);
}

.button::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%) rotate(8deg);
  transition: transform 0.8s ease;
}

.button:hover::after {
  transform: translateX(120%) rotate(8deg);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f04c58);
  box-shadow: 0 16px 28px rgba(245, 106, 31, 0.25);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.hero-strip span,
.count-pill,
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 34, 48, 0.08);
  transition: transform 0.35s var(--ease-spring), background 0.35s ease, box-shadow 0.35s ease;
}

.hero-strip span {
  animation: floatTag 5.5s ease-in-out infinite;
}

.hero-strip span:nth-child(2) {
  animation-delay: 0.8s;
}

.hero-strip span:nth-child(3) {
  animation-delay: 1.6s;
}

.hero-strip span:nth-child(4) {
  animation-delay: 2.4s;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(20, 108, 99, 0.14), rgba(255, 176, 103, 0.2));
  animation: floatPanel 7s ease-in-out infinite;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.38), transparent 68%);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 4rem;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.metric-grid article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
  animation: revealUp 0.9s var(--ease-spring) both;
}

.metric-grid article:nth-child(2) { animation-delay: 0.08s; }
.metric-grid article:nth-child(3) { animation-delay: 0.16s; }
.metric-grid article:nth-child(4) { animation-delay: 0.24s; }
.metric-grid article:nth-child(5) { animation-delay: 0.32s; }
.metric-grid article:nth-child(6) { animation-delay: 0.4s; }
.metric-grid article:nth-child(7) { animation-delay: 0.48s; }

.metric-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(31, 36, 48, 0.1);
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.section-block {
  margin-top: 22px;
  padding: 18px;
  border-radius: 30px;
}

.section-head,
.sidebar-head,
.stage-top {
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
}

.section-head h2,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.text-link {
  font-weight: 800;
  color: var(--accent);
}

.category-grid,
.featured-grid,
.faq-grid,
.resource-grid,
.quick-links {
  display: grid;
  gap: 16px;
}

.category-grid {
  margin-top: 20px;
  grid-template-columns: 1fr;
}

.category-card,
.featured-card,
.tool-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(28, 34, 48, 0.08);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.35s ease, background 0.35s ease;
}

.category-card::before,
.featured-card::before,
.tool-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 106, 31, 0.12), transparent 70%);
  transition: transform 0.5s var(--ease-spring), opacity 0.5s ease;
  opacity: 0.7;
}

.category-card:hover,
.featured-card:hover,
.tool-card:hover,
.tool-card.active {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 14px 30px rgba(30, 38, 48, 0.12);
}

.category-card:hover::before,
.featured-card:hover::before,
.tool-card:hover::before,
.tool-card.active::before {
  transform: scale(1.2);
  opacity: 1;
}

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  font-weight: 800;
  background: rgba(245, 106, 31, 0.12);
}

.featured-grid {
  margin-top: 20px;
  grid-template-columns: 1fr;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 700;
}

.faq-grid,
.resource-grid {
  margin-top: 20px;
  grid-template-columns: 1fr;
}

.faq-card,
.resource-link,
.quick-link {
  display: block;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(28, 34, 48, 0.08);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.35s ease;
}

.faq-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

.faq-card p,
.resource-link,
.quick-link {
  color: var(--muted);
}

.resource-link:hover,
.quick-link:hover,
.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30, 38, 48, 0.12);
  border-color: rgba(245, 106, 31, 0.2);
}

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

.quick-link {
  text-align: center;
  font-weight: 800;
  color: var(--accent);
}

.featured-card span,
.tool-card small {
  display: inline-block;
  color: var(--accent-3);
  font-weight: 800;
  margin-bottom: 10px;
}

.seo-index-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.seo-index-group {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.seo-index-group h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
}

.seo-index-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.seo-index-links a {
  color: var(--accent);
  font-weight: 700;
}

.final-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.tools-main {
  margin-top: 18px;
}

.page-hero.compact {
  padding: 26px 30px;
}

.tool-workspace {
  margin-top: 18px;
  flex-direction: column;
  align-items: flex-start;
}

.tool-sidebar {
  width: 100%;
  flex: 1 1 auto;
  padding: 18px;
  border-radius: 28px;
  animation: revealLeft 0.8s var(--ease-spring) both;
}

.control-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.input-wrap,
.tool-form label {
  display: grid;
  gap: 8px;
}

.input-wrap input,
.input-wrap select,
.tool-form input,
.tool-form select,
.tool-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.input-wrap input:focus,
.input-wrap select:focus,
.tool-form input:focus,
.tool-form select:focus,
.tool-form textarea:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(245, 106, 31, 0.45);
  box-shadow: 0 0 0 4px rgba(245, 106, 31, 0.08);
  background: rgba(255, 255, 255, 1);
}

.tool-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.tool-card.active {
  border-color: rgba(245, 106, 31, 0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,245,236,0.98));
}

.tool-card h3 {
  margin: 6px 0;
  font-size: 1.05rem;
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(245, 106, 31, 0.12);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease-spring), background 0.35s ease, color 0.35s ease;
}

.tool-card:hover .tool-badge,
.tool-card.active .tool-badge {
  transform: rotate(-6deg) scale(1.08);
  background: linear-gradient(135deg, rgba(245,106,31,0.16), rgba(240,76,88,0.16));
}

.tool-stage {
  width: 100%;
  flex: 1 1 auto;
  position: static;
}

.stage-panel {
  padding: 18px;
  border-radius: 28px;
  animation: revealRight 0.9s var(--ease-spring) both;
}

.badge {
  color: var(--accent-3);
  background: rgba(20, 108, 99, 0.12);
}

.stage-top[data-category="Finance"] .badge,
.stage-top[data-category="Tech & Productivity"] .badge {
  background: rgba(245, 106, 31, 0.12);
  color: var(--accent);
}

.stage-text {
  line-height: 1.7;
}

.tool-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.tool-form textarea {
  min-height: 130px;
  resize: vertical;
}

.result-box {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  min-height: 250px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 236, 0.96));
  border: 1px solid rgba(28, 34, 48, 0.08);
  padding: 20px;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease, border-color 0.45s ease;
}

.result-box::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 68%);
  pointer-events: none;
}

.result-box.is-updated {
  animation: resultPulse 0.7s var(--ease-spring);
  border-color: rgba(245, 106, 31, 0.3);
  box-shadow: 0 18px 34px rgba(245, 106, 31, 0.12);
}

.ai-preview {
  display: block;
  width: min(100%, 360px);
  margin: 18px 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 60px rgba(5, 10, 24, 0.28);
}

.smart-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 34, 48, 0.08);
}

.smart-panel-top {
  display: grid;
  gap: 12px;
}

.smart-panel-top h3 {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.smart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.smart-recommendations {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.smart-suggestion {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(28, 34, 48, 0.08);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}

.smart-suggestion strong {
  font-size: 0.98rem;
}

.smart-suggestion span {
  color: var(--muted);
  font-size: 0.86rem;
}

.smart-suggestion:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 36, 48, 0.1);
  border-color: rgba(245, 106, 31, 0.22);
}

.placeholder,
.result-copy {
  line-height: 1.7;
}

.result-main {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.result-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.loading-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 180px;
  text-align: center;
}

.loading-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f04c58);
  box-shadow: 0 0 0 0 rgba(245, 106, 31, 0.25);
  animation: loadingPulse 1.2s ease-in-out infinite;
}

.meme-card,
.share-card {
  margin-top: 16px;
  min-height: 220px;
  border-radius: 24px;
  padding: 20px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(135deg, #f56a1f, #f04c58 55%, #146c63);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  animation: glowCard 6s ease-in-out infinite alternate;
}

.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 8px 0;
  animation: revealUp 1s var(--ease-spring) both;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes driftBlob {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(32px, -18px, 0) scale(1.08); }
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(0.9); }
  50% { transform: translate3d(18px, -42px, 0) scale(1.04); }
  to { transform: translate3d(-12px, -84px, 0) scale(1.12); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sweepGlow {
  0% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.5; }
  50% { transform: translate3d(38px, 18px, 0) scale(1.1); opacity: 0.85; }
  100% { transform: translate3d(82px, 6px, 0) scale(0.98); opacity: 0.55; }
}

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 12px 22px rgba(245, 106, 31, 0.24); }
  50% { box-shadow: 0 18px 34px rgba(245, 106, 31, 0.38); }
}

@keyframes resultPulse {
  0% { transform: scale(0.985); }
  60% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@keyframes glowCard {
  from { box-shadow: 0 20px 44px rgba(240, 76, 88, 0.16); }
  to { box-shadow: 0 28px 54px rgba(20, 108, 99, 0.2); }
}

@keyframes loadingPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245, 106, 31, 0.35); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 16px rgba(245, 106, 31, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 106, 31, 0); }
}

@media (min-width: 761px) {
  .site-shell {
    width: calc(100% - 28px);
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .site-header {
    top: 14px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
  }

  .site-nav {
    width: auto;
    align-items: center;
  }

  .site-nav a {
    flex: 0 0 auto;
    text-align: left;
  }

  .hero,
  .page-hero,
  .section-block,
  .tool-sidebar,
  .stage-panel {
    padding: 24px;
  }

  .metric-grid,
  .field-grid,
  .featured-grid,
  .faq-grid,
  .resource-grid,
  .seo-index-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .quick-links {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (min-width: 1101px) {
  .hero,
  .page-hero {
    padding: 34px;
    margin-top: 18px;
  }

  .hero-home {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  .section-block {
    padding: 28px;
  }

  .section-head,
  .sidebar-head,
  .stage-top,
  .final-cta,
  .site-footer {
    flex-direction: row;
    align-items: center;
  }

  .tool-workspace {
    flex-direction: row;
  }

  .tool-sidebar {
    width: auto;
    flex: 0 0 400px;
    padding: 20px;
  }

  .tool-list {
    max-height: 900px;
    overflow: auto;
    padding-right: 4px;
  }

  .tool-stage {
    width: auto;
    flex: 1;
    position: sticky;
    top: 95px;
  }

  .stage-panel {
    padding: 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
