*, *::before, *::after { box-sizing: border-box; }
:root {
    color-scheme: light;
    --ink: #102438;
    --muted: #495e6e;
    --teal: #55e2ce;
    --green: #006c61;
    --line: #dbe7e7;
    --paper: #f8fbfa;
}
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #11887d; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 0; z-index: 5; background: white; padding: 12px; transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 12px 30px; min-height: 86px; padding-block: 12px; }
.brand { display: flex; }
.brand img { display: block; width: 148px; height: auto; }
.header-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 23px; font-size: .88rem; font-weight: 650; }
.header-links a, .back-link, .card-link, .text-link, .footer-inner a { text-decoration: none; }
.header-links a:hover, .back-link:hover, .card-link:hover, .text-link:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.whatsapp { display: grid; place-items: center; color: var(--green); width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #102438; color: #fff; }
.hero-content { padding-block: clamp(88px, 12vw, 168px); }
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow i { display: inline-block; width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.hero .eyebrow { color: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 7.4vw, 6rem); margin: 18px 0 24px; max-width: 960px; }
h1 em { color: var(--teal); font-style: normal; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 28px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
.hero-content > p { max-width: 490px; color: #dbe9ef; font-size: clamp(1.06rem, 2vw, 1.25rem); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; padding: 12px 19px; border: 0; border-radius: 8px; background: #f2c879; color: #172238; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: #ffdfa4; }
.text-link { font-weight: 650; }
.floating-book { position: fixed; top: 14px; right: max(14px, calc((100vw - 1120px) / 2)); z-index: 3; box-shadow: 0 6px 24px #1024383d; }
.back-to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 3;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 6px 24px #10243855;
}
.services-section { padding-block: clamp(52px, 8vw, 100px); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(21px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.service-card:focus-within, .service-card:hover { border-color: #79b9b0; }
.service-card h3 a { text-decoration: none; }
.service-card p, .lead, .closing p { color: var(--muted); }
.card-link { margin-top: auto; color: var(--green); font-weight: 750; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.closing { background: #e3f4ef; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 30px; padding-block: 42px; }
.closing-inner h2, .closing-inner p { margin-bottom: 0; }
.closing-inner p { margin-top: 12px; }
.site-footer { background: #102438; color: #dbe9ef; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-block: 24px; font-size: .88rem; }
.footer-inner span { margin-right: auto; }
.intro { padding-block: clamp(38px, 7vw, 90px); background: #e3f4ef; }
.back-link { display: inline-block; color: var(--green); font-weight: 700; margin-bottom: 22px; }
.lead { max-width: 660px; font-size: 1.14rem; }
.benefits { margin-top: 60px; }
.benefits ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; padding-left: 20px; }
.benefits li::marker { color: var(--green); }
.contact-page { min-height: 100vh; display: flex; flex-direction: column; }
.contact-page main { flex: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 7vw, 92px); align-items: start; padding-block: clamp(34px, 7vw, 90px); }
.contact-intro h1 { font-size: clamp(2.65rem, 6.1vw, 5rem); }
.inquiry-form { display: grid; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 36px); }
.inquiry-form label { font-weight: 700; }
.inquiry-form input, .inquiry-form textarea { width: 100%; border-radius: 7px; border: 1px solid #a9bec1; padding: 10px 12px; color: inherit; font: inherit; background: var(--paper); }
.inquiry-form input { min-height: 46px; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form :is(input, textarea) + label { margin-top: 10px; }
.inquiry-form .button { margin-top: 12px; justify-self: start; }
.notice, .field-error { margin: 0; font-size: .91rem; }
.notice { background: #e3f4ef; color: #005a4f; padding: 10px 14px; border-radius: 7px; }
.field-error { color: #a3262c; }
@media (max-width: 740px) {
    .wrap { width: calc(100% - 36px); }
    .site-header { flex-wrap: wrap; }
    .service-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .header-links { gap: 3px 12px; font-size: .8rem; }
    .benefits ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.home-page { isolation: isolate; background: #102438; }
.home-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #102438 url('hero.jpg') center / cover no-repeat;
}
.home-backdrop video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, #593a647d, #293f7970);
}
.home-page .site-header {
    position: absolute;
    z-index: 2;
    top: 0;
    inset-inline: 0;
    justify-content: flex-end;
    min-height: 64px;
    color: #fff;
}
.home-page .site-header .brand { display: none; }
.home-page .whatsapp { color: #8df0e3; border-color: #ffffff55; }
.home-page .hero {
    background: transparent;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: 85px 100px;
}
.home-page .hero-content { padding-block: 32px; }
.hero-brand { display: block; width: min(380px, 100%); height: auto; margin-inline: auto; }
.home-page .hero h1 { margin: 0 auto 32px; }
.home-page #hero-book { min-width: min(252px, 100%); }
.hero-scroll {
    position: absolute;
    bottom: 48px;
    padding: 8px 14px;
    border: 1px solid #ffffff66;
    border-radius: 7px;
    font-size: .88rem;
    text-decoration: none;
}
.hero-scroll::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 49px;
    background: #ffffff66;
}
.hero-scroll:hover { background: #ffffff21; }
.home-about {
    width: var(--home-panel-width);
    margin-inline: auto;
    padding-block: clamp(60px, 11vw, 138px);
    text-align: center;
    border-radius: 6px;
    background: var(--home-panel-background);
    color: #fff;
}
.home-about h2 { max-width: 660px; margin: 0 auto 20px; }
.home-about p { max-width: 570px; margin: 0 auto; color: #e1e1eb; font-size: 1.1rem; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.home-page #services {
    padding: clamp(34px, 7vw, 92px) 0;
}
.home-page {
    --home-panel-width: min(1012px, 81%);
    --home-panel-background: #202431bf;
}
.highlight-board {
    width: var(--home-panel-width);
    margin-inline: auto;
    border-radius: 6px;
    overflow: hidden;
}
.service-highlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.highlight-copy, .highlight-visual {
    display: grid;
    place-content: center;
    justify-items: center;
    min-width: 0;
    min-height: clamp(250px, 30vw, 380px);
}
.highlight-visual { background: linear-gradient(45deg, #aac9bc, #52638c); }
.service-highlight:nth-child(even) .highlight-visual {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(45deg, #415888, #89657f);
}
.service-highlight:last-child .highlight-visual { background: linear-gradient(45deg, #435c8f, #8c627c); }
.highlight-visual:has(.software-slides) { position: relative; }
.software-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.software-slide-track {
    display: grid;
    grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
    width: 200%;
    height: 200%;
}
.software-slide-track img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.software-slide-track img:nth-child(3) { grid-area: 2 / 2; }
@media (prefers-reduced-motion: no-preference) {
    .software-slide-track { animation: software-slide 5.4s ease-in-out infinite; }
}
@keyframes software-slide {
    0%, 18.52% { transform: translate(0, 0); }
    33.33%, 51.85% { transform: translate(-50%, 0); }
    66.67%, 85.19% { transform: translate(-50%, -50%); }
    100% { transform: translate(0, -50%); }
}
.highlight-visual:has(.website-preview, .preview-data) {
    grid-template-columns: minmax(0, 1fr);
}
.website-preview {
    position: relative;
    width: min(88%, 450px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #202431;
    box-shadow: 0 8px 20px #141c3a45;
}
.website-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}
.website-preview img:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .website-preview img { animation: website-preview 4.2s linear infinite -0.4s; }
    .website-preview img:nth-child(2) { animation-delay: 1s; }
    .website-preview img:nth-child(3) { animation-delay: 2.4s; }
}
@keyframes website-preview {
    0%, 42.86%, 100% { opacity: 0; }
    9.52%, 33.33% { opacity: 1; }
}
.preview-data {
    position: relative;
    width: min(89%, 450px);
    aspect-ratio: 4 / 3;
}
.preview-data img {
    position: absolute;
    width: 49%;
    height: 47%;
    object-fit: contain;
    background: #f3f6fa;
    border: 2px solid #fff;
    border-radius: 6px;
    box-shadow: 0 8px 20px #141c3a70;
}
.preview-data img:nth-child(1) { top: 2%; left: 0; }
.preview-data img:nth-child(2) { top: 27%; left: 25%; }
.preview-data img:nth-child(3) { bottom: 2%; right: 0; }
@media (prefers-reduced-motion: no-preference) {
    .preview-data.is-revealing img:nth-child(2) { animation: data-card-enter 400ms ease-out 1s both; }
    .preview-data.is-revealing img:nth-child(3) { animation: data-card-enter 400ms ease-out 2s both; }
}
@keyframes data-card-enter {
    from { opacity: 0; transform: translate(18px, 12px); }
    to { opacity: 1; transform: translate(0, 0); }
}

.highlight-copy {
    position: relative;
    padding: 30px clamp(24px, 5vw, 72px);
    background: var(--home-panel-background);
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
}
.highlight-copy h3 { margin: 0 0 20px; font-size: clamp(1.5rem, 2.75vw, 2.125rem); letter-spacing: -.035em; }
.highlight-copy h3 a { text-decoration: none; }
.highlight-copy h3 a::after { content: ""; position: absolute; inset: 0; }
.highlight-copy h3 a:hover, .highlight-copy h3 a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.highlight-copy p { margin: 0; color: #e1e1eb; line-height: 1.7; }

.home-page .closing {
    width: var(--home-panel-width);
    margin-inline: auto;
    border-radius: 6px;
    background: var(--home-panel-background);
    color: #fff;
}
.home-page .closing-inner { flex-direction: column; text-align: center; padding-block: clamp(54px, 8vw, 108px); }
.home-page .closing p { color: #dbe9ef; }
.home-page .site-footer { background: transparent; }
@media (max-width: 640px) {
    .home-page { --home-panel-width: calc(100% - 36px); }
    .home-page .site-header { justify-content: center; }
    .service-highlight { grid-template-columns: 1fr; }
    .service-highlight:nth-child(even) .highlight-visual { grid-column: auto; grid-row: auto; }
    .highlight-visual { min-height: 235px; }
    .highlight-copy { min-height: 180px; padding-block: 28px; }
}
