:root {
  --ink: #f5f8ff;
  --muted: #8a98ad;
  --panel: rgba(13, 21, 36, 0.78);
  --line: rgba(55, 107, 159, 0.24);
  --blue: #376b9f;
  --cyan: #336ba4;
  --green: #54c6a4;
  --bg: #020204;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Tahoma, "Segoe UI", Arial, sans-serif; min-width: 320px; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell {
  position: relative; min-height: 100vh; overflow: hidden; isolation: isolate;
  padding: 0 clamp(20px, 5vw, 84px) 30px;
  background: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px), radial-gradient(circle at 75% 16%, rgba(47,114,255,.12), transparent 35%), linear-gradient(135deg, #08101d 0%, #070c15 52%, #080e18 100%);
  background-size: 62px 62px, 62px 62px, auto, auto;
}
.app-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,12,21,.3), transparent 45%, rgba(7,12,21,.42)); pointer-events: none; }
.ambient { position: absolute; border-radius: 50%; filter: blur(95px); opacity: .22; z-index: -1; }
.ambient-one { width: 360px; height: 360px; background: #155eff; top: 24%; left: -180px; }
.ambient-two { width: 300px; height: 300px; background: #17c5b4; right: -170px; bottom: 5%; opacity: .1; }

.topbar { height: 100px; max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; direction: ltr; align-items: center; gap: 12px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 20px; letter-spacing: .18em; font-weight: 800; }
.brand small { color: #75839a; font-size: 8px; letter-spacing: .31em; margin-top: 7px; }
.brand-mark { position: relative; width: 42px; height: 42px; border: 1px solid rgba(70,130,255,.55); border-radius: 12px; background: linear-gradient(145deg, rgba(36,93,211,.22), rgba(24,213,210,.07)); box-shadow: 0 0 30px rgba(47,114,255,.15), inset 0 0 18px rgba(47,114,255,.06); }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left center; }
.brand-mark::before { width: 19px; left: 11px; top: 26px; transform: rotate(-53deg); }
.brand-mark::after { width: 13px; left: 10px; top: 26px; transform: rotate(20deg); }
.brand-mark i { width: 10px; left: 23px; top: 11px; transform: rotate(20deg); }
.live-chip { display: flex; align-items: center; gap: 9px; color: #8b98ab; font-size: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(9,17,30,.55); }
.live-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.hero { max-width: 1200px; min-height: 570px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); align-items: center; gap: clamp(42px, 8vw, 110px); padding: 58px 0 50px; }
.hero-copy { max-width: 530px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #77a4ff; font-size: 12px; font-weight: 700; letter-spacing: .05em; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 27px; height: 1px; background: #477df2; }
.hero h1 { font-size: clamp(42px, 5vw, 70px); line-height: 1.12; margin: 0; letter-spacing: -.045em; font-weight: 800; }
.hero h1 em { color: transparent; background: linear-gradient(90deg, #a6bdff 0%, #45dbe7 75%); -webkit-background-clip: text; background-clip: text; font-style: normal; }
.hero-copy > p { color: var(--muted); line-height: 1.95; font-size: 15px; max-width: 470px; margin: 23px 0 30px; }
.client-meta { display: inline-flex; align-items: center; gap: 20px; padding: 14px 18px; border: 1px solid var(--line); background: rgba(14,23,38,.5); border-radius: 14px; box-shadow: inset 0 1px rgba(255,255,255,.025); }
.client-meta > span { width: 1px; height: 29px; background: var(--line); }
.client-meta div { display: flex; flex-direction: column; gap: 5px; }
.client-meta small { color: #6f7c90; font-size: 9px; }
.client-meta strong { color: #d6ddeb; font-size: 12px; font-weight: 600; }

.test-card { position: relative; overflow: hidden; padding: 24px 30px 30px; border-radius: 30px; border: 1px solid rgba(111,141,199,.2); background: linear-gradient(155deg, rgba(17,29,50,.96), rgba(8,15,27,.88)); box-shadow: 0 35px 90px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.035); }
.test-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; top: -170px; right: -110px; background: rgba(47,114,255,.16); filter: blur(55px); }
.status-line { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 20px; color: #7d8ca4; font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #476785; }
.status-dot.pulse { background: var(--cyan); animation: pulse 1s infinite; box-shadow: 0 0 13px var(--cyan); }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }

.gauge-wrap { width: min(335px, 90%); margin: 22px auto 18px; }
.gauge { --gauge-value: 0%; width: 100%; aspect-ratio: 2 / 1.08; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.gauge::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: conic-gradient(from 270deg at 50% 100%, var(--cyan) 0%, var(--blue) var(--gauge-value), rgba(117,139,179,.13) var(--gauge-value), rgba(117,139,179,.13) 50%, transparent 50%); transition: background .35s ease; filter: drop-shadow(0 0 15px rgba(47,114,255,.16)); }
.gauge::after { content: ""; position: absolute; width: 76%; aspect-ratio: 2 / 1.08; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: #0d1727; box-shadow: inset 0 14px 35px rgba(2,7,14,.22); }
.gauge-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-bottom: 5px; }
.gauge-inner strong { direction: ltr; font-size: clamp(36px, 4.5vw, 55px); letter-spacing: -.05em; line-height: .95; font-weight: 750; }
.gauge-inner span { color: #718199; font-size: 11px; margin-top: 9px; }
.gauge-scale { display: flex; justify-content: space-between; direction: ltr; color: #536075; font-size: 9px; padding: 8px 2px 0; }

.start-button { width: 100%; min-height: 54px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 14px; color: white; font-weight: 700; cursor: pointer; background: linear-gradient(90deg, #2867ee, #2e75ff 56%, #1f8fe8); box-shadow: 0 12px 28px rgba(40,103,238,.27), inset 0 1px rgba(255,255,255,.2); transition: transform .18s ease, filter .18s ease; }
.start-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.start-button:active:not(:disabled) { transform: translateY(0); }
.start-button:disabled { cursor: wait; opacity: .78; }
.start-button i { font-size: 21px; font-style: normal; }
.error-text { color: #ff8f9d; font-size: 11px; text-align: center; margin: 12px 0 0; }

.results { max-width: 1040px; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.results article { position: relative; min-height: 112px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,21,35,.64); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.results article::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(40,109,255,.55), transparent); opacity: .5; }
.results article > div:nth-child(2) { display: flex; flex-direction: column; gap: 7px; }
.results article div > span { color: #7c8ba2; font-size: 10px; }
.results article strong { direction: ltr; text-align: right; font-size: 21px; letter-spacing: -.03em; }
.results article strong small { color: #66758b; font-size: 9px; font-weight: 500; }
.metric-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #72a6ff; background: rgba(47,114,255,.11); border: 1px solid rgba(76,131,243,.13); font-size: 21px; }
.download-icon { color: #50d4ec; background: rgba(33,216,233,.08); }
.upload-icon { color: #83a7ff; }
.latency-icon i { position: relative; width: 20px; height: 10px; border: 2px solid #72a6ff; border-bottom: 0; border-radius: 20px 20px 0 0; }
.latency-icon i::after { content: ""; position: absolute; width: 2px; height: 9px; left: 8px; top: 2px; border-radius: 2px; background: #72a6ff; transform: rotate(38deg); transform-origin: bottom; }
.submetric { position: absolute; left: 18px; bottom: 15px; color: #4f5d72; font-size: 8px; }
.privacy-note { width: fit-content; margin: 0 auto 42px; color: #536176; font-size: 9px; display: flex; align-items: center; gap: 7px; }
.privacy-note span { color: var(--green); }
footer { max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; color: #4b586c; font-size: 10px; }
footer a { color: #697a95; transition: color .2s; }
footer a:hover { color: #a7b9d6; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 50px; }
  .hero-copy { margin: 0 auto; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .client-meta { text-align: right; }
  .eyebrow { justify-content: center; }
  .results { grid-template-columns: 1fr; max-width: 570px; }
  .results article { min-height: 100px; }
}
@media (max-width: 600px) {
  .app-shell { padding-left: 15px; padding-right: 15px; }
  .topbar { height: 82px; }
  .live-chip { font-size: 0; padding: 10px; }
  .live-chip span { margin: 0; }
  .hero { padding: 42px 0 38px; min-height: auto; }
  .hero h1 { font-size: 40px; }
  .hero-copy > p { font-size: 13px; }
  .client-meta { width: 100%; justify-content: center; }
  .test-card { padding: 22px 18px 24px; border-radius: 24px; }
  .gauge-wrap { width: 290px; max-width: 94%; }
  footer { flex-direction: column; gap: 10px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

/* JILJAM brand theme */
.app-shell {
  background:
    linear-gradient(rgba(55,107,159,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,107,159,.026) 1px, transparent 1px),
    radial-gradient(circle at 79% 18%, rgba(55,107,159,.18), transparent 34%),
    radial-gradient(circle at 12% 64%, rgba(30,73,104,.15), transparent 31%),
    linear-gradient(145deg, #020204 0%, #050a12 45%, #07111d 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}
.app-shell::before { background: linear-gradient(90deg, rgba(2,2,4,.55), transparent 48%, rgba(2,2,4,.18)); }
.app-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -285px;
  top: 220px;
  border: 55px solid rgba(55,107,159,.055);
  border-radius: 86px;
  transform: rotate(45deg);
}
.ambient-one { background: #376b9f; opacity: .17; }
.ambient-two { background: #1e4968; opacity: .16; }

.topbar { height: 108px; border-bottom-color: rgba(55,107,159,.2); }
.brand-logo { display: inline-flex; align-items: center; direction: ltr; }
.brand-logo img { display: block; width: 245px; height: auto; max-width: 42vw; mix-blend-mode: screen; filter: saturate(1.08) brightness(1.08); }
.live-chip { color: #91a0b4; border-color: rgba(55,107,159,.24); background: rgba(4,8,14,.72); box-shadow: inset 0 1px rgba(255,255,255,.02); }

.hero { min-height: 590px; }
.eyebrow { color: #6f9ac6; letter-spacing: .15em; direction: ltr; }
.eyebrow::before { background: linear-gradient(90deg, #1e4968, #376b9f); }
.hero h1 { text-shadow: 0 16px 50px rgba(0,0,0,.28); }
.hero h1 em { background: linear-gradient(90deg, #376fac 0%, #67a5d2 78%); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { color: #8d9aac; }
.client-meta { border-color: rgba(55,107,159,.24); background: rgba(5,10,18,.74); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 18px 50px rgba(0,0,0,.13); }
.client-meta small { color: #62738a; }
.client-meta strong { color: #c7d1df; }

.test-card { border-color: rgba(55,107,159,.38); background: linear-gradient(150deg, rgba(13,26,43,.98), rgba(3,7,13,.96)); box-shadow: 0 38px 95px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.035); }
.test-card::before { width: 330px; height: 330px; top: -220px; right: -120px; background: rgba(55,107,159,.24); filter: blur(65px); }
.test-card::after { content: ""; position: absolute; z-index: 0; inset: 0 17% auto; height: 1px; background: linear-gradient(90deg, transparent, #376b9f, transparent); opacity: .65; }
.status-line, .gauge-wrap, .start-button, .error-text { position: relative; z-index: 1; }
.status-line { color: #7f8ea3; }
.status-dot { background: #35506c; }
.status-dot.pulse { background: #5f9ec4; box-shadow: 0 0 13px #5f9ec4; }
.gauge::before { background: conic-gradient(from 270deg at 50% 100%, #1e657c 0%, #376fac var(--gauge-value), rgba(55,107,159,.13) var(--gauge-value), rgba(55,107,159,.13) 50%, transparent 50%); filter: drop-shadow(0 0 15px rgba(55,107,159,.22)); }
.gauge::after { background: #08111e; }
.gauge-inner span, .gauge-scale { color: #64778f; }
.start-button { background: linear-gradient(90deg, #233252, #376b9f 58%, #2d7892); box-shadow: 0 13px 32px rgba(35,73,112,.36), inset 0 1px rgba(255,255,255,.18); }

.results article { border-color: rgba(55,107,159,.27); background: linear-gradient(145deg, rgba(8,16,27,.9), rgba(3,7,13,.82)); }
.results article::after { background: linear-gradient(90deg, transparent, rgba(55,107,159,.75), transparent); }
.results article div > span { color: #7f8da1; }
.results article strong small { color: #687b91; }
.metric-icon { color: #79a5cf; background: rgba(55,107,159,.12); border-color: rgba(55,107,159,.23); }
.download-icon { color: #60a6bc; background: rgba(30,73,104,.2); }
.upload-icon { color: #78a0ce; }
.latency-icon i { border-color: #79a5cf; }
.latency-icon i::after { background: #79a5cf; }
.submetric { color: #58697e; }
.privacy-note { color: #65758a; }

footer { align-items: center; gap: 24px; border-top-color: rgba(55,107,159,.19); color: #536278; }
footer img { display: block; width: 120px; height: auto; margin-left: auto; mix-blend-mode: screen; opacity: .74; }
footer a { color: #7890aa; }
footer a:hover { color: #9cb7d2; }

@media (max-width: 600px) {
  .topbar { height: 86px; }
  .brand-logo img { width: 178px; max-width: 67vw; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: 39px; }
  .test-card { border-radius: 26px; }
  .privacy-note { text-align: center; line-height: 1.8; padding: 0 12px; }
  footer img { width: 105px; margin: 0 0 4px; }
}

.start-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(103,165,210,.58);
  outline-offset: 3px;
}
