:root {
    --page: #0f1115;
    --surface: #171b22;
    --surface-strong: #222936;
    --line: rgba(255, 255, 255, 0.12);
    --text: #f7f4ed;
    --muted: #c0c4cc;
    --accent: #45d6b0;
    --accent-strong: #26b18f;
    --warm: #ffbd6d;
    --rose: #ee6f7b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(69, 214, 176, 0.08), transparent 30rem),
        linear-gradient(180deg, #141923 0%, var(--page) 44%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.98rem;
    line-height: 1.62;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem max(1rem, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 17, 21, 0.88);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    color: #101113;
    box-shadow: 0 12px 40px rgba(69, 214, 176, 0.18);
}

.site-nav {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(23, 27, 34, 0.82);
}

.nav-link {
    min-height: 2.25rem;
    border: 0;
    border-radius: 6px;
    padding: 0.48rem 0.82rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 780;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text);
    outline: none;
    background: rgba(255, 255, 255, 0.07);
}

.nav-link.active {
    background: var(--text);
    color: var(--page);
}

main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.3rem 0 4rem;
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(680px, calc(100vh - 76px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.editorial-hero {
    margin-bottom: 1rem;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.015);
    transition: transform 700ms ease, filter 700ms ease;
}

.hero:hover .hero-media img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.055);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 17, 21, 0.94) 0%, rgba(15, 17, 21, 0.70) 48%, rgba(15, 17, 21, 0.20) 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: clamp(1.4rem, 5vw, 4rem);
}

.page-hero {
    display: grid;
    gap: 0.9rem;
    max-width: 920px;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.compact-hero {
    max-width: 980px;
}

.services-hero {
    max-width: 1080px;
}

.eyebrow,
.tag {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 13ch;
    margin-bottom: 1.3rem;
    font-size: clamp(2.45rem, 5.9vw, 5.15rem);
    line-height: 0.98;
}

.page-hero h1,
.post-header h1 {
    max-width: 13ch;
}

h2 {
    max-width: 860px;
    margin-bottom: 0;
    font-size: clamp(1.75rem, 3.1vw, 2.9rem);
    line-height: 1.05;
}

h3 {
    margin-bottom: 0.7rem;
    font-size: 1.08rem;
    line-height: 1.25;
}

.hero-text,
.section-heading p,
.page-hero p,
.post-header p {
    max-width: 700px;
    color: var(--muted);
    font-size: 1rem;
}

.hero-text {
    margin-bottom: 2rem;
    font-size: 1.04rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.68rem 1rem;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    font-size: 0.94rem;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.button.primary {
    background: var(--accent);
    color: #0c1512;
}

.button.primary:hover,
.button.primary:focus-visible {
    background: var(--accent-strong);
}

.button.secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.notice {
    margin: 1rem 0 2.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(69, 214, 176, 0.26);
    border-radius: 8px;
    background: rgba(69, 214, 176, 0.08);
    color: var(--muted);
}

.notice strong {
    color: var(--text);
}

.section-shell {
    padding: 1.7rem 0;
}

.section-heading {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.split-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1rem;
}

.feature-story,
.story-card,
.topic-card,
.product-card,
.service-panel,
.process-grid article,
.article-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 52px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.feature-story a,
.story-card a {
    display: block;
    height: 100%;
}

.feature-story img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    transition: transform 500ms ease, filter 500ms ease;
}

.story-content,
.story-card,
.topic-card,
.product-card,
.process-grid article {
    padding: 1.25rem;
}

.story-stack {
    display: grid;
    gap: 1rem;
}

.story-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin: -1.25rem -1.25rem 1rem;
    max-width: calc(100% + 2.5rem);
    transition: transform 500ms ease, filter 500ms ease;
}

.feature-story:hover img,
.story-card:hover img,
.article-row:hover img,
.product-card:hover img,
.service-panel:hover img,
.post-header:hover img {
    filter: saturate(1.08) contrast(1.05);
    transform: scale(1.045);
}

.feature-story,
.story-card,
.topic-card,
.product-card,
.service-panel,
.article-row {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-story:hover,
.story-card:hover,
.topic-card:hover,
.product-card:hover,
.service-panel:hover,
.article-row:hover {
    border-color: rgba(69, 214, 176, 0.32);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
    transform: translateY(-3px);
}

.topic-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.topic-card {
    min-height: 220px;
    padding: 1.25rem;
}

.topic-card span,
.process-grid span {
    color: var(--warm);
    font-weight: 900;
}

.text-link {
    color: var(--warm);
    font-weight: 900;
}

.article-list {
    display: grid;
    gap: 1rem;
}

.article-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
}

.article-row img {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 500ms ease, filter 500ms ease;
}

.services-grid {
    display: grid;
    gap: 1rem;
}

.service-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    padding: 1rem;
}

.service-panel img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 500ms ease, filter 500ms ease;
}

.check-list {
    display: grid;
    gap: 0.55rem;
    margin: 1.2rem 0 1.5rem;
    padding: 0;
    color: var(--muted);
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.55rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
}

.coverage-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin: 1rem 0 2rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.coverage-strip strong {
    color: var(--text);
}

.map-panel {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.map-panel iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.22) contrast(1.05);
}

.post {
    max-width: 920px;
    margin: 0 auto;
}

.post-header {
    display: grid;
    gap: 0.8rem;
    padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
}

.post-header img {
    width: 100%;
    max-height: 520px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: transform 500ms ease, filter 500ms ease;
}

.post-body {
    display: grid;
    gap: 1rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.post-body h2 {
    margin-top: 1.2rem;
    color: var(--text);
    font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.product-callout {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1.2rem;
    border: 1px solid rgba(69, 214, 176, 0.26);
    border-radius: 8px;
    background: rgba(69, 214, 176, 0.08);
}

.product-callout h2 {
    flex-basis: 100%;
    margin: 0;
}

.affiliate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.affiliate-link {
    position: relative;
}

.affiliate-link.unavailable {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(247, 244, 237, 0.6);
    cursor: not-allowed;
}

.affiliate-link.unavailable::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    z-index: 2;
    width: max-content;
    max-width: min(280px, 80vw);
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0d1016;
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.affiliate-link.unavailable:hover::after,
.affiliate-link.unavailable:focus-visible::after,
.affiliate-link.unavailable.show-tooltip::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 980px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        padding: 0.85rem 1rem;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
    }

    .nav-link {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }

    .hero {
        min-height: 560px;
    }

    .hero-media::after {
        background: linear-gradient(180deg, rgba(15, 17, 21, 0.32), rgba(15, 17, 21, 0.94));
    }

    h1 {
        max-width: 13ch;
    }

    .featured-grid,
    .service-panel,
    .split-heading,
    .article-row {
        grid-template-columns: 1fr;
    }

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

    .article-row img,
    .service-panel img {
        height: 240px;
    }
}

@media (max-width: 620px) {
    main,
    .site-footer {
        width: min(100% - 1rem, 1180px);
    }

    .brand {
        font-size: 0.95rem;
    }

    .brand-text {
        max-width: 10rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero-copy {
        padding: 1rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .feature-story img {
        height: 260px;
    }

    .topic-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .map-panel {
        min-height: 320px;
    }

    .affiliate-actions,
    .affiliate-actions .button {
        width: 100%;
    }

    .affiliate-link.unavailable::after {
        position: static;
        display: block;
        width: 100%;
        max-width: none;
        margin-top: 0.45rem;
        opacity: 1;
        transform: none;
        background: transparent;
        border-color: rgba(255, 255, 255, 0.12);
        color: var(--muted);
    }

    .site-footer {
        flex-direction: column;
    }
}
