/* PeaceERP Platform site. No external fonts or frameworks. */

:root {
    --navy-950: #070f2b;
    --navy-900: #0a1330;
    --navy-800: #0f1e4a;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-300: #93c5fd;
    --green: #16a34a;
    --green-bright: #22c55e;
    --orange: #f59e0b;
    --purple: #8b5cf6;
    --cyan: #0ea5e9;
    --red: #ef4444;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #475569; /* 6.8:1 on the tinted sections (AA) */
    --line: #e2e8f0;
    --bg: #f5f7fb;
    --card: #ffffff;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px -12px rgba(7, 15, 43, .45);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial,
            "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    --topbar: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); scrollbar-gutter: stable; }
/* no scrolling behind an open screenshot */
html:has(.lightbox[open]) { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* footer always at the bottom, even on short pages */
    min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
p, dd, figcaption { text-wrap: pretty; } /* no single word alone on the last line */

/* Korean breaks between words, never inside one; Hangul is not letter-spaced or upper-cased */
:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
:lang(ko) .kicker, :lang(ko) .badge { text-transform: none; letter-spacing: .02em; }

/* Chinese: Han glyphs from a Chinese font (the Korean fonts in --font come first otherwise); no letter-spacing */
:root:lang(zh) {
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial,
            "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}
:lang(zh) .kicker, :lang(zh) .badge { letter-spacing: .02em; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

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

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* focus ring: dark blue on light sections, light blue on dark ones (3:1 or better) */
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.topbar :focus-visible, .hero :focus-visible, .section--mobile :focus-visible,
.footer :focus-visible, .error :focus-visible { outline-color: var(--blue-300); }
.shot:focus-visible { outline: none; }
.shot:focus-visible .frame { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.shot--hero:focus-visible .frame { outline-color: var(--blue-300); }

.skip {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    padding: 8px 14px; border-radius: 8px;
    background: #fff; color: var(--ink); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */

.topbar {
    position: fixed; inset: 0 0 auto; z-index: 50;
    height: var(--topbar);
    background: rgba(10, 19, 48, .9);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}
.topbar__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; }
.brand__name { letter-spacing: .01em; font-weight: 500; }
.brand__name strong { font-weight: 700; }
/* the round navy Peace logo sits on a white ring so it stands out on dark backgrounds */
.brand__logo {
    width: 36px; height: 36px; padding: 2px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 16px -4px rgba(0, 0, 0, .5);
}
.brand__logo--small { width: 28px; height: 28px; box-shadow: none; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; white-space: nowrap; color: rgba(255, 255, 255, .78); transition: color .15s; }
.nav a:hover { color: #fff; }

.lang {
    display: inline-flex; padding: 3px; gap: 2px;
    border-radius: 999px; background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}
.lang__item {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 40px; padding: 5px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    color: rgba(255, 255, 255, .72); transition: background .15s, color .15s;
}
.lang__item:hover { color: #fff; }
.lang__item.is-active { background: #fff; color: var(--navy-900); }
/* thin outline keeps the white parts of the flags visible on the white active pill */
.lang__flag {
    width: 20px; height: 14px; flex: none; object-fit: cover;
    border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .25);
}

/* ---------- buttons, badge, chips ---------- */

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 12px;
    font-weight: 600; font-size: 15px; text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); /* white text 5:1 or better */
    box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .8);
}
.btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(37, 99, 235, .9); }
.btn--ghost { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }

.badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #bbf7d0; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35);
}
.badge__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.chip {
    position: absolute; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 12px;
    font-size: 13px; font-weight: 600; color: var(--ink);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px -10px rgba(7, 15, 43, .5);
}
.chip .icon { color: var(--blue-600); }
/* over the empty right end of the address bar, and the bottom-left corner */
.chip--top { top: -20px; right: 24px; }
.chip--bottom { bottom: -20px; left: 24px; }

/* ---------- hero ---------- */

.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--topbar) + 72px) 0 110px;
    color: #fff;
    background:
        radial-gradient(900px 520px at 85% -5%, rgba(59, 130, 246, .38), transparent 62%),
        radial-gradient(700px 480px at -5% 105%, rgba(34, 197, 94, .16), transparent 60%),
        linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 58%, #14307a 100%);
}
.hero::after {
    /* faint grid, like a chart's background */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px; align-items: center;
}
.hero__title {
    margin: 22px 0 18px; font-size: clamp(2.2rem, 3.6vw, 3.3rem); font-weight: 800; letter-spacing: -.025em;
    text-wrap: balance;
}
.hero__accent {
    display: block;
    background: linear-gradient(90deg, #93c5fd, #60a5fa 40%, #4ade80);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
    margin: 44px 0 0; padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.stats dt {
    min-height: 36px; display: flex; align-items: flex-end;
    font-size: 34px; font-weight: 800; line-height: 1;
    background: linear-gradient(180deg, #fff, #bfdbfe);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats dt.stats__langs { font-size: 19px; letter-spacing: .02em; padding-bottom: 3px; flex-wrap: wrap; align-content: flex-end; column-gap: .3em; row-gap: 4px; }
.stats__langs span { white-space: nowrap; } /* on phones the four codes wrap as "VI · EN ·" / "KO · CN" */
.stats dd { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.4; }

.hero__visual { position: relative; }

/* ---------- screenshots in a browser frame ---------- */

.shot {
    display: block; width: 100%; padding: 0; border: 0; background: none;
    cursor: zoom-in; text-align: left; font: inherit;
}
.frame {
    display: block; overflow: hidden;
    border-radius: 14px; background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 50px -18px rgba(15, 23, 42, .35);
    transition: transform .3s ease, box-shadow .3s ease;
}
.frame__bar {
    display: flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 14px;
    background: #f1f4f9; border-bottom: 1px solid var(--line);
}
.frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame__bar i:nth-child(2) { background: #febc2e; }
.frame__bar i:nth-child(3) { background: #28c840; }
.frame__url {
    margin-left: 14px; padding: 3px 14px; border-radius: 999px;
    font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot:hover .frame { transform: translateY(-3px); box-shadow: 0 26px 60px -18px rgba(15, 23, 42, .45); }

.shot--hero .frame {
    border-color: rgba(255, 255, 255, .14);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06);
    transform: perspective(1800px) rotateY(-7deg) rotateX(3deg);
}
.shot--hero:hover .frame { transform: perspective(1800px) rotateY(-3deg) rotateX(1deg) translateY(-4px); }

/* ---------- sections ---------- */

.section { padding: 104px 0; }
.section--tint { background: #eef2f9; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { margin: 10px 0 14px; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 17px; }

.kicker {
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue-600);
}
.kicker--light { color: var(--blue-300); }

/* ---------- showcase tabs ---------- */

.tabs {
    display: flex; justify-content: center; gap: 6px;
    width: fit-content; max-width: 100%; margin: 0 auto 40px; padding: 6px;
    border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tab {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 22px; border: 0; border-radius: 10px;
    font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2);
    background: transparent; cursor: pointer; transition: background .15s, color .15s;
}
.tab:hover { background: #f1f5f9; }
.tab.is-active { color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8); }

/* all panels share one grid cell, so switching tabs never changes the page height */
.panels { display: grid; }
.panel { grid-area: 1 / 1; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: center; }
.panel[hidden] { display: grid; visibility: hidden; }
.panel__text h3 { margin: 18px 0 12px; font-size: 26px; font-weight: 800; }
.panel__text > p { color: var(--muted); }
.panel__hint { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--muted); }

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.checks .icon { color: var(--green); width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #dcfce7; stroke-width: 3; }

/* colored icon tiles, like the dashboards' KPI cards */
.panel__icon, .feature__icon {
    display: inline-grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px; color: #fff;
}
.panel__icon .icon, .feature__icon .icon { width: 24px; height: 24px; }
.tone-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tone-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.tone-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.tone-orange { background: linear-gradient(135deg, #fbbf24, #ea8a07); }
.tone-cyan { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.tone-red { background: linear-gradient(135deg, #f87171, #dc2626); }

/* ---------- pillars: what sets the platform apart (4 + 3 cards) ---------- */

.section--pillars { padding-bottom: 88px; }
.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.pillars > .pillar { flex: 0 1 calc((100% - 72px) / 4); }
.pillar {
    position: relative; overflow: hidden;
    padding: 36px 32px 32px; border-radius: 20px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pillar::before {
    /* colour bar on top, like the dashboards' KPI strips */
    content: ""; position: absolute; inset: 0 0 auto; height: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--green-bright), var(--purple));
}
.pillar__icon {
    display: inline-grid; place-items: center;
    width: 60px; height: 60px; border-radius: 16px; color: #fff;
}
.pillar__icon .icon { width: 28px; height: 28px; }
.pillar h3 { margin: 22px 0 10px; font-size: 22px; font-weight: 800; }
@media (min-width: 1025px) {
    .pillar h3 { min-height: 2.4em; } /* titles of 1 or 2 lines: body texts still line up */
}
.pillar p { color: var(--muted); }

/* ---------- mobile apps ---------- */

.section--mobile {
    color: #fff;
    background:
        radial-gradient(700px 400px at 90% 10%, rgba(59, 130, 246, .3), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(20, 184, 166, .18), transparent 60%),
        linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.section__head--light p { color: rgba(255, 255, 255, .75); }

.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.platform {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
}
.platform { background: none; border-color: transparent; } /* labels, not buttons */

.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.phone-card { margin: 0; }
.phone-card:nth-child(even) { margin-top: 56px; }
.phone {
    display: block; width: 100%; padding: 9px; border: 0; cursor: zoom-in;
    border-radius: 40px;
    background: linear-gradient(145deg, #334155, #0b1220 55%);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), inset 0 0 0 2px rgba(255, 255, 255, .1);
    transition: transform .3s ease;
}
.phone img { width: 100%; border-radius: 31px; }
.phone:hover { transform: translateY(-6px); }
.phone-card figcaption { margin-top: 20px; text-align: center; }
.phone-card__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.phone-card__title .icon { color: var(--blue-300); }
.phone-card__text { display: block; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ---------- features ---------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
    padding: 28px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -16px rgba(15, 23, 42, .25); }
.feature h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 15px; }
.features--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }
.feature .checks { margin-top: 18px; }

/* ---------- solutions: one card per area of the platform ---------- */

.solutions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.solution {
    padding: 22px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.solution__code { display: block; margin-top: 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--blue-600); }
.solution h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; }
.solution p { color: var(--muted); font-size: 14px; }

/* ---------- real time: purchase approval mock-up next to the two cards ---------- */

.rt { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1100px; margin-inline: auto; }
.rt__cards { display: grid; gap: 20px; }
.approval { position: relative; margin: 0; padding-top: 34px; }
.approval__card {
    padding: 22px; border-radius: 18px; background: var(--card);
    border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .35);
}
.approval__head { display: flex; align-items: center; gap: 12px; }
.approval__doc, .approval__app { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; }
.approval__name { flex: 1; min-width: 0; }
.approval__name strong { display: block; font-size: 16px; }
.approval__name small { color: var(--muted); font-size: 13px; }
.approval__status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #b45309; background: #fef3c7; white-space: nowrap; }
.approval__items { width: 100%; margin: 16px 0 4px; border-collapse: collapse; font-size: 14px; }
.approval__items td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.approval__items td + td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.approval__items tfoot td { border-bottom: 0; font-weight: 800; }
.approval__steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.approval__steps li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.approval__steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; height: 12px; border-left: 2px solid var(--line); }
.approval__steps small { color: var(--muted); font-size: 12px; text-align: right; }
.approval__dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); color: #fff; }
.approval__dot .icon { width: 15px; height: 15px; stroke-width: 3; }
.is-done .approval__dot { background: var(--green); border-color: var(--green); }
.is-current .approval__dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(245, 158, 11, .2); }
.is-current small { color: #b45309; font-weight: 700; }
.approval__actions { display: flex; gap: 10px; margin-top: 18px; }
.approval__btn {
    flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 10px;
    border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2);
}
.approval__btn--ok { background: var(--green); border-color: var(--green); color: #fff; }
/* the phone's push notification, over the card's top edge */
.approval__toast {
    position: absolute; top: 0; right: -10px; display: flex; align-items: center; gap: 10px; max-width: 330px;
    padding: 10px 14px; border-radius: 16px; background: rgba(15, 23, 42, .92); color: #fff;
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .5); font-size: 13px; line-height: 1.35;
}
.approval__app { width: 32px; height: 32px; border-radius: 9px; }
.approval__msg b { display: block; font-size: 12px; opacity: .75; }
.approval__toast small { align-self: flex-start; font-size: 11px; opacity: .65; white-space: nowrap; }

/* ---------- legacy ERP upgrade: before / after picture ---------- */

.upgrade { max-width: 1000px; margin: 0 auto 40px; }
.upgrade img { display: block; width: 100%; height: auto; }
.upgrade figcaption { display: grid; grid-template-columns: 1fr 1fr; margin-top: 6px; text-align: center; font-weight: 700; color: var(--ink-2); }

/* ---------- contact ---------- */

.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.contact__item {
    display: flex; align-items: center; gap: 16px; flex: 0 1 340px; padding: 20px 28px;
    border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.contact__item:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -16px rgba(15, 23, 42, .25); }
.contact__item small { display: block; color: var(--muted); font-size: 13px; }
.contact__item strong { font-size: 18px; overflow-wrap: anywhere; }

/* ---------- energy and IoT: text and screenshot side by side, alternating ---------- */

.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: center; }
.split + .split { margin-top: 80px; }
.split--flip { grid-template-columns: minmax(0, 1fr) 340px; }
.split--flip .panel__text { order: 2; }
.split + .features { margin-top: 80px; }
.section__note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */

.footer { padding: 32px 0; background: var(--navy-950); color: rgba(255, 255, 255, .6); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__note { flex: 1; min-width: 220px; }
.footer__link { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; }
.footer__link:hover { color: #fff; }

/* ---------- lightbox ---------- */

.lightbox {
    /* sized to the picture: wide dashboards and tall phone screens both fit */
    width: fit-content; max-width: 96vw; max-height: 94vh; max-height: 94dvh;
    padding: 0; border: 0; border-radius: 14px; overflow: hidden;
    background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox::backdrop { background: rgba(7, 15, 43, .82); backdrop-filter: blur(4px); }
.lightbox img { width: auto; height: auto; max-width: 96vw; max-height: 94vh; max-height: 94dvh; cursor: zoom-out; }
.lightbox__close {
    position: absolute; top: 12px; right: 12px;
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: 50%; cursor: pointer;
    color: #fff; background: rgba(15, 23, 42, .75);
}
.lightbox__close:hover { background: rgba(15, 23, 42, .92); }

/* ---------- error page ---------- */

.error {
    flex: 1;
    display: grid; align-items: center;
    padding: calc(var(--topbar) + 48px) 0 64px;
    color: #fff; text-align: center;
    background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.error__inner { display: grid; justify-items: center; gap: 16px; }
.error__code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--blue-300); }
.error h1 { font-size: 32px; }
.error p { color: rgba(255, 255, 255, .75); margin-bottom: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
    .rt { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
    .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .hero__copy { text-align: center; }
    .hero__lead { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .stats { max-width: 560px; margin-inline: auto; }
    .stats dt { justify-content: center; }
    .shot--hero .frame, .shot--hero:hover .frame { transform: none; }
    .panel, .split, .split--flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .split--flip .panel__text { order: 0; }
    .split + .split, .split + .features { margin-top: 56px; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pillars { max-width: 640px; margin-inline: auto; }
    .pillars > .pillar { flex-basis: 100%; }
    .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-inline: auto; }
    .phone-card:nth-child(even) { margin-top: 0; }
}

/* five menu items and the language switcher no longer fit on one line (Vietnamese is the longest) */
@media (max-width: 1000px) {
    .nav { display: none; }
    .lang { margin-left: auto; }
}
/* just above that, the menu and four languages fit only as flags */
@media (min-width: 1001px) and (max-width: 1199px) {
    .lang__item { min-width: 34px; padding: 5px 8px; }
    .lang__code { display: none; }
}

@media (max-width: 760px) {
    .brand__name { font-size: 15px; }
    .section { padding: 72px 0; }
    .hero { padding: calc(var(--topbar) + 40px) 0 64px; }
    .features { grid-template-columns: 1fr; }
    /* four tabs do not fit a phone row: two by two, all visible */
    .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .tab { justify-content: center; padding: 10px 12px; font-size: 14px; }
    .phones { gap: 18px; }
    .phone { padding: 6px; border-radius: 28px; }
    .phone img { border-radius: 22px; }
    .phone-card__title { font-size: 15px; }
    .phone-card__text { font-size: 13px; }
    .chip { display: none; }
    .stats { gap: 14px; }
    .stats dt { font-size: 28px; }
    .stats dd { font-size: 13px; }
}

@media (max-width: 480px) {
    /* the notification sits under the card instead of over it */
    .approval { padding-top: 0; }
    .approval__toast { position: static; max-width: none; margin-top: 12px; }
    /* two solution cards side by side on phones: smaller type so long words ("Manufacturing") fit */
    .solution { padding: 16px; }
    .solution h3 { font-size: 15px; overflow-wrap: anywhere; hyphens: auto; }
    .solution p { font-size: 13px; }
    .stats dt.stats__langs { font-size: 15px; letter-spacing: 0; white-space: nowrap; }
    .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 420px) {
    .topbar__inner { gap: 12px; }
    .brand { gap: 8px; }
    .brand__logo { width: 32px; height: 32px; }
    .brand__name { font-size: 14px; white-space: nowrap; }
    .lang__item { min-width: 30px; padding: 5px; }
    .lang__code { display: none; } /* flags only: the names stay in title and aria-label */
}
/* four flags still fit beside the brand name on 360px phones */
@media (max-width: 380px) {
    .lang__item { min-width: 26px; padding-inline: 3px; }
}

/* touch screens: bigger language targets, and no "click to enlarge" hint */
@media (pointer: coarse) {
    .lang__item { padding-block: 10px; }
}
@media (hover: none) {
    .panel__hint { display: none; }
}

/* Windows high contrast removes backgrounds: keep the current tab and language visible */
@media (forced-colors: active) {
    .tab.is-active, .lang__item.is-active { outline: 2px solid Highlight; outline-offset: -2px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .shot--hero .frame, .shot--hero:hover .frame { transform: none; }
}

/* 320 px phones: logo and flags only, the name would run under the flags */
@media (max-width: 340px) {
    .brand__name { display: none; }
}
