:root{
    --bg:#07111f;
    --bg-2:#0b1629;
    --card:#ffffff;
    --card-soft:rgba(255,255,255,.08);
    --line:rgba(255,255,255,.10);
    --text:#eaf2ff;
    --text-muted:#9fb0cb;
    --dark:#09111f;
    --accent:#3b82f6;
    --accent-2:#8b5cf6;
    --accent-3:#12b981;
    --danger:#ff5a6b;
    --shadow:0 24px 80px rgba(3,10,22,.40);
    --radius-xl:28px;
    --radius-lg:22px;
    --radius-md:16px;
    --radius-sm:12px;
    --shell:1200px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body.page-login{
    margin:0;
    font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 32%),
        radial-gradient(circle at top right, rgba(139,92,246,.14), transparent 28%),
        linear-gradient(180deg, #07101d 0%, #0a1527 42%, #08101d 100%);
    color:var(--text);
    position:relative;
    overflow-x:hidden;
}

.page-bg{
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 20% 20%, rgba(18,185,129,.08), transparent 18%),
        radial-gradient(circle at 80% 10%, rgba(59,130,246,.12), transparent 22%),
        radial-gradient(circle at 70% 80%, rgba(139,92,246,.08), transparent 18%);
    z-index:0;
}

a{
    color:inherit;
    text-decoration:none;
}

.shell{
    width:min(var(--shell), calc(100% - 32px));
    margin:0 auto;
    position:relative;
    z-index:1;
}

.site-header{
    position:sticky;
    top:0;
    z-index:50;
    backdrop-filter:blur(14px);
    background:rgba(7,17,31,.55);
    border-bottom:1px solid rgba(255,255,255,.06);
}

.header-inner{
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.brand,
.footer-brand{
    display:inline-flex;
    align-items:center;
    gap:12px;
    font-weight:800;
    letter-spacing:.2px;
}

.brand-mark{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:900;
    background:linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow:0 10px 24px rgba(59,130,246,.28);
}

.brand-mark.small{
    width:36px;
    height:36px;
    border-radius:12px;
    font-size:14px;
}

.brand-text{
    font-size:20px;
    color:#fff;
}

.header-nav{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.header-nav a{
    padding:11px 14px;
    border-radius:999px;
    color:var(--text-muted);
    font-weight:600;
    font-size:14px;
    transition:.2s ease;
}

.header-nav a:hover{
    color:#fff;
    background:rgba(255,255,255,.06);
}

.header-nav .nav-cta{
    color:#fff;
    background:linear-gradient(135deg, rgba(59,130,246,.24), rgba(139,92,246,.24));
    border:1px solid rgba(255,255,255,.08);
}

.hero{
    padding:60px 0 34px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:34px;
    align-items:start;
}

.eyebrow,
.section-tag,
.panel-badge,
.strip-kicker,
.metric-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:34px;
    padding:0 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.05);
    color:#cfe0ff;
    font-size:12px;
    font-weight:800;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.hero-copy h1{
    margin:18px 0 18px;
    font-size:clamp(38px, 7vw, 72px);
    line-height:.98;
    letter-spacing:-1.8px;
    color:#fff;
    max-width:820px;
}

.hero-copy h1 span{
    background:linear-gradient(135deg, #a5d8ff 0%, #7aa2ff 42%, #b794ff 100%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.hero-text{
    margin:0;
    max-width:710px;
    color:var(--text-muted);
    font-size:17px;
    line-height:1.8;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:26px;
}

.btn{
    min-height:54px;
    padding:0 22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    font-weight:800;
    font-size:15px;
    transition:.22s ease;
}

.btn-primary{
    color:#fff;
    background:linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow:0 16px 34px rgba(59,130,246,.28);
}

.btn-primary:hover{
    transform:translateY(-2px);
}

.btn-secondary{
    color:#dce7fb;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.04);
}

.btn-secondary:hover{
    background:rgba(255,255,255,.08);
}

.mini-stats{
    margin-top:28px;
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:16px;
}

.mini-card{
    padding:18px;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 12px 30px rgba(0,0,0,.14);
}

.mini-value{
    font-size:18px;
    font-weight:800;
    color:#fff;
}

.mini-label{
    margin-top:8px;
    color:var(--text-muted);
    font-size:13px;
    line-height:1.6;
}

.login-panel-wrap{
    position:sticky;
    top:102px;
}

.login-panel{
    padding:26px;
    border-radius:30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,249,255,.93));
    border:1px solid rgba(255,255,255,.70);
    box-shadow:var(--shadow);
    color:var(--dark);
    position:relative;
    overflow:hidden;
}

