:root {
    --navy-950: #071426;
    --navy-900: #0d1d33;
    --navy-800: #102b4e;
    --navy-700: #16436d;
    --cyan-500: #15b8c5;
    --cyan-300: #6edbe1;
    --green-500: #21c786;
    --amber-500: #f3b53f;
    --slate-900: #19263a;
    --slate-700: #42526a;
    --slate-500: #758399;
    --slate-300: #ccd5df;
    --slate-100: #eef3f7;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(7, 20, 38, .14);
}

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

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--slate-900);
    background: #f7fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.ambient {
    position: fixed;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .16;
}
.ambient-one { top: -260px; right: -160px; background: var(--cyan-500); }
.ambient-two { top: 440px; left: -330px; background: #5878d8; }

.topbar {
    width: min(1180px, calc(100% - 48px));
    height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(145deg, var(--navy-800), var(--cyan-500));
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(16, 67, 109, .22);
}
.brand strong,
.brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.brand small {
    margin-top: 1px;
    color: var(--slate-500);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

nav { display: flex; gap: 28px; }
nav a {
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 650;
    transition: color .2s ease;
}
nav a:hover { color: var(--cyan-500); }

main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 70px;
    align-items: center;
    padding: 44px 0 66px;
}

.eyebrow {
    display: inline-block;
    color: #087f89;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1 {
    max-width: 680px;
    margin: 15px 0 18px;
    color: var(--navy-950);
    font-size: clamp(42px, 5vw, 67px);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.hero-copy > p {
    max-width: 650px;
    margin: 0;
    color: var(--slate-700);
    font-size: 18px;
    line-height: 1.7;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}
.button {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    box-shadow: 0 14px 30px rgba(16, 43, 78, .22);
}
.button.secondary {
    border-color: var(--slate-300);
    color: var(--navy-800);
    background: rgba(255,255,255,.74);
}
.button.secondary:hover { border-color: var(--cyan-500); }

.status-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    color: var(--white);
    background:
        radial-gradient(circle at 92% 8%, rgba(21,184,197,.28), transparent 31%),
        linear-gradient(145deg, var(--navy-950), var(--navy-800));
    box-shadow: var(--shadow);
}
.status-panel::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}
.panel-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.panel-kicker {
    color: var(--cyan-300);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.panel-heading h2 {
    margin: 7px 0 0;
    font-size: 22px;
}
.badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}
.badge.checking { background: rgba(255,255,255,.1); color: #dfe8f3; }
.badge.online { background: rgba(33,199,134,.14); color: #79edbd; }
.badge.offline { background: rgba(244,91,91,.16); color: #ffaaaa; }
.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(255,255,255,.06);
}
.badge.online .pulse { animation: pulse 1.8s infinite; }

.metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 28px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.08);
}
.metrics div {
    min-height: 88px;
    padding: 17px;
    background: rgba(7,20,38,.45);
}
.metrics dt {
    margin-bottom: 8px;
    color: #aebed1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.metrics dd {
    margin: 0;
    font-size: 15px;
    font-weight: 720;
}
.paused-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--amber-500);
}
.last-check {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: #9fb0c5;
    font-size: 11px;
}

.section { padding: 86px 0 20px; }
.section-heading { max-width: 660px; margin-bottom: 36px; }
.section-heading.compact { margin-bottom: 26px; }
.section-heading h2 {
    margin: 10px 0 12px;
    color: var(--navy-950);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.section-heading p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
    line-height: 1.65;
}

.flow {
    display: grid;
    grid-template-columns: 1fr 38px 1fr 38px 1fr;
    align-items: center;
}
.flow-card {
    position: relative;
    min-height: 260px;
    padding: 25px;
    border: 1px solid #dce4eb;
    border-radius: 18px;
    background: rgba(255,255,255,.8);
    box-shadow: 0 14px 34px rgba(20,43,70,.06);
}
.flow-card.featured {
    border-color: rgba(21,184,197,.42);
    box-shadow: 0 18px 48px rgba(21,184,197,.12);
}
.step {
    position: absolute;
    top: 22px;
    right: 22px;
    color: #a2adba;
    font-size: 12px;
    font-weight: 800;
}
.icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-weight: 850;
}
.odoo-icon { color: #704b6e; background: #f2eaf2; }
.expertha-icon { color: #087f89; background: #dff6f7; }
.mh-icon { color: #8a6412; background: #fff3d7; font-size: 13px; }
.flow-card h3 { margin: 20px 0 8px; font-size: 20px; }
.flow-card p {
    min-height: 67px;
    margin: 0;
    color: var(--slate-700);
    font-size: 14px;
    line-height: 1.6;
}
.state {
    display: inline-flex;
    margin-top: 20px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.state.ready { color: #0c7853; background: #dcf8ed; }
.state.paused { color: #8a6412; background: #fff1cf; }
.connector { color: #96a5b7; text-align: center; font-size: 23px; }

.resources { padding-bottom: 70px; }
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.resource-card {
    min-height: 112px;
    padding: 20px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid #dce4eb;
    border-radius: 16px;
    background: var(--white);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--cyan-500);
    box-shadow: 0 14px 35px rgba(15,44,74,.09);
}
.resource-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--navy-800);
    background: var(--slate-100);
    font-size: 12px;
    font-weight: 850;
}
.resource-card strong,
.resource-card small { display: block; }
.resource-card strong { margin-bottom: 5px; font-size: 14px; }
.resource-card small { color: var(--slate-500); font-size: 11px; line-height: 1.45; }
.resource-arrow { color: var(--cyan-500); font-size: 18px; }

.security-note {
    margin: 25px 0 75px;
    padding: 22px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid #dce8e5;
    border-radius: 16px;
    background: #f1faf7;
}
.shield {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #087854;
    background: #d6f5e9;
    font-weight: 850;
}
.security-note strong { font-size: 13px; }
.security-note p { margin: 4px 0 0; color: var(--slate-700); font-size: 12px; }

footer {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 25px 0 36px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #dce4eb;
    color: var(--slate-500);
    font-size: 11px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(121,237,189,.08); }
    50% { box-shadow: 0 0 0 8px rgba(121,237,189,.02); }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 34px; }
    .hero-copy { padding-top: 30px; }
    .flow { grid-template-columns: 1fr; gap: 14px; }
    .connector { transform: rotate(90deg); }
    .resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .topbar, main, footer { width: min(100% - 28px, 1180px); }
    .topbar { height: 74px; }
    nav a:not(:first-child) { display: none; }
    h1 { font-size: 40px; }
    .hero { padding-top: 24px; }
    .actions { flex-direction: column; }
    .status-panel { padding: 22px; }
    .panel-heading { align-items: flex-start; }
    .metrics { grid-template-columns: 1fr; }
    .section { padding-top: 68px; }
    footer { gap: 12px; flex-direction: column; }
}
