@layer hero {
  /* ── Hero ── */
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 68px);
    padding-block: clamp(64px, 6vw, 100px);
    position: relative;
    background: linear-gradient(oklch(53.6% 0.207 276 / 0.35), oklch(53.6% 0.207 276 / 0.35)), #5456E2 url('../mq1grz2l-tras.png') center / cover no-repeat;
    overflow: hidden;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #5456E2);
    pointer-events: none;
    z-index: 0;
  }
  .hero-content {
    max-width: 780px;
    position: relative;
    z-index: 1;
  }
  .hero-content .section-label { margin-bottom: 20px; }
  .hero-content h1 {
    margin-bottom: 24px;
    font-size: clamp(32px, 4.2vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, #c4c9ec 25%, #8a94d4 50%, #c4c9ec 75%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s linear infinite;
  }
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
  }
  .hero-content .hero-subtitle-custom {
    margin-bottom: 40px;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
    max-width: 60ch;
    opacity: 0.85;
  }
  .hero-content .hero-search { margin-bottom: 28px; }
  .hero-search {
    display: flex;
    gap: 0;
    max-width: 600px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 2px 8px oklch(0% 0 0 / 0.06);
  }
  .hero-search:focus-within {
    border-color: #5456E2;
    box-shadow: 0 0 0 4px oklch(92% 0.04 276 / 0.25), 0 2px 8px oklch(0% 0 0 / 0.06);
  }
  .hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 24px;
    font-size: 15px;
    background: transparent;
    color: var(--fg);
  }
  .hero-search input::placeholder { color: oklch(70% 0.01 276); }
  .hero-search button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 28px;
    background: #292846;
    color: #fff;
    border: none;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
  }
  .hero-search button:hover,
  .hero-search button:active { background: #56556f; color: #fff; }
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .hero-tags > span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
    color: var(--muted);
    font-weight: 500;
    margin-right: 2px;
  }
  .hero-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: oklch(100% 0 0 / 0.1);
    color: oklch(100% 0 0 / 0.85);
    cursor: pointer;
    border: 1px solid oklch(100% 0 0 / 0.15);
    transition: all .2s;
    text-decoration: none;
  }
  .hero-tags .tag:hover {
    background: oklch(100% 0 0 / 0.18);
    border-color: oklch(100% 0 0 / 0.25);
  }

  /* ── How it works ── */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
  }
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 64px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 1.5px;
    background: linear-gradient(90deg, oklch(53.6% 0.207 276 / 0.15), oklch(53.6% 0.207 276 / 0.4), oklch(53.6% 0.207 276 / 0.15));
    z-index: 0;
  }
  .step {
    position: relative;
    padding: 48px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    z-index: 1;
  }
  .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: oklch(53.6% 0.207 276);
    color: #fff;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
  }
  .step:nth-child(1) .step-number { animation: pulse-step-1 4s ease-in-out infinite; }
  .step:nth-child(2) .step-number { animation: pulse-step-2 4s ease-in-out infinite; }
  .step:nth-child(3) .step-number { animation: pulse-step-3 4s ease-in-out infinite; }
  .step h3 {
    margin-bottom: var(--space-xs);
    font-size: 20px;
  }
  .step p {
    font-size: 15px;
    color: oklch(50% 0.015 276);
    line-height: 1.6;
  }
  @keyframes pulse-step-1 {
    0%, 100% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 oklch(53.6% 0.207 276 / 0.4); background: oklch(53.6% 0.207 276); }
    15% { transform: scale(1.15) translateY(-2px); box-shadow: 0 0 0 14px oklch(53.6% 0.207 276 / 0); background: oklch(60% 0.22 276); }
    33% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 oklch(53.6% 0.207 276 / 0.4); background: oklch(53.6% 0.207 276); }
  }
  @keyframes pulse-step-2 {
    0%, 100% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 oklch(53.6% 0.207 276 / 0.4); background: oklch(53.6% 0.207 276); }
    33% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 oklch(53.6% 0.207 276 / 0.4); background: oklch(53.6% 0.207 276); }
    48% { transform: scale(1.15) translateY(-2px); box-shadow: 0 0 0 14px oklch(53.6% 0.207 276 / 0); background: oklch(60% 0.22 276); }
    66% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 oklch(53.6% 0.207 276 / 0.4); background: oklch(53.6% 0.207 276); }
  }
  @keyframes pulse-step-3 {
    0%, 100% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 oklch(53.6% 0.207 276 / 0.4); background: oklch(53.6% 0.207 276); }
    66% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 oklch(53.6% 0.207 276 / 0.4); background: oklch(53.6% 0.207 276); }
    81% { transform: scale(1.15) translateY(-2px); box-shadow: 0 0 0 14px oklch(53.6% 0.207 276 / 0); background: oklch(60% 0.22 276); }
    100% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 oklch(53.6% 0.207 276 / 0.4); background: oklch(53.6% 0.207 276); }
  }

  /* ── Categories ── */
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }
  .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-sm);
    transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
  }
  .category-card:hover {
    border-color: oklch(53.6% 0.207 276 / 0.3);
    transform: translateY(-3px);
    box-shadow: var(--elevation-2);
    background: var(--surface);
  }
  .category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    transition: transform .25s ease, box-shadow .3s ease;
  }
  .category-card:hover .category-icon { transform: scale(1.06); }
  .category-card h4 { font-size: 15px; margin-bottom: 4px; letter-spacing: -0.01em; }
  .category-card p { font-size: 13px; color: oklch(55% 0.01 276); }
  .category-card:nth-child(1) .category-icon { background: linear-gradient(135deg, #7c5cfc, #5456E2); }
  .category-card:nth-child(2) .category-icon { background: linear-gradient(135deg, #5ce5d5, #14b8a6); }
  .category-card:nth-child(3) .category-icon { background: linear-gradient(135deg, #f472b6, #ec4899); }
  .category-card:nth-child(4) .category-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
  .category-card:nth-child(5) .category-icon { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
  .category-card:nth-child(6) .category-icon { background: linear-gradient(135deg, #34d399, #10b981); }
  .category-card:nth-child(7) .category-icon { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
  .category-card:nth-child(8) .category-icon { background: linear-gradient(135deg, #fb7185, #ef4444); }

  /* ── Featured agencies ── */
  .agencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  .agency-card {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  .agency-card:hover {
    transform: none;
    box-shadow: var(--elevation-1);
  }

  .agency-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  .agency-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, oklch(53.6% 0.207 276 / 0.08), oklch(53.6% 0.207 276 / 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: oklch(53.6% 0.207 276);
    flex-shrink: 0;
  }
  .agency-name { font-weight: 600; font-size: 16px; }
  .agency-location { font-size: 13px; color: oklch(50% 0.015 276); }
  .agency-description { font-size: 14px; color: oklch(50% 0.015 276); line-height: 1.6; }
  .agency-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .agency-tags .tag { font-size: 12px; padding: 3px 12px; background: oklch(92% 0.04 276 / 0.3); color: oklch(53.6% 0.207 276); }
  .agency-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xs);
    border-top: 1px solid oklch(88% 0.005 276);
    margin-top: auto;
  }
  .agency-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: oklch(18% 0.015 276); }
  .agency-rating .star { color: #f59e0b; }

  /* ── Testimonials ── */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  .testimonial-card {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--elevation-1);
    transition: transform .25s ease, box-shadow .3s ease;
  }
  .testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
  }
  .testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: oklch(25% 0.015 276);
    flex: 1;
    font-style: normal;
  }
  .testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, oklch(53.6% 0.207 276 / 0.1), oklch(53.6% 0.207 276 / 0.2));
    flex-shrink: 0;
  }
  .testimonial-name { font-weight: 600; font-size: 14px; color: oklch(18% 0.015 276); }
  .testimonial-role { font-size: 13px; color: oklch(50% 0.015 276); }

  /* ── Stats ── */
  .stats-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 40px 0;
  }
  .stat {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 24px;
  }
  .stat + .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 56px;
    background: oklch(100% 0 0 / 0.12);
  }
  .stat-number {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
  }
  .stat-label {
    font-size: 14px;
    color: oklch(80% 0.02 276);
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  /* ── CTA ── */
  .cta-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    background: oklch(100% 0 0 / 0.1);
    color: oklch(100% 0 0 / 0.9);
    border: 1.5px solid oklch(100% 0 0 / 0.15);
    text-decoration: none;
    transition: all .2s;
  }
  .cta-tag:hover {
    background: oklch(100% 0 0 / 0.18);
    border-color: oklch(100% 0 0 / 0.28);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(53.6% 0.207 276 / 0.3);
  }
  .cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* ── Mobile hero wallpaper ── */
  @media (max-width: 640px) {
    .hero { min-height: 440px; padding-block: 28px 16px; background: #5456E2; position: relative; overflow: hidden; }
    .hero::before { content: ''; position: absolute; inset: 0; background: #5456E2 url('../mq1fo7bj-v2-sky-phone.png') center top / cover no-repeat; filter: blur(2px); opacity: 0.5; pointer-events: none; z-index: 0; will-change: transform; transform: translateY(var(--parallax-offset-mobile, 0px)); }
  }

  /* ── Responsive ── */
  @media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .agencies-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { gap: 20px; }
    .steps-grid::before { display: none; }
  }
  @media (max-width: 768px) {
    .hero { min-height: 460px; padding-block: 32px 24px; }
    .hero-content h1 { font-size: clamp(24px, 5vw, 36px); }
    .hero-content .hero-subtitle-custom { font-size: 15px; margin-bottom: 24px; }
    .hero::after { height: 30px; }
  }
  @media (max-width: 640px) {
    .stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 16px 0; }
    .stat { flex: none; padding: 16px; position: relative; text-align: center; }
    .stat + .stat::before { display: none; }
    .stat:nth-child(1)::after { display: none; }
    .stat:nth-child(1)::before { display: none; }
    .stat:nth-child(2)::before { display: none; }
    .stat:nth-child(3)::after { display: none; }
    .stat-number { font-size: clamp(24px, 7vw, 32px); margin-bottom: 2px; }
    .stat-label { font-size: 12px; }
    .steps-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .step { padding: 28px 20px; }
    .step h3 { font-size: 17px; }
    .step p { font-size: 14px; }
    .step-number { width: 40px; height: 40px; font-size: 16px; margin-bottom: 14px; }
    .agencies-grid { grid-template-columns: 1fr; }
    .agency-card { padding: var(--space-md); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: var(--space-md); }
    .hero-content h1 { font-size: clamp(20px, 5.5vw, 26px); }
    .hero-content .hero-subtitle-custom { font-size: 14px; margin-bottom: 20px; }
  }
  @media (min-width: 641px) and (max-width: 1024px) {
    .hero { min-height: auto; padding-block: clamp(64px, 8vw, 96px);     background: linear-gradient(oklch(53.6% 0.207 276 / 0.35), oklch(53.6% 0.207 276 / 0.35)), #5456E2 url('../mq1hhbl5-tablet-only.png') center / cover no-repeat; }
  }
}