.login-panel::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:4px;
    background:linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.login-panel h2{
    margin:18px 0 10px;
    font-size:38px;
    line-height:1;
    letter-spacing:-1px;
    color:#0b1220;
}

.panel-text{
    margin:0 0 18px;
    color:#5b667c;
    font-size:15px;
    line-height:1.8;
}

.alert-error{
    margin:0 0 16px;
    padding:14px 16px;
    border-radius:16px;
    background:#fff0f2;
    border:1px solid #ffd4db;
    color:#b42318;
    font-size:14px;
    font-weight:700;
}

.login-form{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.login-form label{
    font-size:14px;
    font-weight:800;
    color:#1d2435;
    margin-top:4px;
}

.login-form input{
    width:100%;
    height:56px;
    padding:0 16px;
    border-radius:16px;
    border:1px solid #d9e2ef;
    background:#fff;
    outline:none;
    font-size:15px;
    color:#0f172a;
    transition:.18s ease;
}

.login-form input:focus{
    border-color:rgba(59,130,246,.55);
    box-shadow:0 0 0 4px rgba(59,130,246,.12);
}

.login-submit{
    margin-top:8px;
    height:58px;
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg, #2563eb, #8b5cf6);
    color:#fff;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 16px 30px rgba(37,99,235,.24);
    transition:.2s ease;
}

.login-submit:hover{
    transform:translateY(-1px);
}

.trust-row{
    margin-top:16px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.trust-row span{
    min-height:34px;
    padding:0 12px;
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    background:#f3f7ff;
    color:#33528f;
    border:1px solid #e0e9f8;
    font-size:12px;
    font-weight:800;
}

.preview-strip{
    padding:20px 0 26px;
}

.strip-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:18px;
}

.strip-card{
    padding:24px;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
    box-shadow:0 16px 36px rgba(0,0,0,.10);
}

.strip-card h3{
    margin:14px 0 10px;
    font-size:24px;
    line-height:1.15;
    color:#fff;
}

.strip-card p{
    margin:0;
    color:var(--text-muted);
    line-height:1.8;
    font-size:14px;
}

.feature-section,
.analytics-section,
.integrations-section,
.cta-section{
    padding:42px 0;
}

.section-heading{
    max-width:780px;
    margin-bottom:26px;
}

.section-heading.center{
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

.section-heading h2{
    margin:16px 0 12px;
    font-size:clamp(30px, 4vw, 52px);
    line-height:1.02;
    letter-spacing:-1.3px;
    color:#fff;
}

.section-heading p{
    margin:0;
    color:var(--text-muted);
    line-height:1.9;
    font-size:15px;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:18px;
}

.feature-card{
    padding:24px;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    box-shadow:0 16px 36px rgba(0,0,0,.12);
}

.feature-icon{
    width:50px;
    height:50px;
    border-radius:16px;
    display:grid;
    place-items:center;
    font-size:14px;
    font-weight:900;
    color:#fff;
    background:linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow:0 12px 26px rgba(59,130,246,.24);
}

.feature-card h3{
    margin:18px 0 10px;
    font-size:22px;
    color:#fff;
}

.feature-card p{
    margin:0;
    color:var(--text-muted);
    font-size:14px;
    line-height:1.8;
}

.analytics-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    align-items:center;
}

.analytics-copy h2{
    margin:16px 0 12px;
    font-size:clamp(30px, 4vw, 48px);
    line-height:1.04;
    letter-spacing:-1.1px;
    color:#fff;
}

.analytics-copy p{
    color:var(--text-muted);
    line-height:1.9;
    font-size:15px;
}

.check-list{
    list-style:none;
    padding:0;
    margin:18px 0 0;
    display:grid;
    gap:12px;
}

.check-list li{
    position:relative;
    padding-left:28px;
    color:#dbe7fb;
    line-height:1.7;
}

.check-list li::before{
    content:"";
    position:absolute;
    left:0;
    top:8px;
    width:14px;
    height:14px;
    border-radius:50%;
    background:linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow:0 0 0 4px rgba(59,130,246,.10);
}

.analytics-cards{
    display:grid;
    gap:18px;
}

.metric-card,
.activity-card{
    padding:24px;
    border-radius:26px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    box-shadow:0 16px 36px rgba(0,0,0,.12);
}

.metric-large{
    padding:28px;
}

.metric-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}

