:root {
    color-scheme: dark;
    --page: #061f2a;
    --panel: #0c2d3a;
    --panel-light: #103847;
    --line: rgba(177, 216, 220, 0.16);
    --text: #f3faf9;
    --muted: #b2c8cc;
    --accent: #46c651;
    --accent-hover: #63dc6c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.homepage {
    margin: 0;
    min-width: 320px;
    background: var(--page);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

.homepage a:focus-visible {
    outline: 3px solid #a7f5ac;
    outline-offset: 4px;
}

.page-shell {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
}

.site-logo {
    display: inline-flex;
    flex: none;
}

.site-logo img {
    display: block;
    width: min(220px, 100%);
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav a {
    transition: color 180ms ease;
}

.site-nav a:hover {
    color: var(--text);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    align-items: center;
    min-height: 440px;
    overflow: hidden;
    padding: clamp(40px, 7vw, 84px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 86% 30%, rgba(70, 198, 81, 0.19), transparent 36%),
        linear-gradient(135deg, #123a48, #0a2836 72%);
}

.hero::after {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(209, 240, 237, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209, 240, 237, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    pointer-events: none;
}

.hero-content,
.hero-decoration {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-hover);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 4.9vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.hero-intro {
    max-width: 580px;
    margin: 24px 0 30px;
    color: #d0e0e1;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.hero-decoration {
    display: grid;
    place-items: center;
    justify-self: end;
    width: min(100%, 270px);
    aspect-ratio: 1;
    border: 1px solid rgba(127, 225, 135, 0.28);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.hero-decoration::before {
    position: absolute;
    inset: 13%;
    border: 1px solid rgba(127, 225, 135, 0.2);
    border-radius: 50%;
    content: "";
}

.hero-decoration-label {
    position: absolute;
    top: 16%;
    color: var(--muted);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hero-decoration-number {
    color: rgba(127, 225, 135, 0.55);
    font-size: clamp(5.4rem, 11vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.1em;
    line-height: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary,
.homepage .button-primary {
    background: var(--accent);
    color: #062315;
}

.button-primary:hover {
    background: var(--accent-hover);
}

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

.button-secondary:hover,
.button-outline:hover {
    border-color: rgba(167, 245, 172, 0.55);
    background: rgba(167, 245, 172, 0.08);
}

.tools-section {
    padding: 76px 0 94px;
    scroll-margin-top: 24px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2 {
    max-width: 660px;
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 260px;
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 0.95rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
    border-color: rgba(167, 245, 172, 0.43);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

.product-image {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--panel-light);
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.product-category {
    margin: 0 0 7px;
    color: var(--accent-hover);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-content h3 {
    margin: 0 0 10px;
    font-size: 1.42rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.product-content > p:not(.product-category) {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 0.95rem;
}

.product-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.product-actions .button {
    width: 100%;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 0 56px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.site-footer .eyebrow {
    margin-bottom: 5px;
}

.site-footer h2 {
    margin: 0 0 2px;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    letter-spacing: -0.02em;
}

.site-footer p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 180px;
    }

    .hero-decoration-number {
        font-size: 6rem;
    }

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

    .product-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 11px);
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100% - 32px, 520px);
    }

    .site-header {
        padding: 20px 0;
    }

    .site-logo img {
        width: 155px;
    }

    .site-nav {
        gap: 14px;
        font-size: 0.85rem;
    }

    .hero {
        display: block;
        min-height: 0;
        padding: 42px 28px;
        border-radius: 18px;
    }

    .hero-decoration {
        display: none;
    }

    .hero-intro {
        margin: 20px 0 26px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        max-width: none;
        margin-top: 10px;
    }

    .tools-section {
        padding: 56px 0 64px;
    }

    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .product-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: auto;
    }

    .site-footer {
        align-items: stretch;
        flex-direction: column;
        padding-bottom: 42px;
    }
}

@media (max-width: 380px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .hero {
        padding: 36px 22px;
    }

    .product-content {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .homepage *,
    .homepage *::before,
    .homepage *::after {
        transition-duration: 0.01ms !important;
    }
}
