*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:#f8fafc;
    color:#0f172a;
    font-family:Arial,"Microsoft JhengHei",sans-serif;
}

a{
    text-decoration:none;
}

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

/* =========================================================
   Header
   ========================================================= */

.home-header{
    position:relative;
    z-index:10;
    width:100%;
    border-bottom:1px solid rgba(226,232,240,.8);
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(18px);
}

.home-header-inner{
    max-width:1240px;
    margin:0 auto;
    min-height:72px;
    padding:0 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.home-logo{
    display:flex;
    align-items:center;
    gap:12px;
    color:#0f172a;
    font-weight:800;
    font-size:17px;
}

.home-logo-icon{
    width:38px;
    height:38px;
    border-radius:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2563eb,#4f46e5);
    color:#fff;
    font-size:17px;
    font-weight:800;
    box-shadow:0 8px 20px rgba(37,99,235,.25);
}

.home-nav{
    display:flex;
    align-items:center;
    gap:8px;
}

.home-nav a{
    padding:9px 13px;
    border-radius:9px;
    color:#64748b;
    font-size:14px;
    font-weight:600;
    transition:.2s ease;
}

.home-nav a:hover{
    color:#2563eb;
    background:#eff6ff;
}

/* =========================================================
   Hero
   ========================================================= */

.hero{
    position:relative;
    max-width:1240px;
    margin:0 auto;
    padding:92px 24px 76px;
}

.hero-background{
    position:absolute;
    z-index:-1;
    pointer-events:none;
    inset:-120px -200px 0;
    overflow:hidden;
}

.hero-orb{
    position:absolute;
    border-radius:50%;
    filter:blur(2px);
}

.hero-orb.one{
    width:480px;
    height:480px;
    top:-180px;
    left:0;
    background:radial-gradient(
        circle,
        rgba(59,130,246,.16),
        rgba(59,130,246,0) 70%
    );
}

.hero-orb.two{
    width:560px;
    height:560px;
    right:-80px;
    top:-150px;
    background:radial-gradient(
        circle,
        rgba(99,102,241,.14),
        rgba(99,102,241,0) 70%
    );
}

.hero-grid{
    position:absolute;
    inset:0;
    opacity:.35;
    background-image:
        linear-gradient(#dbeafe 1px,transparent 1px),
        linear-gradient(90deg,#dbeafe 1px,transparent 1px);
    background-size:55px 55px;
    mask-image:linear-gradient(to bottom,#000,transparent 75%);
}

.hero-content{
    max-width:820px;
    margin:0 auto;
    text-align:center;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border:1px solid #dbeafe;
    border-radius:999px;
    background:rgba(239,246,255,.9);
    color:#2563eb;
    font-size:13px;
    font-weight:700;
    box-shadow:0 5px 20px rgba(37,99,235,.08);
}

.hero-badge-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 0 5px rgba(34,197,94,.12);
}

.hero h1{
    margin:24px 0 0;
    font-size:clamp(42px,6vw,76px);
    line-height:1.08;
    letter-spacing:-3px;
    font-weight:850;
}

.hero h1 .gradient{
    background:linear-gradient(135deg,#2563eb,#4f46e5);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.hero-description{
    max-width:730px;
    margin:26px auto 0;
    color:#64748b;
    font-size:18px;
    line-height:1.9;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:34px;
}

.hero-buttons .btn{
    min-width:145px;
    text-align:center;
}

.hero-note{
    margin-top:17px;
    color:#94a3b8;
    font-size:13px;
}

/* =========================================================
   Dashboard Preview
   ========================================================= */

.preview-wrap{
    max-width:1100px;
    margin:65px auto 0;
    position:relative;
}

.preview-glow{
    position:absolute;
    inset:30px 50px -30px;
    background:rgba(37,99,235,.18);
    filter:blur(55px);
    border-radius:50%;
    z-index:-1;
}

.preview{
    border:1px solid #dbe4f0;
    border-radius:22px;
    background:#fff;
    box-shadow:
        0 35px 80px rgba(15,23,42,.13),
        0 8px 25px rgba(15,23,42,.05);
    overflow:hidden;
}

.preview-topbar{
    height:58px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #e2e8f0;
    background:#fff;
}

.preview-dots{
    display:flex;
    gap:6px;
}

.preview-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#cbd5e1;
}

.preview-title{
    font-size:12px;
    color:#94a3b8;
    font-weight:600;
}

.preview-status{
    display:flex;
    align-items:center;
    gap:6px;
    color:#16a34a;
    font-size:12px;
    font-weight:700;
}

.preview-status i{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#22c55e;
}

.preview-body{
    padding:22px;
    background:#f8fafc;
}

.preview-kpis{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.preview-kpi{
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:13px;
    background:#fff;
    text-align:left;
}

.preview-kpi-label{
    color:#94a3b8;
    font-size:11px;
}

.preview-kpi-value{
    margin-top:8px;
    font-size:24px;
    font-weight:800;
    color:#0f172a;
}

.preview-kpi-value.blue{
    color:#2563eb;
}

.preview-kpi-value.green{
    color:#16a34a;
}

.preview-main{
    display:grid;
    grid-template-columns:1.7fr 1fr;
    gap:12px;
    margin-top:12px;
}

.preview-panel{
    min-height:230px;
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:13px;
    background:#fff;
}

.preview-panel-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:13px;
}

.preview-panel-title strong{
    font-size:13px;
}

.preview-panel-title span{
    color:#94a3b8;
    font-size:10px;
}

/* =========================================================
   SVG Chart
   ========================================================= */

.fake-chart{
    position:relative;
    height:165px;
    margin-top:6px;
    overflow:hidden;
}

.fake-chart-grid{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            #e2e8f0 25%,
            transparent 25.5%,
            transparent 49%,
            #e2e8f0 50%,
            transparent 50.5%,
            transparent 74%,
            #e2e8f0 75%,
            transparent 75.5%
        );
}

.fake-chart-svg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
}

.preview-side-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.preview-side-item{
    display:flex;
    align-items:center;
    gap:10px;
}

.preview-side-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:9px;
    background:#eff6ff;
    color:#2563eb;
    font-size:12px;
    font-weight:800;
}

