.hero {
    position: relative;
    min-height: min(78svh, 760px);
    display: flex;
    align-items: center;
    padding: 130px var(--gutter) 60px;
    overflow: hidden;
    isolation: isolate;
}
.hero .scene { z-index: -1; }
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(transparent, var(--bg));
    z-index: -1;
    pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: drift 20s var(--ease) infinite alternate;
}
.orb-1 { width: 48vw; height: 48vw; max-width: 700px; max-height: 700px; top: -14%; right: -4%; background: radial-gradient(circle, rgba(143, 176, 138, 0.28), rgba(143, 176, 138, 0) 70%); }
.hero.down .orb-1 { background: radial-gradient(circle, rgba(208, 106, 90, 0.4), rgba(208, 106, 90, 0) 70%); }
.orb-2 { width: 38vw; height: 38vw; max-width: 560px; max-height: 560px; bottom: -20%; left: -8%; background: radial-gradient(circle, rgba(125, 55, 55, 0.5), rgba(125, 55, 55, 0) 70%); animation-delay: -7s; }
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(3vw, 4vw, 0) scale(1.12); }
}

.hero-inner { width: 100%; max-width: calc(var(--maxw) - var(--gutter) * 2); margin: 0 auto; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(44px, 7vw, 96px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--text-hi);
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero.up h1 em { color: var(--ok); }
.hero.down h1 em { color: var(--bad); }

.summary { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 14px 20px;
    border: 1px solid var(--line-hi);
    border-radius: 16px;
    background: rgba(26, 33, 39, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}
.count strong { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--text-hi); }
.count span { color: var(--muted); font-size: 16px; }
.summary .muted { line-height: 1.55; }

.services-wrap { max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) clamp(80px, 12vh, 130px); }
.services {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    perspective: 1400px;
}
.service-wrap { display: flex; }
.service {
    position: relative;
    width: 100%;
    padding: 22px 22px 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(165deg, var(--bg-raise), var(--bg-soft) 60%);
    box-shadow: 0 1px 0 rgba(241, 231, 214, 0.06) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.75);
    transition: border-color 0.4s, box-shadow 0.4s;
}
.service.ok:hover { border-color: rgba(143, 176, 138, 0.4); }
.service.bad { border-color: rgba(208, 106, 90, 0.4); box-shadow: 0 1px 0 rgba(241, 231, 214, 0.06) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(208, 106, 90, 0.15); }
.s-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.s-cube { perspective: 300px; }
.s-cube .cube { --s: 26px; animation: cube-spin 10s linear infinite; }
.service.bad .s-cube .cube { animation-duration: 2.5s; }
.state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ok);
    border: 1px solid rgba(143, 176, 138, 0.35);
    background: rgba(143, 176, 138, 0.08);
}
.service.bad .state { color: var(--bad); border-color: rgba(208, 106, 90, 0.4); background: rgba(208, 106, 90, 0.1); }
.service h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; color: var(--text-hi); line-height: 1.1; }
.host { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--faint); word-break: break-all; }
.latency { margin-top: 24px; }
.ms { font-family: var(--serif); font-size: 30px; color: var(--text-hi); }
.ms small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.bar { display: block; height: 5px; margin-top: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #b9cfa9); transform-origin: left; animation: grow 1.2s var(--ease) both; }
.service.bad .bar i { background: linear-gradient(90deg, var(--bad), var(--accent)); }
@keyframes grow { from { transform: scaleX(0); } }

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 26px var(--gutter) 32px;
    border-top: 1px solid var(--line);
}
.foot a:hover { color: var(--text-hi); }

@media (max-width: 1040px) {
    .hero .scene.ready { opacity: 0.4; }
}

@media (max-width: 560px) {
    .hide-xs { display: none; }
    .brand-tag { display: none; }
    .hero h1 { font-size: 12vw; }
    .summary { flex-direction: column; align-items: flex-start; gap: 14px; }
}
