:root {
    --bg: #070b14;
    --bg-soft: #0c1220;
    --panel: #101827;
    --panel-2: #131d2d;
    --border: rgba(255,255,255,.09);
    --text: #f5f7fb;
    --muted: #98a3b6;
    --primary: #8b5cf6;
    --primary-2: #6366f1;
    --cyan: #22d3ee;
    --success: #34d399;
    --danger: #fb7185;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(0,0,0,.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(99,102,241,.10),
            transparent 28%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    max-width: 780px;
}

.site-shell {
    min-height: 100vh;
    overflow: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7,11,20,.76);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );
    box-shadow: 0 10px 30px rgba(99,102,241,.35);
    color: white;
    font-weight: 900;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.desktop-nav a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 10px 17px;
    border: 1px solid rgba(139,92,246,.4);
    border-radius: 11px;
    background: rgba(139,92,246,.12);
    color: white !important;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 25px;
}

.mobile-menu {
    display: none;
}

.hero {
    position: relative;
    padding: 115px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 18px rgba(52,211,153,.75);
}

.hero h1 {
    margin: 20px 0;
    max-width: 720px;
    font-size: clamp(52px, 7vw, 88px);
    line-height: .96;
    letter-spacing: -.07em;
}

.hero h1 span {
    display: block;
    background:
        linear-gradient(
            90deg,
            #c4b5fd,
            #818cf8,
            #67e8f9
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 750;
    transition: .2s ease;
}

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

.button-primary {
    color: white;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );
    box-shadow: 0 14px 35px rgba(99,102,241,.25);
}

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

.button-light {
    background: white;
    color: #111827;
}

.button-large {
    min-height: 52px;
    padding: 0 23px;
}

.button-full {
    width: 100%;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
    color: #778399;
    font-size: 12px;
}

.hero-visual {
    perspective: 1000px;
}

.dashboard-window {
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    overflow: hidden;
    background: #0d1422;
    box-shadow: var(--shadow);
    transform: rotateY(-7deg) rotateX(3deg);
}

.window-top {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
    border-bottom: 1px solid var(--border);
    background: #0a101c;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b4658;
}

.window-title {
    color: #657187;
    font-size: 10px;
}

.mock-dashboard {
    display: grid;
    grid-template-columns: 58px 1fr;
    min-height: 370px;
}

.mock-sidebar {
    padding: 17px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-right: 1px solid var(--border);
}

.mock-logo {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(135deg,#8b5cf6,#6366f1);
    font-size: 12px;
    font-weight: 900;
}

.mock-sidebar span:not(.active) {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background: #253044;
}

.mock-sidebar .active {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    background: #7c3aed;
}

.mock-content {
    padding: 28px;
}

.mock-heading small,
.mock-card small {
    display: block;
    color: #68758a;
    font-size: 8px;
    letter-spacing: .12em;
    font-weight: 800;
}

.mock-heading strong {
    display: block;
    margin-top: 5px;
    font-size: 17px;
}

.mock-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 23px;
}

.mock-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
}

.mock-card strong {
    display: block;
    margin: 5px 0;
    font-size: 24px;
}

.mock-card span {
    color: #34d399;
    font-size: 9px;
}

.mock-chart {
    height: 140px;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.chart-bars {
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 10px;
}

.chart-bars i {
    width: 10%;
    min-height: 15px;
    border-radius: 4px 4px 1px 1px;
    background: linear-gradient(
        to top,
        #6366f1,
        #22d3ee
    );
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    pointer-events: none;
}

.glow-one {
    top: 0;
    right: 10%;
    background: #7c3aed;
}

.glow-two {
    bottom: 0;
    left: 10%;
    background: #0891b2;
}

.logo-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logo-strip .container {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #59667b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.section {
    padding: 125px 0;
}

.section-alt {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255,255,255,.025),
            transparent
        );
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-heading h2,
.split-section h2,
.cta-card h2 {
    margin: 14px 0;
    font-size: clamp(38px,5vw,62px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.section-heading p {
    color: var(--muted);
    font-size: 17px;
}

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

.feature-card {
    min-height: 290px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.015)
        );
    transition: .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139,92,246,.35);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 32px;
    border-radius: 14px;
    background: rgba(139,92,246,.12);
    color: #c4b5fd;
    font-size: 20px;
}

.feature-card h3 {
    margin: 0 0 9px;
    font-size: 21px;
}

.feature-card p {
    margin: 0 0 25px;
    color: var(--muted);
}

.feature-card a,
.text-link {
    color: #a5b4fc;
    font-size: 14px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.large-copy {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.65;
}

.cta-section {
    padding: 70px 0 120px;
}

.cta-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 60px;
    overflow: hidden;
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(34,211,238,.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(124,58,237,.18),
            rgba(30,41,59,.6)
        );
}

.cta-card p {
    color: var(--muted);
}

.auth-section {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 80px 20px;
}

