:root {
    --background: #07161d;
    --background-soft: #0c2029;
    --surface: rgba(14, 39, 49, .78);
    --surface-strong: #102a35;
    --surface-light: rgba(255, 255, 255, .06);
    --border: rgba(161, 220, 216, .14);
    --text: #f4fbfa;
    --muted: #a8bfbe;
    --primary: #55dfb6;
    --primary-dark: #2cb28c;
    --secondary: #49add4;
    --warning: #f6c96e;
    --shadow: 0 24px 80px rgba(0, 0, 0, .32);
    --radius-lg: 30px;
    --radius-md: 21px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at top left, #123b45 0, transparent 38%),
        linear-gradient(145deg, #06151c, #0a222a 52%, #07171d);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.modal-open {
    overflow: hidden;
}

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

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

button {
    color: inherit;
}

.background-orb {
    position: fixed;
    z-index: -2;
    border-radius: 999px;
    filter: blur(6px);
    pointer-events: none;
    opacity: .44;
}

.orb-one {
    top: 4rem;
    right: -10rem;
    width: 35rem;
    height: 35rem;
    background:
        radial-gradient(circle, rgba(71, 218, 176, .42), transparent 68%);
    animation: float-orb 14s ease-in-out infinite alternate;
}

.orb-two {
    bottom: -12rem;
    left: -10rem;
    width: 38rem;
    height: 38rem;
    background:
        radial-gradient(circle, rgba(61, 160, 205, .32), transparent 68%);
    animation: float-orb 18s ease-in-out infinite alternate-reverse;
}

.background-grid {
    position: fixed;
    z-index: -3;
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image:
        linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 88%);
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-logo {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
}

.brand-logo img {
    width: 42px;
    height: 42px;
}

.brand > span:last-child {
    display: grid;
    gap: 2px;
}

.brand strong {
    font-size: 1.03rem;
}

.brand small {
    color: var(--muted);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.header-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    font-weight: 730;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

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

.button-primary {
    color: #062119;
    background:
        linear-gradient(135deg, #66edc6, #43cda5);
    box-shadow: 0 12px 30px rgba(54, 203, 160, .2);
}

.button-primary:hover {
    box-shadow: 0 16px 38px rgba(54, 203, 160, .28);
}

.button-secondary,
.button-ghost {
    border-color: var(--border);
    background: rgba(255, 255, 255, .055);
}

.button-secondary:hover,
.button-ghost:hover {
    border-color: rgba(85, 223, 182, .38);
    background: rgba(85, 223, 182, .09);
}

.button-large {
    min-height: 52px;
    padding: 14px 23px;
    border-radius: 16px;
}

.hero {
    display: grid;
    width: min(1180px, calc(100% - 40px));
    min-height: 650px;
    align-items: center;
    margin: 0 auto;
    padding: 60px 0 85px;
    gap: 70px;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    content: "";
}

.hero h1,
.section-heading h2,
.dashboard-welcome h1 {
    margin: 0;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(3.2rem, 6vw, 5.8rem);
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-description {
    max-width: 690px;
    margin: 25px 0 31px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.75;
}

.access-notice {
    max-width: 650px;
    margin: 20px 0 0;
    padding: 13px 16px;
    border: 1px solid rgba(246, 201, 110, .24);
    border-radius: 14px;
    color: #f7dd9d;
    background: rgba(246, 201, 110, .07);
    line-height: 1.5;
}

.hero-preview {
    position: relative;
}

.hero-preview::before {
    position: absolute;
    z-index: -1;
    inset: -25px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(85, 223, 182, .19), transparent 67%);
    content: "";
}

.preview-window {
    overflow: hidden;
    border: 1px solid rgba(151, 224, 214, .2);
    border-radius: 27px;
    background:
        linear-gradient(150deg, rgba(22, 57, 67, .95), rgba(9, 28, 36, .97));
    box-shadow: var(--shadow);
    transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
}

.preview-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--border);
}

.preview-toolbar > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}

.preview-toolbar > span:first-child {
    background: #ff796c;
}

.preview-toolbar > span:nth-child(2) {
    background: #f6c96e;
}

.preview-toolbar > span:nth-child(3) {
    background: #55dfb6;
}

.preview-toolbar strong {
    margin-left: auto;
    color: var(--muted);
    font-size: .82rem;
}

.preview-summary {
    display: grid;
    padding: 22px;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-summary div {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(255, 255, 255, .035);
}

.preview-summary small,
.preview-summary strong {
    display: block;
}

.preview-summary small {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: .72rem;
}

.preview-summary strong {
    font-size: 1.2rem;
}

.preview-chart {
    margin: 0 22px 22px;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(4, 19, 25, .44);
}

.chart-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.chart-heading span {
    color: var(--muted);
}

.preview-chart svg {
    display: block;
    width: 100%;
    overflow: visible;
}

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

.chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-width: 4;
}

