/* =========================================================
   NeoCare — Smart Nursery for Infants
   Design system & responsive styles
   ========================================================= */

:root {
    --bg: #FBF8F4;
    --bg-soft: #F1F9FA;
    --surface: #FFFFFF;
    --ink: #0A2B38;
    --ink-2: #3D6070;
    --ink-3: #55717C;
    --line: #E4EFF0;
    --line-strong: #D3E7EA;

    --brand: #1C93A8;
    --brand-2: #0C6F85;
    --brand-3: #084C5E;
    --brand-soft: #D8F1F4;
    --brand-glow: rgba(28, 147, 168, .16);

    --mint: #E4F7F0;
    --mint-ink: #17906A;
    --sky: #E3F2FB;
    --sky-ink: #157BA3;
    --peach: #FFEFE3;
    --peach-ink: #D97742;
    --lilac: #EEEAFB;
    --lilac-ink: #6A55B8;
    --rose: #FEECEE;
    --rose-ink: #D95B6A;
    --sun: #FFF7DF;
    --sun-ink: #C08A16;

    --success: #1B8A61;
    --alert: #D95B6A;

    --shadow-sm: 0 2px 10px rgba(9, 43, 56, .05);
    --shadow: 0 24px 50px -30px rgba(9, 43, 56, .28);
    --shadow-lg: 0 40px 80px -40px rgba(8, 60, 74, .38);

    --radius: 24px;
    --radius-lg: 32px;
    --container: 1180px;
    --header-h: 82px;

    --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::selection,
body *::selection {
    background: var(--brand-soft);
    color: var(--brand-3);
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
    margin: 0;
}

:focus-visible {
    outline: 3px solid rgba(28, 147, 168, .38);
    outline-offset: 3px;
}

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

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: fixed;
    inset-inline-start: 16px;
    top: 12px;
    z-index: 2000;
    background: var(--brand-3);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

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

/* ---------- tint utilities ---------- */
.tint-mint { background: var(--mint); color: var(--mint-ink); }
.tint-sky { background: var(--sky); color: var(--sky-ink); }
.tint-peach { background: var(--peach); color: var(--peach-ink); }
.tint-lilac { background: var(--lilac); color: var(--lilac-ink); }
.tint-rose { background: var(--rose); color: var(--rose-ink); }
.tint-sun { background: var(--sun); color: var(--sun-ink); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background .25s ease, border-color .25s ease, color .25s ease;
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform .25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #1EA0B5, #0B6B80);
    color: #fff;
    box-shadow: 0 16px 30px -16px rgba(11, 107, 128, .8);
}

.btn-primary:hover {
    box-shadow: 0 20px 36px -16px rgba(11, 107, 128, .9);
}

.btn-primary:hover .icon {
    transform: translateX(-3px);
}

.btn-ghost {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: #A9D9DF;
    background: #FAFEFE;
}

.btn-ghost .icon {
    color: var(--brand);
}

.btn-light {
    background: #fff;
    color: var(--brand-3);
    box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .45);
}

.btn-light:hover {
    background: #E8F7F9;
}

.btn-sm {
    min-height: 42px;
    padding: 9px 18px;
    font-size: .84rem;
}