.auth-card {
    width: min(470px,100%);
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(16,24,39,.9);
    box-shadow: var(--shadow);
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-brand {
    margin-bottom: 35px;
}

.auth-heading h1 {
    margin: 10px 0;
    font-size: 31px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.auth-heading p {
    margin: 0;
    color: var(--muted);
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    color: #758196;
    font-size: 13px;
}

.auth-footer a {
    color: #a5b4fc;
    font-weight: 700;
}

.form {
    display: grid;
    gap: 19px;
}

.form label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.form input,
.form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    padding: 13px 14px;
    background: #0a111e;
    color: white;
    transition: .2s ease;
}

.form input:focus,
.form textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.form input:disabled {
    opacity: .55;
}

.form textarea {
    resize: vertical;
    min-height: 140px;
}

.form-error,
.field-error {
    color: var(--danger);
    font-size: 12px;
}

.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.app-page {
    padding: 70px 0 110px;
    min-height: calc(100vh - 76px);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 35px;
}

.app-header h1 {
    margin: 8px 0;
    font-size: clamp(35px,5vw,55px);
    line-height: 1;
    letter-spacing: -.055em;
}

.app-header p {
    margin: 0;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card,
.panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(16,24,39,.75);
}

.stat-card {
    padding: 23px;
}

.stat-label {
    display: block;
    color: #738096;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.stat-card strong {
    display: block;
    margin: 8px 0 2px;
    font-size: 28px;
    letter-spacing: -.04em;
}

.stat-meta {
    color: #738096;
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 18px;
}

.panel {
    padding: 28px;
}

.panel-heading h2 {
    margin: 5px 0 20px;
    font-size: 23px;
    letter-spacing: -.035em;
}

.quick-actions {
    display: grid;
}

.quick-actions a {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.quick-actions a:last-child {
    border-bottom: 0;
}

.quick-actions a > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(139,92,246,.1);
    color: #c4b5fd;
}

.quick-actions strong {
    display: block;
    font-size: 14px;
}

.quick-actions small {
    display: block;
    color: #6f7c90;
    font-size: 11px;
}

.welcome-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-symbol {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg,#8b5cf6,#6366f1);
    font-weight: 900;
    box-shadow: 0 15px 35px rgba(99,102,241,.25);
}

.welcome-panel h2 {
    margin: 22px 0 5px;
    font-size: 25px;
}

.welcome-panel p {
    color: var(--muted);
}

.contact-section {
    min-height: calc(100vh - 76px);
    padding: 95px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.contact-copy h1 {
    margin: 15px 0;
    font-size: clamp(44px,6vw,70px);
    line-height: .98;
    letter-spacing: -.06em;
}

.contact-copy h1 span {
    display: block;
    color: #a5b4fc;
}

.contact-copy > p {
    max-width: 500px;
    color: var(--muted);
    font-size: 18px;
}

.contact-points {
    display: grid;
    gap: 16px;
    margin-top: 40px;
}

.contact-points div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-points span {
    color: #6366f1;
    font-size: 11px;
    font-weight: 800;
}

.contact-points strong {
    font-size: 14px;
}

.contact-card {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(16,24,39,.85);
    box-shadow: var(--shadow);
}

.simple-page {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
}

.health-card {
    text-align: center;
    padding: 60px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: rgba(16,24,39,.8);
}

.health-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(52,211,153,.1);
    color: #34d399;
    font-size: 25px;
}

.health-card h1 {
    margin: 10px 0;
}

.health-card p {
    color: var(--muted);
}

.toast-stack {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 200;
    display: grid;
    gap: 10px;
    width: min(380px,calc(100% - 40px));
}

.toast {
    padding: 14px 16px;
    border: 1px solid rgba(52,211,153,.2);
    border-radius: 12px;
    background: #0d211c;
    color: #a7f3d0;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.footer {
    padding: 70px 0 25px;
    border-top: 1px solid var(--border);
    background: #050810;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3,1fr);
    gap: 50px;
}

.footer-brand {
    margin-bottom: 18px;
}

.footer p {
    max-width: 300px;
    color: #677389;
    font-size: 13px;
}

.footer h4 {
    margin: 0 0 15px;
    color: #dbe2ed;
    font-size: 12px;
}

.footer-grid > div:not(:first-child) a {
    display: block;
    margin: 8px 0;
    color: #667287;
    font-size: 12px;
}

.footer-grid > div:not(:first-child) a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: #4f5b6d;
    font-size: 11px;
}

@media (max-width: 900px) {

    .hero-grid,
    .split-section,
    .contact-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 75px;
    }

    .hero-visual {
        max-width: 650px;
    }

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

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

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

    .contact-grid {
        gap: 45px;
    }

    .dashboard-window {
        transform: none;
    }
}

@media (max-width: 680px) {

    .container {
        width: min(100% - 28px, 1160px);
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        z-index: 99;
        padding: 18px;
        border-bottom: 1px solid var(--border);
        background: rgba(7,11,20,.97);
    }

    .mobile-menu.open {
        display: grid;
        gap: 5px;
    }

    .mobile-menu a {
        padding: 14px;
        border-radius: 10px;
        color: #b7c0cf;
    }

    .mobile-menu a:hover {
        background: rgba(255,255,255,.05);
        color: white;
    }

    .hero h1 {
        font-size: 54px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .logo-strip .container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px 0;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading h2,
    .split-section h2,
    .cta-card h2 {
        font-size: 40px;
    }

    .cta-card {
        padding: 35px 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .form-two {
        grid-template-columns: 1fr;
    }

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

    .app-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .footer-bottom {
        flex-direction: column;
    }

}
