:root {
    --brand: #23606b;
    --brand-dark: #173b43;
    --brand-deep: #0f2930;
    --logo-blue: #15507f;
    --brand-soft: #e7f1ef;
    --brand-pale: #f6f3eb;
    --accent: #b8662f;
    --accent-soft: #f5e5d6;
    --ink: #1c2e31;
    --muted: #66736f;
    --line: #dce3de;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(15, 41, 48, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 41, 48, 0.08);
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --container: 1180px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    color: var(--brand-dark);
    line-height: 1.12;
    margin: 0 0 1rem;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

.container {
    width: min(var(--container), calc(100% - 44px));
    margin: 0 auto;
}

.container.narrow {
    max-width: 850px;
}

.section-pad {
    padding: clamp(64px, 8vw, 112px) 0;
}

.section-pad-sm {
    padding: clamp(52px, 7vw, 86px) 0;
}

.section-muted {
    background: linear-gradient(180deg, var(--brand-pale), #ffffff);
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
}

.lead {
    font-size: clamp(1.1rem, 1.5vw, 1.32rem);
    color: var(--muted);
    max-width: 660px;
}

.small-note {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(220, 227, 222, 0.95);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--logo-blue);
}

.site-logo {
    display: block;
    width: 220px;
    height: auto;
}

.site-logo-fallback {
    box-sizing: content-box;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}

.nav-link {
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-link.is-active {
    color: var(--brand);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 42px;
    height: 42px;
    padding: 9px;
    margin-left: auto;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--brand-dark);
    margin: 5px 0;
    border-radius: 999px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button-primary {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(35, 96, 107, 0.22);
}

.button-primary:hover {
    background: var(--brand-dark);
    color: var(--white);
}

.button-outline {
    border-color: rgba(35, 96, 107, 0.45);
    color: var(--brand);
    background: var(--white);
}

.button-outline:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.button-light {
    background: var(--white);
    color: var(--brand-dark);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.text-link {
    font-weight: 800;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.text-link::after {
    content: "→";
    color: var(--accent);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    min-height: clamp(560px, 70vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url("../img/heropic.jpg") center right / cover no-repeat;
}

.hero-inner {
    width: min(var(--container), calc(100% - 44px));
    padding: clamp(76px, 10vw, 132px) 0 clamp(54px, 8vw, 92px);
}

.hero-copy {
    max-width: 540px;
}

.hero-copy h1 {
    color: var(--brand-dark);
    margin-bottom: 1.4rem;
    font-size: clamp(2.25rem, 3.4vw, 3.85rem);
    line-height: 1.08;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 2rem;
}

/* Sections */
.section-head {
    max-width: 800px;
    margin-bottom: 38px;
}

.section-head.compact {
    margin-bottom: 26px;
}

.section-head p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.1rem;
}

.card-grid {
    display: grid;
    gap: 22px;
}

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

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

.product-card,
.info-card,
.contact-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.product-card {
    padding: 24px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card img {
    height: 170px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 22px;
}

.product-card p {
    color: var(--muted);
}

.product-card a {
    margin-top: auto;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(34px, 7vw, 78px);
}

.split-section > div > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.08rem;
}

.process-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(145deg, #ffffff, var(--brand-pale));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.process-step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    min-height: 170px;
}

.process-step img {
    width: 80%;
    max-width: 150px;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0 auto 16px;
}

.process-step p {
    color: var(--muted);
    margin: 0;
}

.process-arrow {
    align-self: center;
    color: var(--brand);
    font-size: 2rem;
    font-weight: 900;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.feature-strip > div {
    padding: 30px 24px;
    border-right: 1px solid var(--line);
}

.feature-strip > div:last-child {
    border-right: 0;
}

.feature-icon {
    width: 80%;
    max-width: 150px;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0 auto 16px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.benefit-grid > div {
    padding: 28px 22px;
    border-right: 1px solid var(--line);
}

.benefit-grid > div:last-child {
    border-right: 0;
}

.benefit-grid h3 {
    font-size: 1.05rem;
}

.benefit-grid p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.cta-section {
    padding-top: 0;
}

.cta-box {
    background:
        linear-gradient(90deg, rgba(15, 41, 48, 0.98), rgba(35, 96, 107, 0.94)),
        linear-gradient(135deg, rgba(184, 102, 47, 0.32), transparent 48%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 58px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.cta-box::after {
    content: "";
    position: absolute;
    right: 40px;
    bottom: 0;
    width: 320px;
    height: 110px;
    background: linear-gradient(180deg, transparent 0 16%, rgba(7, 38, 63, 0.4) 16% 100%);
    clip-path: polygon(0 100%, 6% 62%, 12% 64%, 16% 38%, 20% 64%, 27% 65%, 31% 32%, 35% 65%, 45% 65%, 48% 50%, 51% 65%, 60% 65%, 65% 45%, 70% 65%, 78% 65%, 80% 28%, 83% 65%, 90% 66%, 93% 52%, 96% 66%, 100% 100%);
    opacity: 0.55;
}

.cta-box h2,
.cta-box p {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-box p {
    max-width: 620px;
    opacity: 0.88;
}

.cta-box .button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

/* Subpages */
.page-hero {
    background: linear-gradient(180deg, var(--brand-pale), #ffffff);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    color: var(--brand-dark);
}

.page-hero p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.16rem;
}

.product-detail-list {
    display: grid;
    gap: 28px;
}

.product-detail {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    padding: clamp(24px, 4vw, 42px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.product-detail img {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
}

.check-list {
    padding: 0;
    margin: 1.1rem 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin: 0.7rem 0;
    color: var(--muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand);
    font-weight: 900;
}

.info-card {
    padding: clamp(24px, 4vw, 38px);
}

.info-card p,
.info-card li {
    color: var(--muted);
}

.emphasis-card {
    background: var(--brand-soft);
    border-color: #cadbd6;
}

.emphasis-card h3 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(28px, 5vw, 62px);
    align-items: start;
}

.contact-form {
    padding: clamp(24px, 4vw, 38px);
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--brand-dark);
    font-weight: 800;
}

.form-message {
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.96rem;
}

.form-message p {
    margin-bottom: 0.45rem;
}

.form-message ul {
    margin: 0;
    padding-left: 1.2rem;
}

.form-message-success {
    color: #17443d;
    background: #e4f3ed;
    border: 1px solid #bdded3;
}

.form-message-error {
    color: #64251a;
    background: #fae9e3;
    border: 1px solid #edc6bb;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(35, 96, 107, 0.18);
    border-color: var(--brand);
}

.legal-content {
    padding-bottom: 30px;
}

.legal-card h2 {
    margin-top: 2rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.legal-card h3 {
    margin-top: 1.45rem;
    font-size: 1.08rem;
}

.legal-card ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.legal-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.legal-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: var(--white);
}

.legal-table th,
.legal-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-table th:last-child,
.legal-table td:last-child {
    border-right: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-brand a {
    display: inline-flex;
    align-items: center;
    color: var(--logo-blue);
}

.footer-brand .site-logo {
    width: 180px;
}

.footer-brand p {
    color: var(--muted);
    margin: 0;
    max-width: 420px;
    font-weight: 600;
    line-height: 1.42;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--brand-dark);
    font-weight: 700;
}

code {
    color: var(--brand-dark);
    background: var(--brand-soft);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 1050px) {
    .brand .site-logo {
        width: 210px;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav.is-open {
        display: grid;
        position: absolute;
        left: 22px;
        right: 22px;
        top: 86px;
        padding: 18px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        gap: 8px;
    }

    .main-nav.is-open .nav-link {
        padding: 12px 10px;
    }

    .split-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

    .benefit-grid > div:nth-child(3n) {
        border-right: 0;
    }

    .benefit-grid > div:nth-child(n+4) {
        border-top: 1px solid var(--line);
    }

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

    .footer-inner,
    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .header-inner {
        min-height: 78px;
    }

    .brand .site-logo {
        width: 185px;
    }

    .main-nav.is-open {
        top: 74px;
        left: 16px;
        right: 16px;
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.86) 48%, rgba(255,255,255,0.1) 100%),
            url("../img/heropic.jpg") center bottom / cover no-repeat;
    }

    .hero-inner {
        padding-top: 56px;
        padding-bottom: 260px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(2.25rem, 10vw, 3.85rem);
    }

    .four-columns,
    .three-columns,
    .benefit-grid,
    .feature-strip,
    .process-card {
        grid-template-columns: 1fr;
    }

    .process-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .feature-strip > div,
    .benefit-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-strip > div:last-child,
    .benefit-grid > div:last-child {
        border-bottom: 0;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail img {
        max-height: 210px;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-inner {
        padding-bottom: 220px;
    }

    .hero-copy h1 {
        font-size: 2.65rem;
    }
}
