.pattern-hero {
    position: relative;
    min-height: calc(100svh - 80px);
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #f5f1e8;
}

.pattern-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 38rem;
    height: 38rem;
    right: -14rem;
    top: -16rem;
    border-radius: 999px;
    background: #f8dfad;
    opacity: .82;
}

.pattern-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 22rem;
    height: 22rem;
    left: -12rem;
    bottom: -14rem;
    border-radius: 999px;
    background: rgba(111,126,107,.16);
}

.pattern-hero-grid {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 4.5rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: center;
}

.pattern-hero-kicker {
    margin-bottom: 1rem;
    color: #efb855;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pattern-hero-title {
    margin: 0 0 1.5rem;
    color: #18252f;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.06;
}

.pattern-hero-copy {
    max-width: 42rem;
}

.pattern-hero-description {
    max-width: 40rem;
    margin: 0 0 2.5rem;
    color: rgba(51,69,83,.76);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.75;
}

.pattern-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pattern-hero-primary,
.pattern-hero-secondary {
    min-height: 3.5rem;
    padding: 0 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.pattern-hero-primary {
    color: #18252f;
    background: #efb855;
    box-shadow: 0 10px 25px rgba(24,35,45,.12);
}

.pattern-hero-primary:hover {
    transform: translateY(-2px);
    background: #f4c66f;
}

.pattern-hero-secondary {
    color: #334553;
    border: 1px solid rgba(51,69,83,.26);
    background: rgba(255,255,255,.28);
}

.pattern-hero-secondary:hover {
    transform: translateY(-2px);
    border-color: #efb855;
    background: rgba(255,255,255,.78);
}

.pattern-hero-visual {
    position: relative;
    min-height: 32rem;
}

.pattern-browser-card {
    position: absolute;
    inset: 1.25rem 0 1.75rem 2.2rem;
    padding: .7rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 2.2rem;
    background: #18252f;
    box-shadow: 0 2.2rem 5rem rgba(24,35,45,.26);
    transform: rotate(2deg);
}

.pattern-browser-bar {
    height: 2.8rem;
    padding: 0 .7rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.pattern-browser-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: #efb855;
}

.pattern-browser-dot:nth-child(2) { opacity: .55; }
.pattern-browser-dot:nth-child(3) { opacity: .25; }

.pattern-browser-image {
    height: calc(100% - 2.8rem);
    overflow: hidden;
    border-radius: 1.55rem;
    background: #c7d0d2;
}

.pattern-browser-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pattern-floating-note {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: 13.5rem;
    padding: 1.4rem;
    border-radius: 1.5rem;
    color: #18252f;
    background: #efb855;
    box-shadow: 0 1.2rem 2.8rem rgba(24,35,45,.18);
    transform: rotate(-4deg);
}

.pattern-floating-note strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -.04em;
}

.pattern-floating-note span {
    display: block;
    margin-top: .65rem;
    font-size: .82rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .pattern-hero { min-height: auto; }
    .pattern-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .pattern-hero-visual { min-height: 28rem; }
}

@media (max-width: 640px) {
    .pattern-hero-grid { padding-top: 3.5rem; padding-bottom: 4.5rem; }
    .pattern-hero-title { font-size: clamp(2.55rem, 12vw, 3.4rem); }
    .pattern-hero-actions { flex-direction: column; align-items: stretch; }
    .pattern-hero-visual { min-height: 22.5rem; }
    .pattern-browser-card { inset: .75rem 0 1.5rem .9rem; border-radius: 1.6rem; }
    .pattern-browser-image { border-radius: 1.1rem; }
    .pattern-floating-note { width: 10.5rem; padding: 1rem; }
    .pattern-floating-note strong { font-size: 1.35rem; }
    .pattern-floating-note span { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pattern-browser-card,
    .pattern-floating-note { transform: none; }
}
