.home-hero {
    position: relative;
    min-height: clamp(610px, 78vh, 820px);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(
            90deg,
            rgba(7, 29, 47, 0.94) 0%,
            rgba(7, 29, 47, 0.78) 42%,
            rgba(7, 29, 47, 0.28) 75%,
            rgba(7, 29, 47, 0.18) 100%
        ),
        url("/images/reelboating-hero.jpg")
        center 56% / cover no-repeat;
}

.home-hero::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 72% 28%,
            rgba(45, 183, 176, 0.18),
            transparent 24rem
        ),
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(7, 29, 47, 0.54) 100%
        );
    content: "";
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 14px
        );
    pointer-events: none;
}

.home-hero-shell {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(6rem, 10vw, 9rem);
}

.home-hero-copy {
    max-width: 760px;
}

.home-hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.15rem;
    padding: 0.48rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.home-hero h1 {
    max-width: 760px;
    margin-bottom: 1.2rem;
    color: var(--white);
    font-size: clamp(3rem, 7vw, 6.5rem);
    text-shadow:
        0 6px 22px rgba(0, 0, 0, 0.24);
}

.home-hero p {
    max-width: 680px;
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 1.7vw, 1.32rem);
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.home-hero-community {
    display: grid;
    max-width: 620px;
    margin-top: 2rem;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--orange-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(7, 29, 47, 0.38);
    backdrop-filter: blur(10px);
}

.home-hero-community strong {
    color: var(--white);
    font-size: 0.92rem;
}

.home-hero-community span {
    margin-top: 0.18rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.home-hero-water {
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    z-index: 2;
    height: 92px;
    overflow: hidden;
    pointer-events: none;
}

.home-hero-water span {
    position: absolute;
    bottom: -42px;
    left: 50%;
    width: 130%;
    height: 100px;
    border-radius: 50%;
    background: var(--gray-50);
    transform: translateX(-50%);
}

.home-hero-water span:nth-child(2) {
    bottom: -56px;
    left: 38%;
    width: 72%;
    background: rgba(232, 245, 250, 0.84);
}

.home-hero-water span:nth-child(3) {
    bottom: -68px;
    left: 72%;
    width: 66%;
    background: rgba(255, 255, 255, 0.9);
}

.latest-section {
    background:
        radial-gradient(
            circle at 92% 18%,
            rgba(45, 143, 189, 0.08),
            transparent 24rem
        );
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, 0.85fr);
    align-items: stretch;
    gap: 1.5rem;
}

.featured-card {
    min-height: 610px;
    display: grid;
    grid-template-rows: minmax(330px, 1fr) auto;
}

.featured-card-image {
    min-height: 350px;
}

.featured-card-content {
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

.featured-card h3 {
    margin-bottom: 0.72rem;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
}

.featured-card h3 a,
.latest-card h3 a {
    color: var(--navy-950);
    text-decoration: none;
}

.featured-card h3 a:hover,
.latest-card h3 a:hover {
    color: var(--orange-600);
}

.featured-card p {
    max-width: 780px;
    color: var(--text-soft);
}

.featured-read-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.4rem;
    gap: 0.55rem;
    color: var(--navy-800);
    font-weight: 900;
    text-decoration: none;
}

.featured-read-link span {
    transition: transform var(--transition-standard);
}

.featured-read-link:hover span {
    transform: translateX(5px);
}

.latest-stack {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.latest-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    min-height: 0;
}

.latest-card-image {
    min-height: 100%;
}

.latest-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.1rem;
}

.latest-card .category-label {
    width: fit-content;
    margin-bottom: 0.5rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.6rem;
}

.latest-card h3 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.latest-card .meta {
    font-size: 0.73rem;
}

.empty-content {
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
}

.empty-content p {
    max-width: 660px;
    margin-right: auto;
    margin-left: auto;
    color: var(--text-soft);
}

.category-section {
    background:
        linear-gradient(
            180deg,
            var(--white),
            var(--blue-100)
        );
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.category-card {
    position: relative;
    min-height: 275px;
    display: flex;
    flex-direction: column;
    padding: 1.45rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(232, 245, 250, 0.88)
        );
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition:
        transform var(--transition-standard),
        box-shadow var(--transition-standard),
        border-color var(--transition-standard);
}

.category-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background:
        linear-gradient(
            90deg,
            var(--orange-500),
            var(--aqua-500),
            var(--blue-600)
        );
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 500ms ease;
}

.category-card::after {
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(45, 143, 189, 0.18),
            transparent 68%
        );
    content: "";
    transition:
        transform 650ms ease,
        opacity var(--transition-standard);
}