.btn-block {
    width: 100%;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 244, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .93);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 30px -24px rgba(9, 43, 56, .35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-mark {
    width: 52px;
    height: 52px;
    flex: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #E3EFF0;
    box-shadow: 0 6px 14px -8px rgba(9, 43, 56, .25);
    transition: transform .25s var(--ease);
}

.brand:hover .brand-mark {
    transform: scale(1.04) rotate(-1.5deg);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.brand-text strong {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--ink);
}

.brand-text small {
    font-size: .68rem;
    font-weight: 600;
    color: var(--ink-3);
}

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

.primary-nav > a {
    padding: 9px 13px;
    border-radius: 999px;
    font-size: .89rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.primary-nav > a:not(.nav-cta):hover {
    color: var(--brand-2);
    background: rgba(216, 241, 244, .6);
}

.primary-nav > a.active:not(.nav-cta) {
    color: var(--brand-2);
    background: rgba(216, 241, 244, .78);
}

.primary-nav .nav-cta {
    margin-inline-start: 10px;
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    position: relative;
    z-index: 1002;
}

.nav-toggle .icon {
    width: 22px;
    height: 22px;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(44px, 6.5vw, 84px) clamp(56px, 8vw, 100px);
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10% 0 auto;
    height: 780px;
    z-index: -2;
    background:
        radial-gradient(620px 420px at 18% 18%, rgba(216, 241, 244, .95), transparent 70%),
        radial-gradient(520px 400px at 86% 28%, rgba(255, 227, 209, .7), transparent 72%),
        radial-gradient(400px 300px at 55% 80%, rgba(228, 247, 240, .7), transparent 75%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(12, 111, 133, .12) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(560px 420px at 42% 42%, #000 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(560px 420px at 42% 42%, #000 10%, transparent 72%);
    opacity: .45;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: clamp(32px, 4.5vw, 58px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid #DCEDEF;
    box-shadow: var(--shadow-sm);
    font-size: .75rem;
    font-weight: 700;
    color: var(--brand-2);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 rgba(28, 147, 168, .45);
    animation: pulse-ring 2.4s infinite;
}

.hero h1 {
    position: relative;
    z-index: 0;
    margin: 18px 0;
    font-size: clamp(2.35rem, 4.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}

.highlight {
    display: inline-block;
    position: relative;
    color: var(--brand-2);
}

.highlight::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline: -3px;
    bottom: .06em;
    height: .26em;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 216, 188, .95), rgba(255, 235, 194, .7));
}

.lead {
    max-width: 56ch;
    margin-bottom: 26px;
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    color: var(--ink-2);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 30px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-2);
}

.hero-checks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-checks .icon {
    width: 17px;
    height: 17px;
    color: var(--success);
    stroke-width: 2.4;
}

.hero-stats {
    display: flex;
    max-width: 530px;
    padding-top: 22px;
    border-top: 1px solid var(--line-strong);
}

.hero-stats > div {
    padding-inline: 24px;
    border-inline-end: 1px solid var(--line-strong);
}

.hero-stats > div:first-child {
    padding-inline-start: 0;
}

.hero-stats > div:last-child {
    border-inline-end: 0;
}

.hero-stats dt {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-2);
    white-space: nowrap;
}

.hero-stats dd {
    margin-top: 2px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-3);
    white-space: nowrap;
}

/* ---------- monitor mockup ---------- */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.monitor-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.monitor-card {
    position: relative;
    background: #fff;
    border: 1px solid #E6F0F1;
    border-radius: 28px;
    box-shadow: var(--shadow-lg), 0 2px 8px rgba(9, 43, 56, .05);
    overflow: hidden;
    transition: transform .4s var(--ease);
}

.monitor-card:hover {
    transform: translateY(-4px);
}

.monitor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 19px 22px 14px;
}

.monitor-kicker {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    color: var(--ink-3);
}

.monitor-title {
    margin-top: 1px;
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--ink);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #E7F7EF;
    color: #147A52;
    font-size: .69rem;
    font-weight: 800;
    white-space: nowrap;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22A06B;
    animation: pulse-ring-green 2.2s infinite;
}

.live-pill.on-dark {
    background: rgba(34, 160, 107, .18);
    color: #8FE8C2;
}

.monitor-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 22px 16px;
}

.baby-avatar {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(140deg, #E1F5F7, #C9EBEF);
    color: var(--brand-2);
    border: 1px solid #D2EDF0;
}

.baby-avatar .icon {
    width: 24px;
    height: 24px;
}

.baby-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.baby-meta strong {
    font-size: .9rem;
    font-weight: 800;
}

.baby-meta span {
    font-size: .7rem;
    color: var(--ink-3);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #EDF8F2;
    color: #187A51;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill .icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.6;
}

.vitals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    padding: 0 22px 15px;
}

.vital {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    background: #F7FBFB;
    border: 1px solid #ECF4F5;
    border-radius: 14px;
}

.vital-icon {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
}

.vital-icon .icon {
    width: 17px;
    height: 17px;
}

.vital-label {
    display: block;
    font-size: .66rem;
    font-weight: 600;
    color: var(--ink-3);
    line-height: 1.4;
}

.vital-number {
    display: block;
    font-size: .95rem;
    line-height: 1.25;
    color: var(--ink);
    white-space: nowrap;
}

.vital-number b {
    font-size: 1.07rem;
    font-weight: 800;
}

.vital-number b.bump {
    animation: bump .5s var(--ease);
}

.vital-number small {
    font-size: .62rem;
    font-weight: 600;
    color: var(--ink-3);
}

.chart-block {
    padding: 0 22px 17px;
}

.chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    font-size: .68rem;
    font-weight: 600;
    color: var(--ink-2);
}

.chart-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-2);
    font-size: .6rem;
    font-weight: 800;
    white-space: nowrap;
}

