:root {
    --red-900: #7a1c15;
    --red-800: #981f17;
    --red-700: #b42318;
    --red-600: #d13a2d;
    --red-100: #fee4e2;
    --red-50: #fff4f2;
    --ink-950: #171717;
    --ink-800: #292929;
    --ink-700: #404040;
    --ink-600: #575757;
    --ink-500: #737373;
    --line: #e5e2de;
    --surface: #ffffff;
    --surface-soft: #f7f5f2;
    --surface-dark: #1f1c1b;
    --shadow-sm: 0 10px 30px rgba(41, 27, 22, .08);
    --shadow-lg: 0 28px 80px rgba(67, 29, 20, .16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-800);
    background: var(--surface);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

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

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

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: var(--red-700);
    border-radius: 8px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(229, 226, 222, .78);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
}

.brand-mark rect {
    fill: var(--red-700);
}

.brand-mark path {
    fill: none;
    stroke: #fff;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    color: var(--ink-950);
    font-size: 1rem;
    letter-spacing: .08em;
}

.brand-text small {
    margin-top: 5px;
    color: var(--ink-500);
    font-size: .69rem;
    letter-spacing: .02em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-nav a {
    color: var(--ink-700);
    font-size: .94rem;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--red-700);
}

.primary-nav .nav-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    background: var(--red-700);
    border-radius: 999px;
}

.primary-nav .nav-portal:hover,
.primary-nav .nav-portal:focus-visible {
    color: #fff;
    background: var(--red-800);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink-800);
    border-radius: 10px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 76px;
    background:
        radial-gradient(circle at 83% 12%, rgba(209, 58, 45, .16), transparent 28%),
        radial-gradient(circle at 70% 72%, rgba(180, 35, 24, .08), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fffaf8 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -45% 35%;
    height: 520px;
    background: repeating-linear-gradient(
        -18deg,
        transparent 0 24px,
        rgba(180, 35, 24, .035) 24px 25px
    );
    transform: rotate(-3deg);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 54px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--red-700);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.approach-copy h2,
.contact-card h2 {
    margin: 0;
    color: var(--ink-950);
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.6rem, 5vw, 4.65rem);
}

.hero-lead {
    max-width: 690px;
    margin: 26px 0 0;
    color: var(--ink-600);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.hero-actions,
.card-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-actions {
    margin-top: 34px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

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

.button-primary {
    color: #fff;
    background: var(--red-700);
    box-shadow: 0 12px 28px rgba(180, 35, 24, .22);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--red-800);
    box-shadow: 0 15px 34px rgba(180, 35, 24, .28);
}

.button-secondary {
    color: var(--ink-800);
    background: #fff;
    border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: #c9c2bc;
    box-shadow: var(--shadow-sm);
}

.button-light {
    color: var(--red-800);
    background: #fff;
}

.button-outline-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .48);
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
    background: rgba(255, 255, 255, .08);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    color: var(--ink-600);
    font-size: .9rem;
    font-weight: 650;
}

.hero-points span {
    position: relative;
    padding-left: 20px;
}

.hero-points span::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    background: var(--red-600);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--red-100);
}

.hero-visual {
    position: relative;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 12% 8% -4% 12%;
    z-index: -1;
    background: rgba(180, 35, 24, .14);
    filter: blur(60px);
    border-radius: 50%;
}

.hero-visual img {
    width: 100%;
    filter: drop-shadow(0 32px 38px rgba(45, 30, 25, .17));
}

.trust-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 28px;
    border-right: 1px solid var(--line);
}

.trust-grid div:first-child {
    border-left: 1px solid var(--line);
}

.trust-grid strong {
    color: var(--ink-950);
    font-size: 1rem;
}

.trust-grid span {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: .84rem;
}

.section {
    padding: 96px 0;
}

.section-soft {
    background: var(--surface-soft);
}

.section-heading {
    max-width: 790px;
    margin-bottom: 46px;
}

.section-heading.compact {
    margin-bottom: 38px;
}

.section-heading h2,
.approach-copy h2,
.contact-card h2 {
    font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.section-heading > p:last-child,
.approach-copy > p {
    max-width: 700px;
    margin: 20px 0 0;
    color: var(--ink-600);
    font-size: 1.05rem;
}

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

.product-card {
    position: relative;
    min-height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 7px 26px rgba(39, 31, 27, .045);
}

.product-card.featured {
    border-color: rgba(180, 35, 24, .26);
    box-shadow: var(--shadow-sm);
}

.product-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 23px;
    color: var(--red-700);
    background: var(--red-50);
    border-radius: 15px;
}

.product-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-tag {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--red-800);
    background: var(--red-50);
    border: 1px solid var(--red-100);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.product-tag.neutral {
    color: var(--ink-600);
    background: #f5f5f4;
    border-color: #e7e5e4;
}