.category-card:hover {
    color: var(--text);
    border-color: rgba(45, 143, 189, 0.32);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover::after {
    transform: translate(-18px, -14px) scale(1.12);
}

.category-number {
    position: relative;
    z-index: 2;
    margin-bottom: auto;
    color: rgba(18, 63, 104, 0.18);
    font-size: 2.6rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.06em;
}

.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 1.4rem 0 0.65rem;
    font-size: 1.35rem;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin-bottom: 1.2rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.category-arrow {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--navy-800);
    font-size: 0.82rem;
    font-weight: 900;
}

.category-arrow span {
    transition: transform var(--transition-standard);
}

.category-card:hover .category-arrow span {
    transform: translateX(5px);
}

.community-section {
    padding-top: clamp(4.5rem, 8vw, 7.5rem);
    padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
    background:
        linear-gradient(
            150deg,
            var(--navy-950),
            var(--navy-800)
        );
}

.community-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.55fr);
    align-items: center;
    padding: clamp(2rem, 5vw, 4.25rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(
            circle at 92% 20%,
            rgba(45, 183, 176, 0.22),
            transparent 21rem
        ),
        rgba(255, 255, 255, 0.06);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.22);
}

.community-panel::before {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 15px
        );
    content: "";
    pointer-events: none;
}

.community-panel-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.community-panel h2 {
    color: var(--white);
}

.community-panel p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
}

.community-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem 1.2rem;
}

.community-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 850;
    text-decoration: none;
}

.community-text-link:hover {
    color: var(--white);
}

.community-text-link span {
    transition: transform var(--transition-standard);
}

.community-text-link:hover span {
    transform: translateX(5px);
}

.community-panel-mark {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(230px, 100%);
    aspect-ratio: 1;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    place-content: center;
    text-align: center;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.035)
        );
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.18);
}

.community-panel-mark::before {
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    content: "";
    animation: community-ring 24s linear infinite;
}

.community-panel-mark span {
    color: var(--white);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.community-panel-mark small {
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@keyframes community-ring {
    to {
        transform: rotate(360deg);
    }
}

.resource-section {
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(45, 183, 176, 0.08),
            transparent 22rem
        ),
        var(--gray-50);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.resource-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.resource-card-label {
    width: fit-content;
    margin-bottom: 1.1rem;
    padding: 0.38rem 0.65rem;
    border-radius: var(--radius-pill);
    color: var(--orange-600);
    background: rgba(241, 120, 34, 0.1);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.resource-card h3 {
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.resource-card p {
    color: var(--text-soft);
}

.resource-card > a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    gap: 0.45rem;
    color: var(--navy-800);
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
}

.resource-card > a span {
    transition: transform var(--transition-standard);
}

.resource-card > a:hover span {
    transform: translateX(5px);
}

@media (max-width: 1080px) {
    .featured-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .home-hero {
        min-height: 690px;
        background-position: 64% center;
    }

    .home-hero::after {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                90deg,
                rgba(7, 29, 47, 0.94),
                rgba(7, 29, 47, 0.68)
            );
        content: "";
    }

    .home-hero-shell {
        z-index: 4;
    }

    .featured-layout {
        grid-template-columns: 1fr;
    }

    .featured-card {
        min-height: 0;
    }

    .latest-stack {
        grid-template-rows: none;
    }

    .latest-card {
        grid-template-columns: 150px minmax(0, 1fr);
        min-height: 150px;
    }

    .community-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .community-panel-mark {
        width: 180px;
        margin-right: auto;
        margin-left: 0;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .home-hero {
        min-height: 650px;
        background-position: 68% center;
    }

    .home-hero h1 {
        font-size: clamp(2.75rem, 14vw, 4.4rem);
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero-actions .button,
    .home-hero-actions .button-secondary {
        width: 100%;
    }

    .home-hero-community {
        margin-top: 1.4rem;
    }

    .featured-card-image {
        min-height: 250px;
    }

    .latest-card {
        grid-template-columns: 110px minmax(0, 1fr);
        min-height: 132px;
    }

    .latest-card-content {
        padding: 0.85rem;
    }

    .latest-card h3 {
        font-size: 1rem;
    }

    .latest-card .meta span:last-child {
        display: none;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 240px;
    }

    .community-panel {
        padding: 1.5rem;
    }

    .community-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .community-actions .button {
        width: 100%;
    }

    .community-panel-mark {
        width: 145px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-panel-mark::before {
        animation: none;
    }
}