:root {
    --navy: #10243f;
    --navy-soft: #1c3553;
    --blue: #0876df;
    --cyan: #34b9dd;
    --gold: #f5bd2b;
    --ink: #17253a;
    --muted: #5d6b7c;
    --line: #dfe7ef;
    --surface: #f5f8fb;
    --white: #ffffff;
    --radius: 24px;
    --shadow: 0 22px 55px rgba(16, 36, 63, 0.11);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

button, summary { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
    border-radius: 6px;
}

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(223, 231, 239, 0.9); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.brand-icon { display: block; width: 43px; height: 47px; overflow: hidden; }
.brand-icon img { width: 54px; height: 55px; max-width: none; object-fit: contain; transform: translate(-6px, -2px) scale(1.2); transform-origin: center top; }
.desktop-nav { display: flex; align-items: center; gap: 34px; color: var(--navy-soft); font-size: 15px; font-weight: 700; }
.desktop-nav > a:not(.nav-cta):hover { color: var(--blue); }

.nav-cta, .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; font-weight: 800; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.nav-cta { padding: 0 22px; color: var(--white); background: var(--navy); }
.nav-cta:hover, .button:hover { transform: translateY(-2px); }
.mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; padding: 72px 0 82px; background: linear-gradient(145deg, #ffffff 48%, #f2f8fc 100%); }
.hero::after { position: absolute; right: -70px; bottom: -180px; width: 380px; height: 380px; border-radius: 90px; background: var(--gold); content: ""; opacity: 0.9; transform: rotate(38deg); }
.hero-grid { position: relative; z-index: 1; display: grid; align-items: center; grid-template-columns: 1.16fr 0.84fr; gap: 64px; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; color: var(--navy); line-height: 1.12; letter-spacing: -0.045em; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(42px, 4.8vw, 62px); }
h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 50px); }
h3 { font-size: 23px; }
.hero-lead { max-width: 650px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button { padding: 0 26px; }
.button-primary { min-height: 56px; color: var(--white); background: var(--blue); box-shadow: 0 13px 25px rgba(8, 118, 223, 0.24); }
.button-primary:hover { background: #0068ca; box-shadow: 0 16px 30px rgba(8, 118, 223, 0.3); }
.text-link { color: var(--navy); font-size: 15px; font-weight: 800; border-bottom: 1px solid var(--navy); }

.hero-visual { position: relative; min-height: 340px; }
.visual-card { position: absolute; z-index: 3; top: 48px; right: 14px; width: min(330px, 90%); padding: 34px; border: 1px solid rgba(223, 231, 239, 0.85); border-radius: 26px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow); transform: rotate(2deg); }
.visual-label { display: block; margin-bottom: 44px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.visual-card strong { display: block; color: var(--navy); font-size: 42px; line-height: 1; letter-spacing: -0.05em; }
.visual-card p { margin: 14px 0 28px; color: var(--muted); font-size: 15px; }
.visual-lines { display: grid; gap: 9px; }
.visual-lines span { height: 8px; border-radius: 999px; background: #e9f1f7; }
.visual-lines span:nth-child(1) { width: 88%; }
.visual-lines span:nth-child(2) { width: 68%; }
.visual-lines span:nth-child(3) { width: 78%; background: #dff5fa; }
.visual-shape { position: absolute; z-index: 1; border-radius: 30px; transform: rotate(38deg); }
.shape-cyan { top: 0; right: -42px; width: 210px; height: 210px; background: rgba(52, 185, 221, 0.24); }
.shape-gold { right: 190px; bottom: 3px; width: 120px; height: 120px; border-radius: 24px; background: var(--gold); }

.solutions { padding: 82px 0 94px; }
.section-heading, .contact-heading { display: grid; align-items: end; grid-template-columns: 1.25fr 0.75fr; gap: 80px; margin-bottom: 48px; }
.section-heading > p, .contact-heading > p { margin: 0 0 10px; color: var(--muted); }
.section-heading h2, .contact-heading h2 { margin-bottom: 0; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card { position: relative; display: flex; min-height: 380px; flex-direction: column; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 15px 40px rgba(16, 36, 63, 0.07); transition: transform 200ms ease, box-shadow 200ms ease; }
.solution-card::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: var(--card-accent); content: ""; }
.solution-card:hover { box-shadow: var(--shadow); transform: translateY(-7px); }
.card-blue { --card-accent: var(--blue); --card-soft: #eaf4ff; }
.card-cyan { --card-accent: var(--cyan); --card-soft: #e8f9fc; }
.card-gold { --card-accent: var(--gold); --card-soft: #fff7dc; }
.card-icon { display: grid; width: 60px; height: 60px; margin-bottom: 28px; place-items: center; border-radius: 18px; color: var(--card-accent); background: var(--card-soft); }
.card-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.card-number { position: absolute; top: 33px; right: 32px; margin: 0; color: #9aa8b7; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; }
.solution-card h3 { margin-bottom: 18px; }
.solution-card > p:not(.card-number) { margin: 0 0 28px; color: var(--muted); }
.solution-card > a { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; color: var(--blue); font-size: 15px; font-weight: 900; }
.solution-card > a span { transition: transform 180ms ease; }
.solution-card > a:hover span { transform: translateX(5px); }

.about { padding: 82px 0; border-block: 1px solid var(--line); background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; }
.about .eyebrow { color: var(--blue); }
.about h2, .about h3 { color: var(--navy); }
.about-intro h2 { margin-bottom: 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.benefit-grid span { color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: 0.12em; }
.benefit-grid h3 { margin: 18px 0 12px; font-size: 20px; letter-spacing: -0.03em; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 15px; }

.contact { padding: 110px 0; background: var(--surface); }
.contact-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.contact-frame iframe { display: block; width: 100%; height: 1000px; border: 0; background: var(--white); }

.site-footer { padding: 58px 0 34px; color: #bdc9d5; background: #0b1a2e; }
.footer-inner { display: grid; align-items: start; grid-template-columns: 1fr auto; gap: 45px; }
.brand-footer { color: var(--white); }
.brand-footer .brand-icon { width: 38px; height: 41px; }
.brand-footer .brand-icon img { width: 49px; height: 50px; }
.footer-inner > div > p { max-width: 520px; margin: 18px 0 0; font-size: 15px; }
.footer-links { display: flex; gap: 28px; padding-top: 12px; color: var(--white); font-size: 14px; font-weight: 800; }
.footer-links a:hover { color: var(--cyan); }
.copyright { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }

.error-page { display: flex; min-height: 100vh; flex-direction: column; }
.error-main { display: flex; flex: 1; }
.error-section { position: relative; display: flex; width: 100%; align-items: center; overflow: hidden; padding: 90px 0; background: linear-gradient(145deg, #ffffff 42%, #f2f8fc 100%); }
.error-section::after { position: absolute; right: -90px; bottom: -220px; width: 420px; height: 420px; border-radius: 100px; background: var(--gold); content: ""; opacity: 0.9; transform: rotate(38deg); }
.error-layout { position: relative; z-index: 1; display: grid; align-items: center; grid-template-columns: 1.15fr 0.85fr; gap: 70px; }
.error-copy { max-width: 680px; }
.error-code { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--navy); font-size: clamp(92px, 13vw, 170px); font-weight: 900; line-height: 0.8; letter-spacing: -0.1em; }
.error-code span:nth-child(2) { color: var(--blue); }
.error-footer { padding-top: 42px; }

@media (max-width: 960px) {
    .hero { padding: 68px 0 76px; }
    .hero-grid { grid-template-columns: 1fr; gap: 45px; }
    .hero-copy { max-width: 760px; }
    .hero-visual { min-height: 310px; }
    .visual-card { right: 12%; }
    .solution-grid { grid-template-columns: 1fr; }
    .solution-card { min-height: 350px; }
    .about-grid { grid-template-columns: 1fr; gap: 54px; }
    .error-layout { grid-template-columns: 1fr; gap: 55px; }
    .error-code { justify-content: flex-start; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .container { width: min(100% - 32px, 1160px); }
    .header-inner { min-height: 72px; }
    .brand-icon { width: 39px; height: 43px; }
    .desktop-nav { display: none; }
    .mobile-nav { position: relative; display: block; }
    .mobile-nav summary { display: grid; width: 44px; height: 44px; padding: 12px 9px; cursor: pointer; list-style: none; align-content: space-between; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav summary span { display: block; height: 2px; border-radius: 2px; background: var(--navy); }
    .mobile-nav nav { position: absolute; top: 54px; right: 0; display: grid; width: min(290px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
    .mobile-nav nav a { padding: 12px 14px; border-radius: 10px; color: var(--navy); font-weight: 750; }
    .mobile-nav nav a:hover { background: var(--surface); }
    .hero { padding: 50px 0 56px; }
    .hero::after { right: -140px; bottom: -250px; opacity: 0.6; }
    h1 { font-size: clamp(39px, 11vw, 48px); }
    h2 { font-size: 36px; }
    .hero-lead { font-size: 18px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
    .hero-visual { display: none; }
    .solutions, .contact { padding: 76px 0; }
    .section-heading, .contact-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
    .solution-card { min-height: 0; padding: 28px; }
    .solution-card > a { margin-top: 20px; }
    .about { padding: 76px 0; }
    .benefit-grid { grid-template-columns: 1fr; }
    .contact-frame { margin-inline: -8px; border-radius: 18px; }
    .contact-frame iframe { height: 1100px; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .footer-links { flex-wrap: wrap; }
    .copyright { grid-column: auto; margin-top: 0; }
    .error-section { padding: 70px 0; }
    .error-section::after { right: -190px; bottom: -290px; opacity: 0.6; }
    .error-code { font-size: clamp(86px, 28vw, 130px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