.chart-plot {
    position: relative;
    padding: 8px 10px 2px;
    border: 1px solid #EDF4F5;
    border-radius: 14px;
    background: linear-gradient(180deg, #F8FCFD, #FFFFFF);
    overflow: hidden;
}

.chart-plot svg {
    display: block;
    width: 100%;
    height: 112px;
}

.chart-grid line {
    stroke: #E7F0F2;
    stroke-width: 1;
    stroke-dasharray: 4 5;
}

.chart-area {
    fill: url(#areaGradient);
}

.chart-line {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw-line 1.9s var(--ease) .35s forwards;
}

.chart-dot {
    fill: var(--brand-2);
    stroke: #fff;
    stroke-width: 2;
    animation: dot-pulse 2.4s ease-in-out infinite;
}

.chart-plot::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 3px;
    width: 1.5px;
    background: linear-gradient(transparent, rgba(28, 147, 168, .55), transparent);
    animation: scan-line 4.5s linear infinite;
    pointer-events: none;
}

.monitor-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 22px;
    background: #F8FCFC;
    border-top: 1px solid #EDF4F5;
    font-size: .67rem;
    font-weight: 600;
    color: var(--ink-3);
}

.monitor-foot span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.monitor-foot .icon {
    width: 13px;
    height: 13px;
}

.monitor-foot .safe-note {
    color: var(--success);
}

.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid #fff;
    box-shadow: 0 22px 44px -22px rgba(8, 60, 74, .38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.float-a {
    left: -26px;
    top: 31%;
}

.float-b {
    right: -20px;
    bottom: 16%;
    animation-delay: -2.6s;
}

.float-icon {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
}

.float-icon .icon {
    width: 17px;
    height: 17px;
}

.float-card strong {
    display: block;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1.35;
}

.float-card small {
    display: block;
    font-size: .62rem;
    color: var(--ink-3);
    line-height: 1.4;
    white-space: nowrap;
}

/* ---------- tech strip ---------- */
.tech-strip {
    background: #fff;
    border-block: 1px solid var(--line);
    padding-block: 20px;
}

.tech-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
}

.strip-title {
    font-size: .7rem;
    font-weight: 800;
    color: var(--ink-3);
    white-space: nowrap;
}

.tech-strip ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.tech-strip li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid #ECF4F5;
    border-radius: 999px;
    background: #F8FCFC;
    font-size: .77rem;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
}