.metric-trend{
    color:#9af0c8;
    font-weight:900;
    font-size:14px;
}

.metric-number{
    margin-top:16px;
    font-size:56px;
    line-height:1;
    font-weight:900;
    letter-spacing:-2px;
    color:#fff;
}

.metric-number.sm{
    margin-top:4px;
    font-size:28px;
    letter-spacing:-1px;
}

.metric-label{
    margin-top:8px;
    color:var(--text-muted);
    font-size:14px;
}

.metric-bars{
    margin-top:22px;
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:10px;
    align-items:end;
    min-height:84px;
}

.metric-bars span{
    display:block;
    border-radius:999px 999px 10px 10px;
    background:linear-gradient(180deg, rgba(59,130,246,.95), rgba(139,92,246,.95));
}

.metric-bars span:nth-child(1){height:36px;}
.metric-bars span:nth-child(2){height:54px;}
.metric-bars span:nth-child(3){height:45px;}
.metric-bars span:nth-child(4){height:72px;}
.metric-bars span:nth-child(5){height:58px;}
.metric-bars span:nth-child(6){height:80px;}

.metric-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.activity-title{
    font-size:18px;
    font-weight:900;
    color:#fff;
    margin-bottom:16px;
}

.activity-item{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.activity-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.activity-item strong{
    display:block;
    color:#fff;
    font-size:14px;
    margin-bottom:4px;
}

.activity-item small{
    color:var(--text-muted);
    font-size:13px;
}

.dot{
    width:12px;
    height:12px;
    margin-top:6px;
    border-radius:50%;
    background:linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow:0 0 0 5px rgba(59,130,246,.10);
    flex:0 0 auto;
}

.logo-cloud{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    justify-content:center;
}

.logo-cloud span{
    min-height:54px;
    padding:0 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    color:#e7efff;
    font-size:14px;
    font-weight:800;
    letter-spacing:.2px;
    box-shadow:0 16px 36px rgba(0,0,0,.10);
}

.cta-box{
    padding:30px;
    border-radius:30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    border:1px solid rgba(255,255,255,.10);
    background:
        radial-gradient(circle at left top, rgba(59,130,246,.20), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
    box-shadow:0 22px 50px rgba(0,0,0,.12);
}

.cta-box h2{
    margin:16px 0 10px;
    font-size:clamp(30px, 4vw, 46px);
    line-height:1.05;
    letter-spacing:-1.2px;
    color:#fff;
}

.cta-box p{
    margin:0;
    color:var(--text-muted);
    line-height:1.8;
}

.site-footer{
    padding:28px 0 44px;
}

.footer-grid{
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

.footer-text{
    margin:10px 0 0;
    color:var(--text-muted);
    font-size:14px;
    line-height:1.8;
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.footer-links a{
    padding:10px 14px;
    border-radius:999px;
    color:var(--text-muted);
    font-weight:700;
    font-size:14px;
}

.footer-links a:hover{
    color:#fff;
    background:rgba(255,255,255,.06);
}

@media (max-width:1100px){
    .hero-grid,
    .analytics-grid{
        grid-template-columns:1fr;
    }

    .login-panel-wrap{
        position:relative;
        top:0;
    }

    .mini-stats,
    .strip-grid,
    .feature-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width:760px){
    .header-inner{
        min-height:76px;
    }

    .header-nav{
        display:none;
    }

    .hero{
        padding:34px 0 22px;
    }

    .hero-copy h1{
        letter-spacing:-1.1px;
    }

    .mini-stats,
    .strip-grid,
    .feature-grid,
    .metric-row{
        grid-template-columns:1fr;
    }

    .login-panel{
        padding:20px;
        border-radius:24px;
    }

    .login-panel h2{
        font-size:30px;
    }

    .cta-box,
    .footer-grid{
        flex-direction:column;
        align-items:flex-start;
    }

    .btn,
    .login-submit{
        width:100%;
    }
}