.preview-side-info{
    flex:1;
    min-width:0;
}

.preview-side-name{
    font-size:11px;
    font-weight:700;
    color:#334155;
}

.preview-side-bar{
    height:5px;
    margin-top:5px;
    border-radius:99px;
    background:#e2e8f0;
    overflow:hidden;
}

.preview-side-bar span{
    display:block;
    height:100%;
    border-radius:99px;
    background:linear-gradient(90deg,#2563eb,#6366f1);
}

.preview-side-value{
    font-size:10px;
    color:#64748b;
}

/* =========================================================
   Trust strip
   ========================================================= */

.trust-strip{
    max-width:1000px;
    margin:60px auto 0;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.trust-item{
    display:flex;
    align-items:center;
    gap:8px;
    padding:9px 13px;
    border:1px solid #e2e8f0;
    border-radius:10px;
    background:#fff;
    color:#64748b;
    font-size:12px;
    font-weight:600;
}

.trust-item span{
    color:#2563eb;
    font-size:14px;
}

/* =========================================================
   Sections
   ========================================================= */

.section{
    max-width:1240px;
    margin:0 auto;
    padding:100px 24px;
}

.section-heading{
    max-width:720px;
    margin:0 auto 52px;
    text-align:center;
}

.section-eyebrow{
    color:#2563eb;
    font-size:12px;
    font-weight:800;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.section-heading h2{
    margin:12px 0 0;
    font-size:clamp(30px,4vw,44px);
    line-height:1.2;
    letter-spacing:-1.5px;
}

.section-heading p{
    margin:17px auto 0;
    color:#64748b;
    line-height:1.8;
    font-size:16px;
}

/* =========================================================
   Feature cards
   ========================================================= */

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

.feature-card{
    position:relative;
    padding:30px;
    border:1px solid #e2e8f0;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 30px rgba(15,23,42,.045);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
    overflow:hidden;
}

.feature-card:hover{
    transform:translateY(-5px);
    border-color:#bfdbfe;
    box-shadow:0 20px 45px rgba(15,23,42,.09);
}

.feature-card::after{
    content:"";
    position:absolute;
    width:130px;
    height:130px;
    right:-65px;
    bottom:-65px;
    border-radius:50%;
    background:rgba(59,130,246,.055);
}

.feature-icon{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:13px;
    background:#eff6ff;
    color:#2563eb;
    font-size:15px;
    font-weight:800;
    margin-bottom:21px;
}

.feature-card h3{
    margin:0;
    font-size:19px;
    letter-spacing:-.3px;
}

.feature-card p{
    margin:11px 0 0;
    color:#64748b;
    line-height:1.75;
    font-size:14px;
}

/* =========================================================
   Analytics section
   ========================================================= */

.analytics-section{
    background:#f1f5f9;
    max-width:none;
}

.analytics-inner{
    max-width:1240px;
    margin:0 auto;
    padding:100px 24px;
}

.analytics-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    align-items:stretch;
}

.analytics-card{
    padding:30px;
    border:1px solid #dbe4f0;
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 35px rgba(15,23,42,.05);
}

.analytics-card h3{
    margin:0;
    font-size:20px;
}

.analytics-card > p{
    margin:10px 0 0;
    color:#64748b;
    line-height:1.7;
    font-size:14px;
}

.analytics-visual{
    margin-top:26px;
    min-height:210px;
}

/* country */

.country-row{
    display:flex;
    align-items:center;
    gap:11px;
    margin-bottom:13px;
}

.country-name{
    width:78px;
    font-size:12px;
    font-weight:700;
    color:#475569;
}

.country-bar{
    flex:1;
    height:8px;
    background:#e2e8f0;
    border-radius:99px;
    overflow:hidden;
}

.country-bar span{
    display:block;
    height:100%;
    border-radius:99px;
    background:linear-gradient(90deg,#2563eb,#6366f1);
}

.country-value{
    width:35px;
    text-align:right;
    color:#64748b;
    font-size:11px;
}

/* devices */

.device-visual{
    display:grid;
    grid-template-columns:160px 1fr;
    gap:25px;
    align-items:center;
}

.device-ring{
    width:150px;
    height:150px;
    border-radius:50%;
    background:
        conic-gradient(
            #2563eb 0 61%,
            #60a5fa 61% 82%,
            #c7d2fe 82% 100%
        );
    display:flex;
    align-items:center;
    justify-content:center;
}

.device-ring::after{
    content:"";
    width:92px;
    height:92px;
    border-radius:50%;
    background:#fff;
}

.device-legend{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.device-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.device-item-left{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:#475569;
}

.device-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#2563eb;
}

.device-item:nth-child(2) .device-dot{
    background:#60a5fa;
}

.device-item:nth-child(3) .device-dot{
    background:#c7d2fe;
}

.device-item strong{
    font-size:13px;
}

/* =========================================================
   Trend section
   ========================================================= */

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

.trend-card{
    padding:25px;
    border:1px solid #e2e8f0;
    border-radius:17px;
    background:#fff;
    box-shadow:0 8px 30px rgba(15,23,42,.045);
}

.trend-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.trend-top strong{
    font-size:17px;
}

.trend-badge{
    padding:5px 8px;
    border-radius:7px;
    background:#ecfdf5;
    color:#16a34a;
    font-size:10px;
    font-weight:800;
}

.trend-number{
    margin-top:17px;
    font-size:31px;
    font-weight:800;
}

.trend-number small{
    color:#16a34a;
    font-size:12px;
    font-weight:700;
    margin-left:5px;
}

.trend-mini{
    position:relative;
    height:90px;
    margin-top:14px;
    overflow:hidden;
}

.trend-mini svg{
    width:100%;
    height:100%;
}

/* =========================================================
   Security / Cross domain
   ========================================================= */

.security-section{
    position:relative;
}

.security-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:20px;
    align-items:stretch;
}

.security-card{
    padding:34px;
    border-radius:20px;
    border:1px solid #dbe4f0;
    background:#fff;
    box-shadow:0 10px 35px rgba(15,23,42,.05);
}

.security-card.dark{
    color:#fff;
    border-color:#172554;
    background:
        radial-gradient(
            circle at top right,
            rgba(59,130,246,.2),
            transparent 40%
        ),
        #0f172a;
}

.security-card h3{
    margin:0;
    font-size:23px;
}

.security-card p{
    margin:13px 0 0;
    color:#64748b;
    line-height:1.8;
    font-size:14px;
}

.security-card.dark p{
    color:#cbd5e1;
}

.security-list{
    margin:27px 0 0;
    padding:0;
    list-style:none;
    display:grid;
    gap:13px;
}

.security-list li{
    display:flex;
    align-items:flex-start;
    gap:11px;
    color:#475569;
    font-size:14px;
    line-height:1.6;
}

.security-card.dark .security-list li{
    color:#e2e8f0;
}

.security-check{
    width:22px;
    height:22px;
    flex:0 0 22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:#eff6ff;
    color:#2563eb;
    font-size:11px;
    font-weight:800;
}

.security-card.dark .security-check{
    background:rgba(59,130,246,.16);
    color:#93c5fd;
}

.code-box{
    margin-top:25px;
    border-radius:13px;
    background:#020617;
    border:1px solid #1e293b;
    overflow:hidden;
}

.code-header{
    padding:10px 14px;
    border-bottom:1px solid #1e293b;
    color:#64748b;
    font-size:10px;
}

.code-body{
    padding:18px;
    overflow:auto;
    color:#e2e8f0;
    font-size:12px;
    line-height:1.7;
    white-space:nowrap;
}

/* =========================================================
   Multi site
   ========================================================= */

.multi-site{
    margin-top:20px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.site-mini{
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    background:#f8fafc;
}

.site-mini-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.site-mini-status{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#22c55e;
}

.site-mini-name{
    margin-top:12px;
    font-size:13px;
    font-weight:700;
}

.site-mini-domain{
    margin-top:4px;
    color:#94a3b8;
    font-size:10px;
}

/* =========================================================
   Popular pages
   ========================================================= */

.popular-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.popular-card{
    padding:30px;
    border:1px solid #e2e8f0;
    border-radius:19px;
    background:#fff;
    box-shadow:0 8px 30px rgba(15,23,42,.045);
}

.popular-card h3{
    margin:0;
    font-size:20px;
}

.page-list{
    margin-top:25px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.page-item{
    display:flex;
    align-items:center;
    gap:13px;
}

.page-rank{
    width:30px;
    height:30px;
    flex:0 0 30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#eff6ff;
    color:#2563eb;
    font-size:11px;
    font-weight:800;
}

.page-info{
    flex:1;
    min-width:0;
}

.page-name{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:12px;
    font-weight:700;
}

.page-progress{
    height:5px;
    margin-top:6px;
    background:#e2e8f0;
    border-radius:99px;
    overflow:hidden;
}

.page-progress span{
    display:block;
    height:100%;
    border-radius:99px;
    background:linear-gradient(90deg,#2563eb,#6366f1);
}

.page-count{
    color:#64748b;
    font-size:11px;
}

/* =========================================================
   CTA
   ========================================================= */

.cta{
    max-width:1240px;
    margin:0 auto;
    padding:30px 24px 100px;
}

.cta-box{
    position:relative;
    overflow:hidden;
    padding:70px 30px;
    border-radius:24px;
    text-align:center;
    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(96,165,250,.25),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(129,140,248,.22),
            transparent 32%
        ),
        #eff6ff;
    border:1px solid #dbeafe;
}

.cta-box h2{
    margin:0;
    font-size:clamp(30px,4vw,43px);
    letter-spacing:-1px;
}

.cta-box p{
    max-width:650px;
    margin:15px auto 0;
    color:#64748b;
    line-height:1.8;
}

.cta-box .hero-buttons{
    margin-top:28px;
}

/* =========================================================
   Footer
   ========================================================= */

.footer{
    border-top:1px solid #e2e8f0;
    background:#fff;
    padding:30px 24px;
    text-align:center;
    color:#94a3b8;
    font-size:13px;
}

.footer strong{
    color:#475569;
}

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

@media(max-width:1000px){

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

    .analytics-layout,
    .security-grid,
    .popular-layout{
        grid-template-columns:1fr;
    }

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

}

@media(max-width:760px){

    .home-header-inner{
        min-height:64px;
    }

    .home-nav a:not(.nav-login){
        display:none;
    }

    .hero{
        padding:65px 18px 55px;
    }

    .hero h1{
        letter-spacing:-2px;
    }

    .hero-description{
        font-size:16px;
    }

    .preview-body{
        padding:12px;
    }

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

    .preview-main{
        grid-template-columns:1fr;
    }

    .preview-side-panel{
        display:none;
    }

    .section,
    .analytics-inner{
        padding:72px 18px;
    }

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

    .device-visual{
        grid-template-columns:1fr;
        justify-items:center;
    }

    .device-legend{
        width:100%;
    }

    .multi-site{
        grid-template-columns:1fr;
    }

    .security-card{
        padding:25px;
    }

    .cta{
        padding:10px 18px 70px;
    }

}

@media(max-width:480px){

    .home-logo span{
        display:none;
    }

    .hero-buttons{
        flex-direction:column;
        width:100%;
    }

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

    .preview-kpi{
        padding:13px;
    }

    .preview-kpi-value{
        font-size:20px;
    }

    .trust-strip{
        gap:7px;
    }

    .trust-item{
        font-size:11px;
    }

}
/* =========================================================
   Security Section - Mobile Fix
   ========================================================= */

.security-grid {
	width: 100%;
	min-width: 0;
}

.security-card {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.security-card p {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.security-list {
	max-width: 100%;
	box-sizing: border-box;
}

.security-list li {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.security-list li > span:last-child {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.code-box {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
}

.code-body {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 768px) {
	.security-grid {
		grid-template-columns: 1fr;
		width: 100%;
		max-width: 100%;
	}

	.security-card {
		width: 100%;
		max-width: 100%;
		padding: 24px;
		box-sizing: border-box;
	}

	.security-card h3 {
		font-size: 20px;
		line-height: 1.45;
	}

	.security-card p {
		font-size: 14px;
		line-height: 1.7;
	}

	.security-list {
		width: 100%;
		padding-left: 0;
	}

	.security-list li {
		display: flex;
		align-items: flex-start;
		gap: 10px;
		width: 100%;
	}

	.security-check {
		flex: 0 0 auto;
	}

	.security-list li > span:last-child {
		flex: 1 1 auto;
		min-width: 0;
	}

	.code-box {
		width: 100%;
		max-width: 100%;
		margin-top: 18px;
	}

	.code-body {
		font-size: 12px;
		line-height: 1.7;
		padding: 14px;
		white-space: pre-wrap;
		overflow-wrap: anywhere;
		word-break: break-all;
	}
}

@media (max-width: 480px) {
	.security-card {
		padding: 20px;
		border-radius: 18px;
	}

	.security-card h3 {
		font-size: 18px;
	}

	.security-list li {
		font-size: 13px;
		gap: 8px;
	}

	.code-header {
		font-size: 12px;
	}

	.code-body {
		font-size: 11px;
		padding: 12px;
		line-height: 1.65;
	}
}