.tech-strip li .icon {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.tech-strip li span {
    font-size: .6rem;
    font-weight: 600;
    color: var(--ink-3);
}

/* ---------- generic sections ---------- */
.section {
    position: relative;
    padding-block: clamp(64px, 8.5vw, 108px);
}

.section.soft {
    background: linear-gradient(180deg, #F2FAFA 0%, #F7FBFA 55%, var(--bg) 100%);
    border-block: 1px solid #EBF4F5;
}

.section-head {
    max-width: 730px;
    margin: 0 auto clamp(34px, 4.6vw, 54px);
    text-align: center;
}

.section-head h2,
.about-copy h2,
.contact-copy h2,
.tech-copy h2 {
    margin: 14px 0 12px;
    font-size: clamp(1.8rem, 3.2vw, 2.55rem);
    font-weight: 800;
    line-height: 1.28;
    color: var(--ink);
}

.section-head p {
    max-width: 590px;
    margin-inline: auto;
    font-size: .98rem;
    color: var(--ink-2);
    line-height: 1.85;
}

/* ---------- features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px 20px;
    background: #fff;
    border: 1px solid #E7F0F1;
    border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: #CFE7EA;
    box-shadow: 0 30px 55px -35px rgba(8, 60, 74, .32);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 16px;
    transition: transform .35s var(--ease);
}

.feature-card:hover .feature-icon {
    transform: scale(1.06) rotate(-2deg);
}

.feature-icon .icon {
    width: 25px;
    height: 25px;
}

.feature-card h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
}

.feature-card p {
    flex: 1;
    margin-bottom: 14px;
    font-size: .88rem;
    color: var(--ink-2);
    line-height: 1.8;
}

.feature-tag {
    align-self: flex-start;
    padding: 3px 9px;
    border: 1px solid #DFF0F3;
    border-radius: 999px;
    background: #EEF8FA;
    font-size: .63rem;
    font-weight: 700;
    color: var(--brand-2);
}

/* ---------- steps ---------- */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.steps::before {
    content: "";
    position: absolute;
    top: 28px;
    inset-inline: 34px;
    border-top: 2px dashed #C4E4E8;
    z-index: 0;
}

.step {
    position: relative;
    padding: 0 4px;
}

.step-number {
    position: absolute;
    top: -16px;
    inset-inline-start: 0;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(12, 111, 133, .09);
    pointer-events: none;
}

.step-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 14px 26px -16px rgba(8, 60, 74, .35);
    transition: transform .35s var(--ease);
}

.step:hover .step-icon {
    transform: translateY(-4px);
}

.step-icon .icon {
    width: 26px;
    height: 26px;
}

.step h3 {
    margin-bottom: 6px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
}

.step p {
    font-size: .86rem;
    color: var(--ink-2);
    line-height: 1.8;
    max-width: 30ch;
}

/* ---------- technology (dark) ---------- */
.section.dark {
    overflow: hidden;
    color: #EAF6F8;
    background:
        radial-gradient(700px 420px at 88% 4%, rgba(123, 211, 223, .2), transparent 68%),
        radial-gradient(560px 420px at 4% 92%, rgba(255, 216, 188, .12), transparent 70%),
        linear-gradient(140deg, #062A35 0%, #084453 48%, #0B6075 100%);
}

.section.dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(700px 500px at 70% 30%, #000 5%, transparent 75%);
    -webkit-mask-image: radial-gradient(700px 500px at 70% 30%, #000 5%, transparent 75%);
    opacity: .55;
    pointer-events: none;
}

.tech-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: clamp(32px, 4.5vw, 58px);
}

.eyebrow.light {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
    color: #A9E7EF;
    box-shadow: none;
}

.tech-copy h2 {
    color: #fff;
}

.tech-copy p {
    max-width: 55ch;
    font-size: .98rem;
    line-height: 1.85;
    color: rgba(234, 246, 248, .74);
}

.tech-list {
    display: grid;
    gap: 11px;
    margin: 24px 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: #D7ECEF;
}

.tech-check {
    width: 22px;
    height: 22px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(123, 211, 223, .18);
    color: #8FE0EC;
}

.tech-check .icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.6;
}

.security-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.security-pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: .68rem;
    font-weight: 700;
    color: #A9DDE5;
}

.security-pills .icon {
    width: 13px;
    height: 13px;
}

.flow-card {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .55);
}

.flow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    font-size: .78rem;
    font-weight: 700;
    color: #D7ECEF;
}

.flow {
    position: relative;
    display: grid;
    gap: 9px;
    padding-top: 15px;
}

.flow::before {
    content: "";
    position: absolute;
    inset-inline-start: 31px;
    top: 44px;
    bottom: 44px;
    width: 1px;
    background: linear-gradient(rgba(143, 224, 236, .55), rgba(143, 224, 236, .08));
}

.flow::after {
    content: "";
    position: absolute;
    inset-inline-start: 28.5px;
    top: 15%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8FE0EC;
    box-shadow: 0 0 12px rgba(143, 224, 236, .9);
    animation: flow-dot 4.5s ease-in-out infinite;
}

.flow-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    transition: background .25s ease, transform .25s var(--ease);
}

.flow-step:hover {
    background: rgba(255, 255, 255, .09);
    transform: translateX(-3px);
}

.flow-icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(123, 211, 223, .28), rgba(123, 211, 223, .1));
    border: 1px solid rgba(143, 224, 236, .24);
    color: #8FE0EC;
}

.flow-icon .icon {
    width: 19px;
    height: 19px;
}

.flow-step strong {
    display: block;
    font-size: .85rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
}

.flow-step small {
    display: block;
    font-size: .67rem;
    color: rgba(234, 246, 248, .6);
    line-height: 1.5;
}

/* ---------- metrics ---------- */
.metrics-section {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding-block: 38px;
}

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

.metric {
    padding: 6px 16px;
    text-align: center;
    border-inline-end: 1px solid var(--line);
}

.metric:last-child {
    border-inline-end: 0;
}

.metric-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-size: clamp(2.1rem, 3.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-2);
}

.metric-number small {
    font-size: .5em;
    font-weight: 700;
    color: var(--brand-2);
}

.metric-label {
    display: block;
    margin-top: 3px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-3);
}