.preview-chart circle {
    fill: var(--primary);
    stroke: #09212a;
    stroke-width: 5;
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.section-heading p {
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.demo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-card {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    text-align: left;
    background:
        linear-gradient(145deg, rgba(19, 48, 58, .84), rgba(10, 31, 39, .82));
    box-shadow: 0 17px 50px rgba(0, 0, 0, .13);
    cursor: pointer;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.demo-card:hover {
    border-color: rgba(85, 223, 182, .38);
    background:
        linear-gradient(145deg, rgba(25, 61, 70, .94), rgba(11, 36, 44, .9));
    transform: translateY(-4px);
}

.demo-icon,
.dashboard-card-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(85, 223, 182, .16);
    background: rgba(85, 223, 182, .08);
}

.demo-icon {
    width: 53px;
    height: 53px;
    margin-right: 17px;
    border-radius: 17px;
    font-size: 1.45rem;
}

.demo-content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.demo-content small {
    color: var(--muted);
}

.demo-content strong {
    font-size: 1.35rem;
}

.demo-content span {
    overflow: hidden;
    color: #88aaa8;
    font-size: .85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-arrow {
    margin-left: auto;
    padding-left: 16px;
    color: var(--primary);
    font-size: 1.45rem;
}

.feature-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
    min-height: 220px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(15, 42, 51, .62);
}

.feature-grid article > span {
    font-size: 1.8rem;
}

.feature-grid h3 {
    margin: 20px 0 10px;
    font-size: 1.15rem;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.medical-warning {
    display: flex;
    width: min(1120px, calc(100% - 40px));
    align-items: flex-start;
    margin: 45px auto 90px;
    padding: 24px;
    gap: 17px;
    border: 1px solid rgba(246, 201, 110, .2);
    border-radius: var(--radius-md);
    background: rgba(246, 201, 110, .065);
}

.medical-warning > div {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: rgba(246, 201, 110, .1);
}

.medical-warning p {
    margin: 0;
    color: #d8d0b3;
    line-height: 1.7;
}

.medical-warning strong {
    color: #f5dd9e;
}

.site-footer {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 35px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: .85rem;
    line-height: 1.65;
}

.site-footer p {
    margin: 4px 0;
}

.site-footer span {
    padding: 0 6px;
    color: var(--primary);
}

.modal {
    position: fixed;
    z-index: 100;
    display: none;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 10, 14, .78);
    backdrop-filter: blur(10px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px;
    border: 1px solid rgba(157, 225, 215, .2);
    border-radius: 26px;
    background:
        linear-gradient(145deg, #153943, #0b252e);
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    font-size: 1.45rem;
}

.modal-icon {
    display: block;
    margin-bottom: 16px;
    font-size: 2rem;
}

.modal-dialog h2 {
    margin: 0 45px 14px 0;
    font-size: 1.7rem;
}

.modal-dialog p {
    color: var(--muted);
    line-height: 1.7;
}

.modal-value {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.65rem;
}

.modal-placeholder-chart {
    display: flex;
    height: 130px;
    align-items: end;
    margin: 23px 0;
    padding: 14px;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(0, 0, 0, .13);
}

.modal-placeholder-chart span {
    flex: 1;
    border-radius: 7px 7px 3px 3px;
    background:
        linear-gradient(to top, #2fae8c, #61e4bd);
}

.app-main {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 210px);
    margin: 0 auto;
    padding: 55px 0 90px;
}

.app-header {
    border-bottom: 1px solid var(--border);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.user-chip > span:first-child {
    font-size: 1.25rem;
}

.user-chip > span:last-child {
    display: grid;
}

.user-chip small {
    color: var(--muted);
    font-size: .72rem;
}

.dashboard-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 30px;
}

.dashboard-welcome h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.dashboard-welcome p {
    max-width: 700px;
    margin: 17px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.status-banner {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 19px 21px;
    gap: 15px;
    border: 1px solid rgba(85, 223, 182, .23);
    border-radius: 18px;
    background: rgba(85, 223, 182, .07);
}

.status-banner > span {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: #062119;
    background: var(--primary);
    font-weight: 900;
}

.status-banner strong {
    display: block;
    margin-bottom: 3px;
}

.status-banner p {
    margin: 0;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    margin-top: 24px;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(14, 39, 49, .72);
}

.dashboard-card-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 22px;
    border-radius: 14px;
    font-size: 1.3rem;
}

.dashboard-card small,
.dashboard-card strong {
    display: block;
}

.dashboard-card small {
    margin-bottom: 7px;
    color: var(--muted);
}

.dashboard-card strong {
    font-size: 1.2rem;
}

.dashboard-card p {
    margin: 9px 0 0;
    color: #88a4a3;
    font-size: .82rem;
    line-height: 1.5;
}

.empty-state {
    display: flex;
    align-items: center;
    margin-top: 24px;
    padding: 34px;
    gap: 22px;
    border: 1px dashed rgba(167, 220, 216, .24);
    border-radius: 24px;
    background: rgba(255, 255, 255, .025);
}

.empty-state-icon {
    display: grid;
    width: 69px;
    height: 69px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 22px;
    background: rgba(85, 223, 182, .08);
    font-size: 2rem;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@keyframes float-orb {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(35px, -24px, 0) scale(1.08);
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding-top: 45px;
        grid-template-columns: 1fr;
    }

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

    .hero-description,
    .access-notice {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .preview-window {
        transform: none;
    }

    .feature-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .site-header {
        align-items: flex-start;
    }

    .site-header,
    .hero,
    .section,
    .app-main,
    .site-footer {
        width: min(100% - 26px, 1180px);
    }

    .header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .header-actions .button {
        min-height: 39px;
        padding: 8px 12px;
        font-size: .82rem;
    }

    .hero {
        padding: 35px 0 65px;
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .preview-summary,
    .demo-grid,
    .feature-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .preview-summary {
        padding-bottom: 12px;
    }

    .section {
        padding: 60px 0;
    }

    .dashboard-welcome {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-welcome .button {
        align-self: flex-start;
    }

    .user-chip {
        display: none;
    }

    .empty-state {
        align-items: flex-start;
        flex-direction: column;
    }
}
