:root {
    --red: #e9403e;
    --red-dark: #c82e2c;
    --red-deep: #a42422;
    --logo-gray: #6d6e71;
    --ink: #202225;
    --muted: #60646b;
    --paper: #ffffff;
    --soft: #f5f5f2;
    --soft-red: #fff3f2;
    --line: #dcdeda;
    --dark: #242629;
    --dark-soft: #303338;
    --radius: 6px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body,
button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

a {
    color: var(--red-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--red-deep);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

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

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    margin-bottom: 28px;
    font-size: clamp(3.25rem, 7vw, 6.2rem);
    font-weight: 760;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2.15rem, 4vw, 3.65rem);
    font-weight: 730;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
    font-weight: 700;
}

.skip-link {
    position: absolute;
    top: 12px;
    left: -9999px;
    z-index: 100;
    background: var(--ink);
    color: #ffffff;
    padding: 10px 14px;
}

.skip-link:focus {
    left: 16px;
}

.section-inner,
.header-inner,
.footer-inner {
    width: min(var(--content-width), calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: static;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.header-inner {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: min(245px, 52vw);
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-nav a {
    position: relative;
    color: var(--ink);
    font-size: 0.91rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--red-dark);
}

.site-nav a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 3px;
    background: var(--red);
    content: "";
}

.nav-toggle {
    display: none;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    padding: 9px 13px;
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--red-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #ff9795;
}

.lead {
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(1.1rem, 1.8vw, 1.32rem);
    line-height: 1.65;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    padding: 10px 19px;
    font-weight: 750;
    text-decoration: none;
}

.button-primary {
    border-color: var(--red-dark);
    background: var(--red-dark);
    color: #ffffff;
}

.button-primary:hover {
    border-color: var(--red-deep);
    background: var(--red-deep);
    color: #ffffff;
}

.button-secondary {
    background: transparent;
    color: var(--ink);
}

.button-secondary:hover {
    border-color: var(--red);
    color: var(--red-dark);
}

.text-link {
    font-weight: 750;
}

.hero {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
    min-height: 680px;
    padding: 80px 0;
}

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

.hero-copy h1 {
    max-width: 11ch;
}

.hero-accent {
    color: var(--red);
}

.system-card {
    position: relative;
    border: 1px solid var(--line);
    border-top: 6px solid var(--red);
    border-radius: var(--radius);
    background: var(--soft);
    padding: 30px;
}

.system-card::before {
    display: block;
    width: 52px;
    height: 4px;
    margin-bottom: 30px;
    background: var(--logo-gray);
    content: "";
}

.system-card-title {
    margin-bottom: 24px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.system-list {
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.system-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    align-items: center;
    background: var(--paper);
    padding: 19px;
}

.system-code {
    color: var(--red-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.system-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 1rem;
}

.system-item small {
    color: var(--muted);
    font-size: 0.83rem;
}

.technology-bar {
    background: var(--soft);
}

.technology-list {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    align-items: stretch;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.technology-list > * {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    padding: 18px;
}

.technology-list > *:last-child {
    border-right: 0;
}

.technology-label {
    justify-content: flex-start;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.technology-name {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.section {
    padding: 104px 0;
}

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

.section-heading {
    max-width: 780px;
    margin-bottom: 54px;
}

.case-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(36px, 7vw, 100px);
}

.case-index {
    color: var(--red);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

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

.case-copy p {
    color: var(--muted);
}

.case-copy .lead {
    color: var(--ink);
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 42px 0;
    border: 1px solid var(--line);
    background: var(--line);
}

.fact {
    background: var(--paper);
    padding: 24px;
}

.fact strong,
.fact span {
    display: block;
}

.fact strong {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.fact span {
    color: var(--muted);
    font-size: 0.89rem;
}

.section-dark {
    background: var(--dark);
    color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark .lead {
    color: #ffffff;
}

.section-dark p {
    color: #c8cbd0;
}

.section-dark a {
    color: #ff9d9b;
}

.section-dark a:hover {
    color: #ffffff;
}

.aceql-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: start;
}

.feature-list {
    display: grid;
    gap: 1px;
    border: 1px solid #44474d;
    background: #44474d;
}

.feature-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    background: var(--dark-soft);
    padding: 23px;
}

.feature-number {
    color: #ff8b89;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.feature-item strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.93rem;
}

.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    border: 1px solid var(--line);
    border-left: 7px solid var(--red);
    padding: clamp(30px, 5vw, 58px);
}

.cta-panel h2 {
    max-width: 760px;
    margin-bottom: 12px;
}

.cta-panel p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
}

.page-hero {
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}

.page-hero .section-inner {
    padding-top: 94px;
    padding-bottom: 88px;
}

.page-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.3rem, 7vw, 6.4rem);
}

.page-hero .lead {
    max-width: 740px;
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.service-card {
    background: var(--paper);
    padding: clamp(26px, 4vw, 42px);
}

.service-tag {
    display: inline-block;
    margin-bottom: 36px;
    border: 1px solid var(--red);
    border-radius: 999px;
    color: var(--red-dark);
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.service-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(50px, 9vw, 120px);
    align-items: start;
}

.service-detail-copy p {
    color: var(--muted);
}

.language-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.language-list span {
    border-left: 4px solid var(--red);
    background: var(--soft);
    padding: 15px 18px;
    font-weight: 800;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(50px, 9vw, 120px);
    align-items: start;
}

.contact-card {
    border-top: 6px solid var(--red);
    background: var(--soft);
    padding: clamp(30px, 5vw, 52px);
}

.contact-card address {
    margin-bottom: 34px;
    font-size: 1.12rem;
    font-style: normal;
    line-height: 1.75;
}

.contact-method {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.contact-method:last-child {
    padding-bottom: 0;
}

.contact-method span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-method a {
    font-weight: 750;
}

.map-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 450px;
    border: 0;
}

.contact-map {
    margin-top: clamp(48px, 7vw, 84px);
}

.contact-map iframe {
    min-height: clamp(420px, 48vw, 600px);
}

.privacy-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 760px);
    gap: clamp(42px, 8vw, 110px);
    align-items: start;
}

.privacy-summary {
    border-top: 5px solid var(--red);
    background: var(--soft);
    padding: 24px;
}

.privacy-summary strong,
.privacy-summary span {
    display: block;
}

.privacy-summary strong {
    margin-bottom: 8px;
}

.privacy-summary span {
    color: var(--muted);
    font-size: 0.88rem;
}

.legal-copy section {
    margin-bottom: 50px;
}

.legal-copy section:last-child {
    margin-bottom: 0;
}

.legal-copy h2 {
    margin-bottom: 16px;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.legal-copy p,
.legal-copy li {
    color: var(--muted);
}

.legal-copy ul {
    padding-left: 22px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--soft);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: end;
    padding-top: 42px;
    padding-bottom: 46px;
}

.footer-identity strong,
.footer-identity span {
    display: block;
}

.footer-identity strong {
    margin-bottom: 5px;
}

.footer-identity span,
.copyright {
    color: var(--muted);
    font-size: 0.83rem;
}

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

.footer-links a {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.copyright {
    margin-bottom: 0;
    text-align: right;
}

@media (max-width: 900px) {
    .hero-grid,
    .aceql-grid,
    .service-detail,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
    }

    .system-card {
        max-width: 620px;
    }

    .fact-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .cta-panel {
        grid-template-columns: 1fr;
    }

    .privacy-layout {
        grid-template-columns: 1fr;
    }

    .privacy-summary {
        max-width: 360px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 840px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
        min-height: 80px;
        padding: 16px 0;
    }

    .brand {
        flex: 1;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        background: var(--paper);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-bottom: 1px solid var(--line);
        padding: 13px 16px;
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    .site-nav a[aria-current="page"]::after {
        top: 0;
        right: auto;
        bottom: 0;
        left: 0;
        width: 4px;
        height: auto;
    }

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

    .technology-label {
        grid-column: 1 / -1;
        justify-content: center;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 600px) {
    .section-inner,
    .header-inner,
    .footer-inner {
        width: min(var(--content-width), calc(100% - 28px));
    }

    h1 {
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

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

    .hero-grid {
        gap: 50px;
        padding: 58px 0;
    }

    .system-card {
        padding: 20px;
    }

    .system-item {
        grid-template-columns: 56px 1fr;
        padding: 16px;
    }

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

    .technology-list > *:nth-child(3) {
        border-right: 0;
    }

    .section {
        padding: 72px 0;
    }

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

    .case-index {
        font-size: 3.8rem;
    }

    .feature-item {
        grid-template-columns: 36px 1fr;
        padding: 18px;
    }

    .page-hero .section-inner {
        padding-top: 66px;
        padding-bottom: 62px;
    }

    .button-row,
    .button {
        width: 100%;
    }

    .language-list {
        grid-template-columns: 1fr;
    }

    .contact-method {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}