/* ---------- about ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: clamp(32px, 5vw, 62px);
}

.about-copy h2,
.contact-copy h2 {
    margin-top: 14px;
}

.about-copy p,
.contact-copy > p {
    max-width: 58ch;
    margin-bottom: 13px;
    font-size: .97rem;
    color: var(--ink-2);
    line-height: 1.9;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 26px;
}

.value-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.value-icon {
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 0;
    border-radius: 11px;
}

.value-icon .icon {
    width: 17px;
    height: 17px;
}

.value-card h3 {
    align-self: end;
    margin-bottom: 1px;
    font-size: .84rem;
    font-weight: 800;
    color: var(--ink);
}

.value-card p {
    align-self: start;
    margin: 0;
    font-size: .74rem;
    color: var(--ink-3);
    line-height: 1.65;
}

.brand-showcase {
    position: relative;
    overflow: hidden;
    padding: 28px 26px 24px;
    text-align: center;
    background: linear-gradient(160deg, #FFFFFF 0%, #F0FAFB 100%);
    border: 1px solid #DCEDEF;
    border-radius: var(--radius-lg);
    box-shadow: 0 34px 64px -44px rgba(8, 60, 74, .38);
}

.brand-showcase::before,
.brand-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.brand-showcase::before {
    width: 190px;
    height: 190px;
    top: -70px;
    inset-inline-start: -60px;
    background: radial-gradient(circle, rgba(255, 216, 188, .6), transparent 70%);
}

.brand-showcase::after {
    width: 220px;
    height: 220px;
    bottom: -110px;
    inset-inline-end: -70px;
    background: radial-gradient(circle, rgba(150, 222, 231, .5), transparent 70%);
}

.showcase-label {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 11px;
    border: 1px solid #CBE7EA;
    border-radius: 999px;
    background: rgba(216, 241, 244, .7);
    font-size: .65rem;
    font-weight: 800;
    color: var(--brand-2);
}

.brand-showcase img {
    position: relative;
    z-index: 1;
    width: min(100%, 300px);
    margin: 0 auto 8px;
    mix-blend-mode: multiply;
}

.brand-showcase p {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    font-size: .8rem;
    color: var(--ink-3);
}

.showcase-chips {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.showcase-chips span {
    padding: 3px 10px;
    border: 1px solid #DBEDEF;
    border-radius: 999px;
    background: #fff;
    font-size: .62rem;
    font-weight: 800;
    color: var(--brand-2);
}

.showcase-year {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E1F0F1;
    font-size: .66rem;
    font-weight: 600;
    color: var(--ink-3);
}

/* ---------- team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.team-card {
    padding: 24px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: #CFE7EA;
    box-shadow: 0 26px 48px -34px rgba(8, 60, 74, .32);
}

.team-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 16px;
}

.team-icon .icon {
    width: 24px;
    height: 24px;
}

.team-card h3 {
    margin-bottom: 5px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
}

.team-card p {
    font-size: .79rem;
    color: var(--ink-2);
    line-height: 1.75;
}

/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: start;
    gap: clamp(30px, 4.5vw, 58px);
}

.contact-list {
    display: grid;
    gap: 13px;
    margin-top: 26px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--brand-2);
    box-shadow: var(--shadow-sm);
}

.contact-icon .icon {
    width: 20px;
    height: 20px;
}

.contact-list strong {
    display: block;
    font-size: .74rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.4;
}

.contact-list li div > a,
.contact-list li div > span {
    font-size: .84rem;
    color: var(--ink-3);
    line-height: 1.5;
}

.contact-list a:hover {
    color: var(--brand-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-card {
    padding: 25px;
    background: #fff;
    border: 1px solid #E4EFF0;
    border-radius: 28px;
    box-shadow: 0 34px 64px -46px rgba(8, 60, 74, .38);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.field label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink);
}

.field label > span {
    color: var(--alert);
}

.field label .optional {
    font-size: .68rem;
    font-weight: 500;
    color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #DCEBED;
    border-radius: 13px;
    background: #F8FCFC;
    font-family: inherit;
    font-size: .87rem;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
    min-height: 118px;
    resize: vertical;
    line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #A3B8C0;
}

.field select {
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #7BD3DF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(28, 147, 168, .12);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
    border-color: #E7A2AA;
    background: #FFF8F8;
}

.field-error {
    font-size: .68rem;
    font-weight: 600;
    color: #C24E5D;
    line-height: 1.4;
}

.form-hint {
    margin-top: 9px;
    text-align: center;
    font-size: .68rem;
    color: var(--ink-3);
    line-height: 1.6;
}

.form-message {
    display: none;
    margin-top: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: center;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.6;
}

.form-message.success {
    display: block;
    border: 1px solid #CDEBDC;
    background: #EDF8F2;
    color: #187A51;
}

.form-message.error {
    display: block;
    border: 1px solid #F2CDD2;
    background: #FFF3F4;
    color: #B6404F;
}

/* ---------- footer ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(46px, 6vw, 72px);
    background: #052B36;
    color: #C6DDE2;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 420px;
    background: radial-gradient(circle, rgba(28, 147, 168, .22), transparent 66%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 36px;
    padding-bottom: 42px;
}

.brand-light .brand-text strong {
    color: #fff;
}

.brand-light .brand-text small {
    color: #8FB4BD;
}

.brand-light .brand-mark {
    border-color: rgba(255, 255, 255, .2);
    box-shadow: none;
}

.footer-brand p {
    max-width: 34ch;
    margin: 14px 0 18px;
    font-size: .83rem;
    line-height: 1.8;
    color: #9DBCC4;
}

.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #BFE3E9;
    transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}

.socials a:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-3px);
}

.socials .icon {
    width: 17px;
    height: 17px;
}

.footer-col h3 {
    margin: 4px 0 14px;
    font-size: .87rem;
    font-weight: 800;
    color: #fff;
}

.footer-col > a {
    display: block;
    width: fit-content;
    margin-bottom: 9px;
    font-size: .82rem;
    color: #A9C6CD;
    transition: color .2s ease, transform .2s var(--ease);
}

.footer-col > a:hover {
    color: #8FE0EC;
    transform: translateX(-3px);
}

.footer-cta p {
    max-width: 30ch;
    margin-bottom: 14px;
    font-size: .81rem;
    line-height: 1.75;
    color: #9DBCC4;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 17px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .72rem;
    color: #7FA6AF;
}

.footer-made {
    color: #6C949E;
}

/* ---------- back to top ---------- */
.to-top {
    position: fixed;
    inset-inline-end: 20px;
    bottom: 20px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #DCEBED;
    border-radius: 14px;
    background: #fff;
    color: var(--brand-2);
    box-shadow: 0 16px 30px -18px rgba(8, 60, 74, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s var(--ease),
                background .25s ease, color .25s ease;
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--brand-2);
    color: #fff;
}