.product-card h3 {
    margin: 17px 0 0;
    color: var(--ink-950);
    font-size: 1.55rem;
    line-height: 1.2;
}

.product-subtitle {
    margin: 7px 0 15px;
    color: var(--red-700);
    font-weight: 700;
}

.product-card > p:not(.product-subtitle) {
    color: var(--ink-600);
}

.feature-list {
    display: grid;
    gap: 9px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink-700);
    font-size: .92rem;
}

.feature-list li {
    position: relative;
    padding-left: 23px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red-700);
    font-weight: 900;
}

.card-actions {
    margin-top: 28px;
}

.text-link {
    color: var(--red-700);
    font-size: .94rem;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--red-900);
    text-decoration: underline;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.solution-grid article {
    min-height: 260px;
    padding: 30px;
    border-right: 1px solid var(--line);
}

.solution-grid article:last-child {
    border-right: 0;
}

.step-number {
    color: var(--red-600);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.solution-grid h3 {
    margin: 54px 0 12px;
    color: var(--ink-950);
    font-size: 1.25rem;
}

.solution-grid p {
    margin: 0;
    color: var(--ink-600);
    font-size: .94rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr .82fr;
    align-items: stretch;
    gap: 58px;
}

.approach-copy {
    padding: 18px 0;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin-top: 30px;
}

.check-grid span {
    position: relative;
    padding: 13px 13px 13px 42px;
    color: var(--ink-700);
    background: var(--surface-soft);
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 650;
}

.check-grid span::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 12px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--red-700);
    border-radius: 50%;
    font-size: .72rem;
}

.portal-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 48%),
        var(--red-800);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.portal-kicker {
    color: #ffd8d3;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-card h3 {
    margin: 16px 0 12px;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.portal-card p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.portal-card .button {
    align-self: flex-start;
    margin-top: 28px;
}

.portal-card small {
    margin-top: 17px;
    color: rgba(255, 255, 255, .63);
}

.contact-section {
    padding-top: 24px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 45px;
    padding: 54px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .12), transparent 25%),
        var(--surface-dark);
    border-radius: var(--radius-lg);
}

.eyebrow.light {
    color: #ffb9b1;
}

.contact-card h2 {
    max-width: 800px;
    color: #fff;
}

.contact-card p {
    max-width: 700px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .68);
}

.contact-actions {
    justify-content: flex-end;
}

.site-footer {
    padding: 42px 0;
    color: rgba(255, 255, 255, .72);
    background: #141211;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr auto;
    align-items: center;
    gap: 32px;
}

.footer-grid strong {
    color: #fff;
    letter-spacing: .08em;
}

.footer-grid p {
    margin: 7px 0 0;
    font-size: .88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    font-size: .88rem;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
}

.copyright {
    margin: 0 !important;
    white-space: nowrap;
}

:focus-visible {
    outline: 3px solid rgba(209, 58, 45, .35);
    outline-offset: 3px;
}

@media (max-width: 1020px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-visual {
        max-width: 760px;
        margin-inline: auto;
    }

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

    .product-card:first-child {
        grid-column: 1 / -1;
    }

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

    .solution-grid article:nth-child(2) {
        border-right: 0;
    }

    .solution-grid article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .copyright {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .nav-wrap {
        min-height: 68px;
    }

    .brand-text small {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        inset: 69px 0 auto;
        display: grid;
        gap: 0;
        padding: 12px 20px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(25, 20, 18, .12);
        transform: translateY(-135%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s ease;
    }

    .primary-nav.open {
        transform: translateY(0);
        visibility: visible;
    }

    .primary-nav a {
        padding: 13px 4px;
        border-bottom: 1px solid #f0eeeb;
    }

    .primary-nav .nav-portal {
        justify-content: center;
        margin-top: 12px;
        border-bottom: 0;
    }

    .hero {
        padding: 64px 0 54px;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid div,
    .trust-grid div:first-child {
        min-height: 92px;
        padding: 18px;
        border-left: 0;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .trust-grid div:nth-child(even) {
        border-right: 0;
    }

    .trust-grid div:nth-child(n+3) {
        border-bottom: 0;
    }

    .section {
        padding: 72px 0;
    }

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

    .product-card:first-child {
        grid-column: auto;
    }

    .contact-card {
        grid-template-columns: 1fr;
        padding: 38px 28px;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .copyright {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

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

    .hero-points {
        display: grid;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid div,
    .trust-grid div:first-child,
    .trust-grid div:nth-child(n+3) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-grid div:last-child {
        border-bottom: 0;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .solution-grid article,
    .solution-grid article:nth-child(2),
    .solution-grid article:nth-child(-n+2) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .solution-grid article:last-child {
        border-bottom: 0;
    }

    .solution-grid h3 {
        margin-top: 28px;
    }

    .portal-card {
        padding: 34px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
