/* =============================================
   HERO SECTION ONLY
   Tool grid + filter bar → category.css
============================================= */

/* ── ROOT OVERFLOW GUARD ────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── CSS VARIABLES ───────────────────────── */
:root {
  --itz-accent:       #2563eb;
  --itz-accent-light: #eff6ff;
  --itz-green:        #16a34a;
  --itz-text:         #111827;
  --itz-sub:          #6b7280;
  --itz-border:       #e5e7eb;
  --itz-radius:       14px;
  --itz-radius-sm:    8px;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.itz-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 20px 48px;
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.itz-hero-body {
  text-align: center;
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  padding: 0 4px;
  animation: itzFadeUp .55s ease both;
}

.itz-badge {
  display: inline-block;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  margin-bottom: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.itz-hero-body h1 {
  font-size: clamp(1.75rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.itz-hero-body h2,
.itz-hero-body h3 {
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 600;
  color: #2563eb;
  margin-top: 6px;
  word-break: break-word;
}

.itz-sub {
  margin-top: 16px;
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  color: #6b7280;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
}

.itz-typed {
  color: #16a34a;
  font-weight: 600;
  min-width: 1ch;
  display: inline-block;
}

.itz-cursor {
  color: #16a34a;
  animation: blink .8s infinite;
  font-weight: 300;
}

.itz-dim { color: #9ca3af; }

/* ── ANIMATIONS ─────────────────────────── */
@keyframes itzFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── MOBILE ─────────────────────────────── */
@media (max-width: 640px) {
  .itz-hero {
    padding: 56px 16px 36px;
    min-height: 48vh;
  }
}

/* ── HERO CTA BUTTONS ────────────────────── */
.itz-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.itz-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  background: #2563eb;
  color: #fff;
  border-radius: 9px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.itz-cta-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

.itz-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: #fff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.itz-cta-secondary:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-1px);
}

@media (max-width: 400px) {
  .itz-hero-cta { gap: 8px; }
  .itz-cta-primary,
  .itz-cta-secondary { padding: 10px 18px; font-size: .85rem; width: 100%; justify-content: center; }
}