.to-top .icon {
    width: 20px;
    height: 20px;
}

/* ---------- 404 page ---------- */
.error-main {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--header-h) - 70px);
    padding-block: clamp(50px, 9vw, 90px);
    text-align: center;
    isolation: isolate;
}

.error-main::before {
    content: "";
    position: absolute;
    inset: 5% 10%;
    z-index: -1;
    background:
        radial-gradient(420px 300px at 30% 30%, rgba(216, 241, 244, .85), transparent 70%),
        radial-gradient(360px 280px at 75% 65%, rgba(255, 227, 209, .7), transparent 72%);
    pointer-events: none;
}

.error-code {
    display: block;
    font-size: clamp(5rem, 16vw, 10.5rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #1EA0B5, #7BD3DF 55%, #0B6B80);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-main h1 {
    margin: 6px 0 10px;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ink);
}

.error-main p {
    max-width: 48ch;
    margin: 0 auto 24px;
    font-size: .97rem;
    line-height: 1.9;
    color: var(--ink-2);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.error-footer {
    padding-block: 20px;
    border-top: 1px solid var(--line);
    background: #fff;
    text-align: center;
    font-size: .74rem;
    color: var(--ink-3);
}

/* ---------- reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s var(--ease);
    transition-delay: calc(var(--reveal-delay, 0ms) + 40ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- keyframes ---------- */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(28, 147, 168, .45); }
    70% { box-shadow: 0 0 0 7px rgba(28, 147, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(28, 147, 168, 0); }
}

