/* Homepage visual refresh aligned with the provided reference composition. */
:root {
    --ink: #0b1220;
    --ink-soft: #1e293b;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e2e8f0;
    --line-soft: #eef2f7;
    --brand: #2563eb;
    --brand-2: #06b6d4;
    --cyan: #06b6d4;
    --aqua: #10b981;
    --gold: #f59e0b;
    --red: #f43f5e;
    --paper: #ffffff;
    --paper-soft: #f8fafc;
    --brand-grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.15);
    --shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.07);
}

body {
    color: var(--ink-soft);
    background: #f6f8fc;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.site-header {
    grid-template-columns: 230px 1fr auto;
    height: 68px;
    padding: 0 clamp(20px, 3vw, 48px);
    border-bottom-color: var(--line-soft);
    background: rgba(246, 248, 252, 0.84);
    backdrop-filter: blur(20px);
}

.brand { gap: 10px; }
.brand img { width: 36px; height: 36px; }
.brand strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.brand small {
    color: var(--faint);
    font-size: 9px;
    font-weight: 600;
}

.site-nav {
    gap: clamp(8px, 1.2vw, 24px);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.site-nav a { height: 68px; padding: 0 8px; }
.site-nav a::after {
    right: 50%;
    bottom: -1px;
    left: auto;
    width: 20px;
    height: 2px;
    transform: translateX(50%) scaleX(0.5);
    background: var(--brand-grad);
}
.site-nav a:hover,
.site-nav a.active { color: var(--brand); }
.site-nav a:hover::after,
.site-nav a.active::after { transform: translateX(50%) scaleX(1); }

.header-actions,
.hero-actions { gap: 10px; }
.btn {
    min-width: 0;
    height: 40px;
    padding: 0 18px;
    border-color: var(--line);
    border-radius: 8px;
    color: var(--ink-soft);
    background: var(--paper);
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
}
.btn:hover {
    transform: translateY(-1px);
    border-color: var(--brand);
    box-shadow: var(--shadow-soft);
}
.btn-primary {
    color: #fff;
    background: var(--brand-grad);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}
.btn-soft { color: var(--brand); background: var(--line-soft); }
.btn-large { min-width: 0; height: 50px; padding: 0 24px; font-size: 15px; }

.hero {
    min-height: 560px;
    padding: 0 clamp(20px, 3vw, 48px);
    background: #f6f8fc;
}
.hero::before {
    background:
        linear-gradient(30deg, transparent 45%, rgba(37, 99, 235, 0.055) 45%, rgba(37, 99, 235, 0.055) 55%, transparent 55%),
        linear-gradient(150deg, transparent 45%, rgba(37, 99, 235, 0.055) 45%, rgba(37, 99, 235, 0.055) 55%, transparent 55%),
        linear-gradient(90deg, transparent 48%, rgba(6, 182, 212, 0.04) 48%, rgba(6, 182, 212, 0.04) 52%, transparent 52%);
    background-position: right top;
    background-size: 60px 104px;
    mask-image: none;
}
.hero-inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
    gap: clamp(40px, 5vw, 72px);
    max-width: 1280px;
    min-height: 560px;
}
.hero-copy { max-width: 580px; padding: 64px 0; }
.eyebrow {
    min-height: 30px;
    padding: 5px 13px;
    border-color: var(--line);
    color: var(--muted);
    background: var(--paper);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    font-size: 12px;
    font-weight: 600;
}
.eyebrow i {
    width: 7px;
    height: 7px;
    background: var(--aqua);
    box-shadow: 0 0 0 3px #d1fae5;
}
.hero h1 {
    margin: 24px 0 4px;
    color: var(--ink);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
}
.hero h2 {
    margin: 0 0 18px;
    color: transparent;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.22;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero h2 span { display: block; }
.hero p {
    max-width: 520px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}
.hero-badges { gap: 20px; margin-top: 28px; }
.hero-badges span {
    gap: 8px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
}
.hero-badges img { width: 16px; height: 16px; }

.hero-art { min-height: 470px; }
.hero-cloud {
    top: 62px;
    right: -4px;
    width: min(640px, 100%);
    filter: drop-shadow(0 22px 38px rgba(37, 99, 235, 0.16));
}
.float-card {
    border-color: rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
}
.float-card span { color: var(--faint); font-size: 11px; font-weight: 600; }
.float-card strong { margin-top: 6px; color: var(--ink); font-size: 26px; font-weight: 800; }
.float-availability { top: 72px; left: 10px; padding: 15px 18px; }
.float-latency { top: 58px; right: 0; padding: 15px 18px; }
.float-bgp { right: 0; bottom: 64px; padding: 15px 18px 12px; }
.float-bgp ul { gap: 7px; margin-top: 8px; }
.float-bgp li { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.float-bgp i { width: 8px; height: 8px; border-radius: 3px; transform: none; }
.mark-aqua { background: var(--aqua); }
.mark-blue { background: var(--brand); }
.mark-gold { background: var(--gold); }

.section { max-width: 1280px; padding: 72px clamp(20px, 3vw, 48px) 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin-bottom: 6px; color: var(--ink); font-size: 30px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 14px; font-weight: 400; }
.section-head > a,
.panel-title a { color: var(--brand); font-size: 14px; font-weight: 600; }

.activity-strip { gap: 20px; margin-top: 0; }
.promo-tile,
.product-card,
.metrics,
.gift-panel,
.progress-panel,
.info-card,
.subscribe {
    border-color: var(--line-soft);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: none;
    backdrop-filter: none;
}
.promo-tile {
    min-height: 230px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.promo-tile:hover,
.product-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.promo-tile::before {
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    min-width: 0;
    height: 3px;
    padding: 0;
    transform: none;
}
.group-buy::before { background: var(--brand-grad); }
.flash-sale::before { background: linear-gradient(135deg, #f59e0b, #f97316); }
.coupon-center::before { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.lottery-wheel::before { background: linear-gradient(135deg, #10b981, #059669); }
.promo-tile b {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    color: #fff;
    background: var(--brand-grad);
    font-size: 11px;
    font-weight: 600;
}
.flash-sale b { color: #b45309; background: #fef3c7; }
.coupon-center b { color: #6d28d9; background: #ede9fe; }
.lottery-wheel b { color: #047857; background: #d1fae5; }
.promo-tile h3 { margin: 14px 0 7px; color: var(--ink); font-size: 18px; font-weight: 700; }
.promo-tile p { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
.promo-body { min-height: 70px; margin-top: 8px; }
.promo-body img { right: -6px; bottom: -14px; width: 86px; height: 86px; }
.promo-body span { color: var(--muted); font-size: 13px; font-weight: 600; }
.promo-body strong { color: var(--ink); font-size: 18px; }
.promo-tile > a {
    min-width: 0;
    height: 32px;
    padding: 0 12px;
    border-color: transparent;
    border-radius: 6px;
    color: var(--brand);
    background: var(--line-soft);
    font-size: 13px;
    font-weight: 600;
}
.promo-tile > a:hover { color: #fff; background: var(--brand); }
.countdown em { width: 28px; height: 28px; border-radius: 5px; font-size: 12px; }

.products { padding-top: 88px; }
.product-grid { gap: 20px; }
.product-card { min-height: 390px; padding: 26px 22px 22px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.product-icon { width: 64px; height: 64px; margin-bottom: 16px; padding: 14px; border-radius: 8px; background: var(--line-soft); }
.product-card h3 { margin-bottom: 7px; color: var(--ink); font-size: 17px; font-weight: 700; }
.product-card p { min-height: 64px; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.65; }
.product-card ul { gap: 8px; margin-bottom: 18px; }
.product-card li { padding-left: 16px; color: var(--muted); font-size: 12px; font-weight: 500; }
.product-card li::before { top: 6px; width: 6px; height: 6px; background: var(--brand); box-shadow: 0 0 0 3px #dbeafe; }
.price { margin-bottom: 14px; color: var(--ink); font-size: 27px; font-weight: 800; }
.price small { color: var(--muted); }
.price span { color: var(--faint); font-size: 12px; font-weight: 400; }
.price-muted { color: var(--ink-soft); font-size: 20px; }
.product-card .btn { width: 100%; }

.metrics { gap: 0; margin-top: 44px; overflow: hidden; }
.metric-item { grid-template-columns: 48px 1fr; column-gap: 12px; min-height: 108px; padding: 22px 26px; background: var(--paper); }
.metric-item + .metric-item { border-left: 1px solid var(--line-soft); }
.metric-item img { width: 44px; height: 44px; padding: 11px; border-radius: 8px; background: var(--line-soft); }
.metric-item strong { color: var(--ink); font-size: 25px; font-weight: 800; }
.metric-item span { color: var(--muted); font-size: 13px; font-weight: 500; }

.growth-panels { gap: 20px; }
.gift-panel { min-height: 280px; padding: 30px; background: #eef6ff; }
.gift-panel h2 { color: var(--ink); font-size: 27px; font-weight: 800; }
.gift-panel p { color: var(--muted); font-size: 14px; font-weight: 400; }
.gift-panel li { color: var(--muted); font-size: 13px; font-weight: 500; }
.gift-panel li::before { background: var(--brand); box-shadow: 0 0 0 3px #dbeafe; }
.gift-panel > img { width: 210px; height: 210px; }
.progress-panel,
.info-card { padding: 24px; }
.panel-title h3 { color: var(--ink); font-size: 18px; font-weight: 700; }
.progress-row { color: var(--muted); font-size: 13px; font-weight: 500; }
.bar { background: var(--line-soft); }
.bar i { background: var(--brand-grad); }
.invite-box { border-radius: 6px; background: var(--line-soft); }
.invite-box strong { color: var(--ink); font-size: 14px; font-weight: 700; }
.invite-box span { color: var(--muted); font-size: 12px; font-weight: 400; }
.ranking li,
.news li,
.help li { color: var(--muted); font-size: 13px; font-weight: 500; }
.ranking li span { border-radius: 5px; background: var(--brand); font-weight: 700; }
.ranking li b,
.news time,
.help em { color: var(--ink-soft); font-weight: 600; }
.subscribe { padding: 26px 28px; }
.subscribe h3 { color: var(--ink); font-size: 20px; font-weight: 700; }
.subscribe p { color: var(--muted); font-size: 13px; font-weight: 400; }
.subscribe input { border-color: var(--line); border-radius: 6px; }
.subscribe button { border-radius: 6px; background: var(--brand-grad); font-weight: 600; }

.site-footer { margin-top: 72px; background: var(--ink); }
.footer-inner { max-width: 1280px; padding: 54px clamp(20px, 3vw, 48px) 40px; }
.footer-brand p,
.site-footer nav a { color: rgba(255, 255, 255, 0.6); font-weight: 400; }
.site-footer h4 { font-size: 14px; font-weight: 600; }
.footer-qrcode { display: none; }
.footer-bottom { justify-content: space-between; max-width: 1280px; padding: 20px clamp(20px, 3vw, 48px) 28px; color: rgba(255, 255, 255, 0.42); font-weight: 400; }

@media (max-width: 1180px) {
    .site-header { grid-template-columns: 200px 1fr auto; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { min-height: 380px; }
    .hero-cloud { right: 50%; width: min(580px, 96%); transform: translateX(50%); }
    .activity-strip,
    .product-grid,
    .metrics,
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
    .metric-item:nth-child(4) { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 860px) {
    .site-header { height: 64px; padding: 0 18px; }
    .brand img { width: 34px; height: 34px; }
    .site-nav { top: 64px; border-color: var(--line); box-shadow: var(--shadow-soft); }
    .site-nav a { height: auto; }
    .site-nav a:hover,
    .site-nav a.active { background: var(--line-soft); }
    .hero { padding: 0 18px 32px; }
    .hero-copy { padding: 42px 0 26px; }
    .hero h1 { font-size: 42px; }
    .hero h2 { font-size: 29px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-art { min-height: 320px; }
    .float-availability { top: 12px; left: 0; }
    .float-latency { top: auto; right: 0; bottom: 84px; }
    .float-bgp { bottom: 0; }
    .section { padding: 56px 18px 0; }
    .products { padding-top: 64px; }
    .activity-strip,
    .product-grid,
    .metrics,
    .info-grid { grid-template-columns: 1fr; }
    .metric-item + .metric-item { border-top: 1px solid var(--line-soft); border-left: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 34px; }
    .hero h2 { font-size: 25px; }
    .hero p { font-size: 15px; }
    .hero-badges { gap: 12px; }
    .hero-art { min-height: 270px; }
    .hero-cloud { top: 65px; left: 0; right: auto; width: 76%; transform: none; }
    .float-latency { display: none; }
    .float-bgp { width: 130px; padding: 12px; }
    .section-head h2,
    .gift-panel h2 { font-size: 25px; }
    .promo-tile,
    .product-card,
    .gift-panel,
    .progress-panel,
    .info-card,
    .subscribe { padding: 20px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: flex-start; gap: 10px 18px; }
}

/* Final homepage pass: align the first viewport with the supplied cloud-service reference. */
:root {
    --ink: #0d2348;
    --ink-soft: #29456f;
    --muted: #6a82a8;
    --faint: #9bb0d0;
    --line: #dce9fb;
    --line-soft: #eaf2fc;
    --brand: #146ff5;
    --brand-2: #2eb8ed;
    --brand-grad: linear-gradient(135deg, #146ff5 0%, #1689ee 58%, #23badf 100%);
    --paper: #fff;
    --paper-soft: #f7fbff;
    --shadow: 0 20px 50px rgba(46, 105, 184, 0.14);
    --shadow-soft: 0 8px 26px rgba(35, 93, 169, 0.08);
}

body {
    background: linear-gradient(180deg, #f5faff 0%, #f8fbff 38%, #fff 100%);
}

.site-header {
    height: 76px;
    padding: 0 clamp(24px, 5vw, 88px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(213, 229, 249, 0.86);
}

.brand img { width: 42px; height: 42px; }
.brand strong { color: #102b57; font-size: 20px; }
.brand small { color: #7891b8; font-size: 9px; letter-spacing: 0.04em; }
.site-nav { gap: clamp(22px, 3vw, 46px); color: #304a73; font-size: 14px; }
.site-nav a { height: 76px; padding: 0; }
.site-nav a::after { width: 28px; height: 3px; background: var(--brand-grad); }
.header-actions { gap: 12px; }
.header-actions .btn { height: 42px; padding: 0 22px; }

.hero {
    min-height: 566px;
    padding: 0 clamp(24px, 5vw, 88px);
    background:
        linear-gradient(90deg, rgba(245, 250, 255, 0.99) 0%, rgba(237, 247, 255, 0.92) 58%, rgba(226, 242, 255, 0.86) 100%),
        url("../img/backgrounds/bg-illustration-panel.png") center / cover no-repeat;
}

.hero::before {
    opacity: 0.8;
    background:
        linear-gradient(115deg, transparent 0%, rgba(49, 126, 246, 0.1) 57%, rgba(78, 208, 234, 0.14) 100%),
        repeating-linear-gradient(90deg, rgba(55, 127, 205, 0.045) 0, rgba(55, 127, 205, 0.045) 1px, transparent 1px, transparent 74px),
        repeating-linear-gradient(0deg, rgba(55, 127, 205, 0.035) 0, rgba(55, 127, 205, 0.035) 1px, transparent 1px, transparent 74px);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 75%, transparent 100%);
}

.hero-inner {
    grid-template-columns: minmax(0, 0.98fr) minmax(520px, 1.02fr);
    gap: clamp(28px, 4vw, 64px);
    max-width: 1280px;
    min-height: 566px;
}

.hero-copy { max-width: 610px; padding: 72px 0 68px; }
.eyebrow {
    min-height: 34px;
    padding: 7px 14px;
    color: #1c71dc;
    border-color: #cfe2fc;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(38, 101, 183, 0.08);
}
.eyebrow i { background: #2a9cf1; box-shadow: 0 0 0 5px rgba(42, 156, 241, 0.12); }
.hero h1 {
    margin: 30px 0 12px;
    color: #0b2450;
    max-width: 700px;
    font-size: clamp(50px, 4.3vw, 64px);
    line-height: 1.08;
    letter-spacing: 0;
}
.hero h1 span { display: block; color: #146ff5; }
.hero h2 {
    margin-bottom: 20px;
    color: #28558c;
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.35;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.hero h2 span { display: block; }
.hero p {
    max-width: 570px;
    margin-bottom: 28px;
    color: #5b739a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.85;
}
.hero-actions { gap: 14px; }
.hero-actions .btn-primary { min-width: 188px; }
.hero-badges { gap: 24px; margin-top: 26px; }
.hero-badges span { color: #55719b; font-size: 13px; font-weight: 700; }
.hero-badges img { width: 17px; height: 17px; }

.hero-art { min-height: 510px; }
.hero-cloud {
    top: 36px;
    right: -42px;
    width: min(720px, 112%);
    filter: drop-shadow(0 26px 42px rgba(37, 105, 215, 0.2));
}
.float-card {
    border-color: #d8e7f8;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 15px 34px rgba(42, 102, 183, 0.14);
}
.float-card span { color: #6e86a8; font-size: 11px; }
.float-card strong { color: #102b57; font-size: 27px; }
.float-availability { top: 92px; left: 20px; padding: 16px 19px; }
.float-latency { top: 72px; right: 0; padding: 16px 19px; }
.float-bgp { right: -12px; bottom: 58px; padding: 16px 18px 13px; }

.activity-strip {
    position: relative;
    z-index: 3;
    gap: 18px;
    margin-top: -34px;
    padding-top: 0;
}
.promo-tile {
    min-height: 126px;
    padding: 22px 22px 18px;
    border-color: #e2edf9;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(41, 98, 174, 0.1);
}
.promo-tile::before { height: 3px; }
.promo-tile b { color: #226fd1; font-size: 11px; }
.promo-tile h3 { margin: 10px 0 5px; font-size: 17px; }
.promo-tile p { max-width: 180px; color: #7187a7; font-size: 12px; line-height: 1.45; }
.promo-body { min-height: 36px; margin-top: 4px; }
.promo-body img { right: -2px; bottom: -25px; width: 74px; height: 74px; opacity: 0.95; }
.promo-body span { font-size: 12px; }
.promo-tile > a { position: absolute; right: 18px; bottom: 16px; height: 29px; padding: 0 10px; border-radius: 6px; font-size: 12px; }

.section { max-width: 1280px; padding: 72px clamp(24px, 5vw, 88px) 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 { color: #102b57; font-size: 30px; }
.section-head p { color: #7187a7; font-size: 13px; }
.section-head > a, .panel-title a { color: #1d71db; font-size: 13px; }
.products { padding-top: 66px; }
.product-grid { gap: 18px; }
.product-card {
    position: relative;
    min-height: 370px;
    padding: 22px 20px 18px;
    border-color: #e2ecf8;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(42, 92, 160, 0.06);
}
.product-card:first-child { border: 2px solid #2588f2; box-shadow: 0 16px 34px rgba(31, 125, 236, 0.14); }
.product-card:first-child::before { position: absolute; top: -2px; right: -2px; padding: 7px 16px; content: "最受欢迎"; border-radius: 0 11px 0 11px; color: #fff; background: var(--brand-grad); font-size: 11px; font-weight: 700; }
.product-icon { width: 58px; height: 58px; margin: 0 0 14px; padding: 11px; border-radius: 12px; background: #edf5ff; }
.product-card h3 { margin-bottom: 6px; text-align: left; color: #173561; font-size: 18px; }
.product-card p { min-height: 58px; margin-bottom: 14px; text-align: left; color: #6d84a5; font-size: 12px; line-height: 1.6; }
.product-card ul { gap: 7px; margin-bottom: 14px; }
.product-card li { padding-left: 15px; color: #5c7496; font-size: 12px; }
.product-card li::before { width: 5px; height: 5px; background: #2c82ed; box-shadow: 0 0 0 3px #e1efff; }
.price { margin-bottom: 13px; color: #1669df; font-size: 27px; }
.price small { font-size: 15px; }
.price span { color: #7e94b2; font-size: 11px; }
.product-card .btn { height: 42px; border-radius: 7px; }

.metrics { margin-top: 38px; border-color: #e0eaf7; border-radius: 12px; box-shadow: 0 10px 28px rgba(42, 92, 160, 0.06); }
.metric-item { min-height: 96px; padding: 18px 22px; }
.metric-item img { width: 40px; height: 40px; padding: 10px; }
.metric-item strong { color: #1769dc; font-size: 24px; }
.metric-item span { color: #7187a7; font-size: 12px; }

.gift-panel, .progress-panel, .info-card, .subscribe { border-color: #e2ecf8; border-radius: 12px; box-shadow: 0 10px 28px rgba(42, 92, 160, 0.06); }
.gift-panel { min-height: 270px; padding: 28px; background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 100%); }
.gift-panel h2 { color: #15365f; font-size: 25px; }
.gift-panel p, .gift-panel li { color: #6981a4; }
.gift-panel > img { width: 205px; height: 205px; }
.progress-panel, .info-card { padding: 22px; }
.panel-title h3 { color: #173561; font-size: 17px; }
.subscribe { padding: 24px 28px; }
.subscribe h3 { color: #173561; font-size: 19px; }

.site-footer { margin-top: 66px; background: linear-gradient(180deg, #12294d 0%, #08192f 100%); }

@media (max-width: 1180px) {
    .hero-inner { grid-template-columns: 1fr; gap: 0; }
    .hero-copy { max-width: 700px; margin: 0 auto; text-align: center; }
    .hero-copy .eyebrow, .hero-actions, .hero-badges { justify-content: center; }
    .hero p { margin-right: auto; margin-left: auto; }
    .hero-art { min-height: 390px; max-width: 720px; width: 100%; margin: -20px auto 0; }
    .hero-cloud { right: 50%; width: min(620px, 100%); transform: translateX(50%); }
}

@media (max-width: 860px) {
    .site-header { height: 64px; padding: 0 18px; }
    .brand img { width: 34px; height: 34px; }
    .site-nav { top: 64px; }
    .site-nav a { height: auto; padding: 13px 16px; }
    .hero { min-height: 0; padding: 0 18px 26px; }
    .hero-copy { padding: 48px 0 28px; }
    .hero h1 { font-size: 42px; }
    .hero h2 { font-size: 24px; }
    .hero p { font-size: 14px; line-height: 1.75; }
    .hero-actions { flex-direction: row; }
    .hero-actions .btn { width: auto; }
    .hero-art { min-height: 320px; margin-top: 0; }
    .hero-cloud { top: 26px; width: min(520px, 100%); }
    .float-availability { top: 22px; left: 0; }
    .float-latency { top: 16px; right: 0; }
    .float-bgp { right: 0; bottom: 8px; }
    .activity-strip { margin-top: 22px; }
    .section { padding: 56px 18px 0; }
    .products { padding-top: 54px; }
}

@media (max-width: 520px) {
    .site-header { width: 100%; min-width: 0; }
    .nav-toggle { position: absolute; top: 11px; right: 18px; display: grid !important; place-items: center; z-index: 2; width: 42px; height: 42px; border-color: #b8d4f4; background: #eef6ff; }
    .nav-toggle span { background: #2376df; }
    .header-actions { display: none; }
    .hero-copy { width: 100%; max-width: 100%; padding-top: 38px; overflow: hidden; }
    .eyebrow { font-size: 11px; }
    .hero h1 { margin-top: 22px; font-size: 34px; }
    .hero h1, .hero h2, .hero p { width: 100%; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; }
    .hero h2 { font-size: 17px; }
    .hero p { font-size: 13px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn, .hero-actions .btn-primary { width: 100%; min-width: 0; }
    .hero-badges { justify-content: space-between; gap: 8px; margin-top: 20px; }
    .hero-badges span { gap: 5px; font-size: 11px; }
    .hero-badges img { width: 14px; height: 14px; }
    .hero-art { width: 100%; min-height: 260px; overflow: hidden; }
    .hero-cloud { top: 34px; left: 50%; right: auto; width: 100%; max-width: 420px; transform: translateX(-50%); }
    .float-card { transform: scale(0.86); transform-origin: center; }
    .float-availability { top: 4px; left: -12px; }
    .float-latency { top: 0; right: -12px; }
    .float-bgp { right: -10px; bottom: -4px; }
    .activity-strip { gap: 12px; margin-top: 18px; }
    .promo-tile { min-height: 112px; padding: 18px 16px 14px; }
    .promo-tile h3 { font-size: 16px; }
    .promo-tile p { max-width: 160px; font-size: 11px; }
    .promo-body img { width: 62px; height: 62px; }
    .promo-tile > a { right: 14px; bottom: 13px; height: 27px; font-size: 11px; }
    .section-head { align-items: flex-start; }
    .section-head h2 { font-size: 25px; }
    .section-head p { max-width: 230px; line-height: 1.6; }
    .product-card { min-height: 0; padding: 20px 18px 16px; }
    .product-card:first-child::before { padding: 6px 12px; }
    .product-card p { min-height: 0; }
    .metrics { margin-top: 30px; }
    .metric-item { min-height: 82px; padding: 16px 18px; }
    .growth-panels { gap: 14px; }
    .gift-panel { grid-template-columns: 1fr 120px; min-height: 220px; padding: 20px; }
    .gift-panel > img { width: 120px; height: 120px; }
    .gift-panel h2 { font-size: 22px; }
    .subscribe { display: grid; gap: 16px; padding: 20px; }
    .subscribe form { width: 100%; }
}

/* Keep the mobile navigation control visible above the compact header. */
@media (max-width: 520px) {
    .site-header {
        display: flex !important;
        position: sticky;
        padding-right: 72px;
    }

    .brand { margin-right: auto; }

    .nav-toggle {
        position: absolute;
        top: 50%;
        right: 14px;
        z-index: 80;
        display: grid !important;
        place-items: center;
        width: 42px;
        height: 42px;
        transform: translateY(-50%);
        border: 1px solid #b8d4f4;
        border-radius: 10px;
        background: #eef6ff;
        box-shadow: 0 6px 16px rgba(35, 118, 223, 0.12);
    }

    .nav-toggle span {
        width: 18px;
        height: 2px;
        margin: 3px auto;
        background: #2376df;
    }

    .site-nav {
        top: calc(100% + 8px);
        right: 14px;
        left: 14px;
        z-index: 75;
        border-color: #d5e6fb;
        box-shadow: 0 18px 38px rgba(38, 101, 183, 0.18);
    }
}

/* PC composition matched to the supplied cloud mascot reference. */
@media (min-width: 861px) {
    .site-header {
        height: 58px;
        grid-template-columns: 280px 1fr auto;
        max-width: 1360px;
        margin: 0 auto;
        padding: 0 24px;
        background: rgba(255, 255, 255, 0.72);
        border-bottom: 0;
    }

    .brand { gap: 8px; }
    .brand img { width: 36px; height: 36px; }
    .brand strong { font-size: 16px; }
    .brand small { font-size: 8px; }
    .site-nav { justify-content: center; gap: 40px; font-size: 13px; }
    .site-nav a { height: 58px; }
    .header-actions .btn { height: 38px; padding: 0 18px; font-size: 13px; }

    .hero {
        min-height: 462px;
        padding: 0 24px;
        background:
            linear-gradient(90deg, rgba(239, 248, 255, 0.96) 0%, rgba(224, 241, 255, 0.86) 57%, rgba(211, 235, 255, 0.78) 100%),
            url("../img/backgrounds/bg-illustration-panel.png") center / cover no-repeat;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(580px, 1.1fr);
        gap: 16px;
        max-width: 1360px;
        min-height: 462px;
    }

    .hero-copy { max-width: 610px; padding: 44px 0 34px; }
    .eyebrow { min-height: 30px; padding: 5px 12px; font-size: 12px; }
    .hero h1 { margin: 22px 0 10px; font-size: clamp(46px, 4vw, 60px); line-height: 1.08; }
    .hero h2 { margin-bottom: 14px; font-size: 24px; }
    .hero p { max-width: 570px; margin-bottom: 20px; font-size: 14px; line-height: 1.7; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn-primary { min-width: 188px; }
    .hero-badges { gap: 22px; margin-top: 21px; }
    .hero-badges span { color: #54709a; font-size: 13px; }
    .hero-badges img { width: 18px; height: 18px; }

    .hero-art {
        position: relative;
        min-height: 462px;
        overflow: visible;
    }

    .hero-orbit {
        position: absolute;
        top: 7px;
        right: 73px;
        width: 405px;
        height: 405px;
        border: 2px solid rgba(255, 255, 255, 0.86);
        border-radius: 50%;
        box-shadow: 0 0 0 1px rgba(81, 161, 240, 0.06), inset 0 0 42px rgba(255, 255, 255, 0.28);
    }

    .hero-cloud {
        top: 195px;
        right: 36px;
        z-index: 1;
        width: 610px;
        opacity: 0.42;
        filter: drop-shadow(0 24px 36px rgba(37, 105, 215, 0.16));
    }

    .hero-pet {
        position: absolute;
        top: 4px;
        right: 118px;
        z-index: 3;
        width: 370px;
        max-width: none;
        filter: drop-shadow(0 24px 22px rgba(22, 73, 155, 0.2));
    }

    .float-card {
        z-index: 5;
        min-width: 145px;
        padding: 14px 17px;
        border-radius: 11px;
    }

    .float-card strong { margin-top: 5px; font-size: 25px; }
    .float-availability { top: 82px; left: 16px; }
    .float-latency { top: 94px; right: 10px; }

    .pet-help-card {
        position: absolute;
        right: -4px;
        bottom: 70px;
        z-index: 6;
        display: grid;
        gap: 6px;
        width: 205px;
        padding: 16px 18px;
        border-radius: 18px;
        color: #fff;
        background: linear-gradient(145deg, #244c93 0%, #122b65 100%);
        box-shadow: 0 16px 30px rgba(26, 68, 137, 0.25);
    }

    .pet-help-card::before {
        position: absolute;
        top: 20px;
        left: -9px;
        width: 18px;
        height: 18px;
        content: "";
        background: #244c93;
        transform: rotate(45deg);
    }

    .pet-help-card strong { position: relative; font-size: 16px; }
    .pet-help-card span { position: relative; color: rgba(255, 255, 255, 0.86); font-size: 12px; }
    .pet-help-card a { position: relative; color: #81d7ff; font-size: 12px; font-weight: 700; }
    .pet-help-card b { font-size: 16px; }

    .activity-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
        max-width: 1384px;
        margin: -44px auto 0;
        padding: 16px 18px;
        border: 1px solid rgba(225, 235, 248, 0.95);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 15px 35px rgba(54, 105, 173, 0.12);
        backdrop-filter: blur(12px);
    }

    .promo-tile {
        min-height: 74px;
        padding: 12px 16px 12px 84px;
        border: 0;
        border-radius: 10px;
        background: linear-gradient(135deg, #f8fbff 0%, #f4f8ff 100%);
        box-shadow: none;
    }

    .promo-tile::before { display: none; }
    .promo-tile b { display: none; }
    .promo-tile h3 { margin: 0 0 5px; font-size: 15px; }
    .promo-tile p { max-width: 210px; font-size: 11px; line-height: 1.4; }
    .promo-body { position: absolute; top: 14px; left: 14px; width: 52px; min-height: 52px; margin: 0; border-radius: 13px; background: #e2f0ff; }
    .promo-body::before { position: absolute; inset: 0; content: ""; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.5), transparent); }
    .promo-body img { top: 7px; right: 7px; bottom: auto; width: 38px; height: 38px; }
    .promo-body span, .promo-body em, .promo-body small { display: none; }
    .promo-tile > a { right: 13px; bottom: 25px; width: 22px; height: 22px; padding: 0; color: #52709d; background: transparent; font-size: 0; }
    .promo-tile > a::after { content: "→"; font-size: 22px; }
    .promo-tile > a:hover { color: #146ff5; background: transparent; box-shadow: none; }
    .flash-sale .promo-body { background: #fff3dc; }
    .coupon-center .promo-body { background: #eee8ff; }
    .lottery-wheel .promo-body { background: #dff8ec; }

    .products { max-width: 1360px; padding-top: 38px; }
    .section-head { justify-content: center; text-align: center; }
    .section-head > div { width: 100%; }
    .section-head h2 { font-size: 30px; }
    .section-head p { font-size: 13px; }
    .section-head > a { display: none; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1240px; margin: 0 auto; }
    .product-card { min-height: 236px; padding: 20px 20px 16px 98px; }
    .product-card-extra { display: none; }
    .product-icon { position: absolute; top: 20px; left: 20px; width: 58px; height: 58px; margin: 0; }
    .product-card h3 { margin-top: 0; font-size: 17px; }
    .product-card p { min-height: 42px; margin-bottom: 11px; }
    .product-card ul { display: flex; gap: 12px; margin-bottom: 10px; }
    .product-card li { padding-left: 0; font-size: 11px; white-space: nowrap; }
    .product-card li::before { display: none; }
    .price { margin-bottom: 10px; font-size: 27px; }
    .product-card .btn { height: 38px; }
}

@media (max-width: 860px) {
    .hero-pet { position: absolute; top: 14px; left: 50%; width: 230px; max-width: none; transform: translateX(-50%); }
    .hero-orbit { display: none; }
    .pet-help-card { right: 0; bottom: 8px; transform: scale(.82); transform-origin: right bottom; }
}

@media (max-width: 520px) {
    .hero-pet { top: 18px; width: 215px; }
    .hero-cloud { opacity: .28; }
    .pet-help-card { display: none; }
}
/* Force the compact menu control above the hero stacking context. */
@media (max-width: 520px) {
    .nav-toggle {
        position: fixed !important;
        top: 17px !important;
        right: 14px !important;
        z-index: 9999 !important;
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .site-header.is-menu-open .nav-toggle {
        background: #dceeff;
        border-color: #8fbaf0;
    }

    .site-header.is-menu-open .site-nav {
        position: fixed;
        top: 68px;
        right: 14px;
        left: 14px;
        z-index: 9998;
    }
}

/* Final desktop spacing pass: match the wider reference composition. */
@media (min-width: 861px) {
    .hero-badges {
        margin-top: 3px;
        position: relative;
        z-index: 4;
    }

    .hero-inner {
        max-width: 1244px;
    }

    .activity-strip {
        height: 108px;
    }

    .promo-tile {
        min-height: 74px;
        height: 74px;
    }

    .products {
        max-width: 1384px;
        padding-right: 0;
        padding-left: 0;
        padding-top: 14px;
    }

    .product-grid {
        max-width: 1376px;
    }

    .product-card {
        padding-left: 120px;
    }

    .product-icon {
        top: 20px;
        left: 28px;
    }
}