@keyframes pulse-ring-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, .45); }
    70% { box-shadow: 0 0 0 7px rgba(34, 160, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

@keyframes scan-line {
    0% { left: -2%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: 101%; opacity: 0; }
}

@keyframes flow-dot {
    0% { top: 12%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 88%; opacity: 0; }
}

@keyframes bump {
    0% { transform: scale(1); }
    45% { transform: scale(1.12); color: var(--brand-2); }
    100% { transform: scale(1); }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) and (min-width: 961px) {
    .primary-nav > a {
        padding-inline: 9px;
        font-size: .84rem;
    }

    .primary-nav .nav-cta {
        padding-inline: 15px;
    }

    .brand-text strong {
        font-size: 1.28rem;
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .tech-grid {
        gap: 36px;
    }

    .float-a {
        left: -8px;
    }

    .float-b {
        right: -6px;
    }

    .about-grid,
    .contact-grid {
        gap: 38px;
    }
}

@media (max-width: 960px) {
    :root {
        --header-h: 74px;
    }

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: calc(var(--header-h) + 10px);
        inset-inline: max(16px, calc((100vw - var(--container)) / 2));
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100vh - var(--header-h) - 30px);
        overflow: auto;
        padding: 13px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: 0 32px 60px -24px rgba(8, 60, 74, .38);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .22s ease, visibility .22s ease, transform .22s var(--ease);
    }

    .primary-nav.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .primary-nav > a {
        padding: 12px 14px;
        border-radius: 12px;
        font-size: .93rem;
    }

    .primary-nav .nav-cta {
        margin: 7px 0 0;
        justify-content: center;
        border-radius: 12px;
        min-height: 46px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-copy {
        width: 100%;
        max-width: 690px;
        margin-inline: auto;
        text-align: center;
    }

    .lead {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-checks,
    .hero-stats {
        justify-content: center;
    }

    .hero-stats {
        margin-inline: auto;
    }

    .hero-visual {
        margin-top: 4px;
    }

    .tech-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-copy {
        text-align: center;
    }

    .tech-copy p {
        margin-inline: auto;
    }

    .tech-list {
        max-width: 430px;
        margin-inline: auto;
        text-align: start;
    }

    .security-pills {
        justify-content: center;
    }

    .tech-visual {
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
    }

    .brand-showcase {
        max-width: 520px;
        width: 100%;
        margin-inline: auto;
    }

    .contact-copy {
        text-align: center;
    }

    .contact-copy > p {
        margin-inline: auto;
    }

    .contact-list {
        max-width: 420px;
        margin-inline: auto;
        text-align: start;
    }

    .contact-card {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }

    .steps::before {
        display: none;
    }

    .step p {
        max-width: 36ch;
    }

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

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 30px;
    }

    .footer-cta {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 20px;
        padding-top: 8px;
    }

    .footer-cta h3,
    .footer-cta p {
        margin: 0;
        max-width: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero {
        padding-top: 38px;
    }

    .float-card {
        display: none;
    }

    .metric {
        padding-inline: 8px;
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }

    .metric:nth-child(2) {
        border-inline-end: 0;
    }

    .metric:nth-child(3),
    .metric:nth-child(4) {
        padding-top: 18px;
        border-top: 1px solid var(--line);
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-cta {
        grid-column: 1 / -1;
        display: block;
    }

    .footer-cta h3 {
        margin-bottom: 6px;
    }

    .footer-cta p {
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .monitor-head {
        padding: 17px 17px 12px;
    }

    .monitor-profile {
        padding: 0 17px 14px;
    }

    .vitals {
        padding: 0 17px 13px;
        gap: 8px;
    }

    .vital {
        padding: 8px;
        gap: 7px;
    }

    .vital-icon {
        width: 31px;
        height: 31px;
    }

    .chart-block {
        padding: 0 17px 15px;
    }

    .monitor-foot {
        padding: 11px 17px;
    }

    .section-head h2 br,
    .about-copy h2 br,
    .contact-copy h2 br,
    .tech-copy h2 br {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-card {
        padding: 20px;
    }
}

@media (max-width: 860px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    :root {
        --header-h: 68px;
    }

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

    .brand-text strong {
        font-size: 1.2rem;
    }

    .brand-text small {
        font-size: .61rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 340px;
        margin-inline: auto;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-checks {
        justify-content: center;
        gap: 7px 16px;
        font-size: .8rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding-top: 17px;
    }

    .hero-stats > div {
        padding-inline: 6px;
    }

    .hero-stats dt {
        font-size: 1.12rem;
    }

    .hero-stats dd {
        font-size: .66rem;
    }

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

    .steps {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .step {
        display: grid;
        grid-template-columns: 58px 1fr;
        grid-template-rows: auto auto;
        column-gap: 14px;
        align-items: center;
        padding: 0;
    }

    .step-icon {
        grid-row: 1 / 3;
        margin-bottom: 0;
    }

    .step-number {
        top: -14px;
        inset-inline-start: 44px;
        font-size: 2.4rem;
    }

    .step h3 {
        align-self: end;
        margin-bottom: 1px;
    }

    .step p {
        align-self: start;
        max-width: none;
        font-size: .82rem;
    }

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

    .about-values {
        grid-template-columns: 1fr;
    }

    .value-card {
        display: grid;
        grid-template-columns: 34px 1fr;
        column-gap: 10px;
        align-items: center;
    }

    .value-icon {
        grid-row: 1 / 3;
        margin-bottom: 0;
    }

    .value-card h3 {
        align-self: end;
    }

    .value-card p {
        align-self: start;
    }

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

    .metric-number {
        font-size: 2rem;
    }

    .metric-label {
        font-size: .7rem;
    }

    .chart-head {
        font-size: .63rem;
    }

    .chart-badge {
        font-size: .55rem;
    }

    .monitor-foot {
        font-size: .61rem;
    }

    .flow-card {
        padding: 16px;
    }

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

    .footer-brand,
    .footer-cta {
        grid-column: auto;
    }

    .footer-col > a {
        font-size: .85rem;
    }

    .to-top {
        width: 42px;
        height: 42px;
        inset-inline-end: 14px;
        bottom: 14px;
    }
}

@media (max-width: 400px) {
    .eyebrow {
        font-size: .68rem;
        padding: 6px 11px;
    }

    .vital-number b {
        font-size: .98rem;
    }

    .vital-number small {
        display: none;
    }

    .baby-meta span {
        font-size: .64rem;
    }

    .status-pill {
        padding: 4px 7px;
        font-size: .6rem;
    }

    .monitor-kicker {
        font-size: .62rem;
    }

    .chart-badge {
        display: none;
    }
}

/* ---------- admin login ---------- */
.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    margin-inline-start: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-login .icon {
    width: 16px;
    height: 16px;
    color: var(--brand-2);
}

.nav-login:hover {
    color: var(--brand-2);
    border-color: var(--brand);
    background: rgba(216, 241, 244, .55);
    box-shadow: 0 6px 16px -12px rgba(12, 111, 133, .8);
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 43, 56, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-dialog {
    position: relative;
    width: min(100%, 420px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 30px 26px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 40px 90px -40px rgba(8, 60, 74, .65);
    transform: translateY(14px) scale(.98);
    transition: transform .28s var(--ease);
}

.modal.open .modal-dialog {
    transform: none;
}

.modal-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-3);
    transition: color .2s ease, background .2s ease;
}

.modal-close:hover {
    color: var(--alert);
    background: var(--rose);
}

.modal-close .icon {
    width: 18px;
    height: 18px;
}

.login-head {
    text-align: center;
    margin-bottom: 20px;
}

.login-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 14px 26px -16px rgba(12, 111, 133, .9);
}

.login-mark .icon {
    width: 26px;
    height: 26px;
    stroke-width: 1.6;
}

.login-head h2 {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--ink);
}

.login-head p {
    margin-top: 5px;
    font-size: .82rem;
    color: var(--ink-3);
    line-height: 1.7;
}

.login-form .field {
    margin-bottom: 14px;
}

.pass-wrap {
    position: relative;
}

.pass-wrap input {
    padding-inline-end: 64px;
}

.pass-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 6px;
    transform: translateY(-50%);
    padding: 5px 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--brand-2);
    font-size: .72rem;
    font-weight: 700;
}

.pass-toggle:hover {
    background: var(--brand-soft);
}

.login-error {
    margin: -2px 0 12px;
    padding: 9px 12px;
    border-radius: 11px;
    background: var(--rose);
    color: var(--alert);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.6;
}

.login-error[hidden] {
    display: none;
}

.login-form .login-demo {
    margin-top: 10px;
    border: 1px dashed var(--line, rgba(12, 111, 133, .28));
}

.login-note {
    margin-top: 14px;
    text-align: center;
    font-size: .7rem;
    color: var(--ink-3);
    line-height: 1.65;
}

.login-form .btn .icon {
    width: 17px;
    height: 17px;
}

.login-form .btn[disabled] {
    opacity: .72;
    cursor: progress;
}

.login-form .btn[aria-busy="true"] {
    pointer-events: none;
}

@keyframes shake-x {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.modal-dialog.shake {
    animation: shake-x .4s ease;
}

@media (max-width: 960px) {
    .nav-login {
        justify-content: center;
        margin: 7px 0 0;
        padding: 12px 14px;
        border-radius: 12px;
        min-height: 46px;
        background: #F8FCFC;
    }
}

@media (max-width: 560px) {
    .modal {
        padding: 14px;
    }

    .modal-dialog {
        padding: 26px 18px 20px;
        border-radius: 22px;
    }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .chart-line {
        stroke-dashoffset: 0;
    }

    .float-card,
    .chart-plot::after {
        animation: none;
    }
}
