:root {
  --accent: #ff5b1a;
  --secondary: #2367ff;
  --navy: #071633;
  --ink: #0b1738;
  --muted: #60708e;
  --line: #dce5f2;
  --paper: #f7faff;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; transition: background .8s ease; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; z-index: -1; width: 52vw; height: 52vw; border-radius: 50%; filter: blur(90px); opacity: .14; transition: background .8s ease, transform 1.2s ease; }
.ambient-one { top: -22vw; right: -15vw; background: var(--secondary); }
.ambient-two { bottom: -30vw; left: -16vw; background: var(--accent); }

header { width: min(1240px, calc(100% - 48px)); min-height: 86px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.identity { display: inline-flex; align-items: center; gap: 12px; font: 700 17px "Manrope", sans-serif; }
.identity img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 7px 10px rgba(35,103,255,.16)); }
.live-state { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.live-state i { width: 10px; height: 10px; border-radius: 50%; background: #19af6f; box-shadow: 0 0 0 7px rgba(25,175,111,.12); animation: pulse 1.8s infinite; }

main { width: min(1240px, calc(100% - 48px)); margin: auto; }
.stage { min-height: calc(100vh - 154px); padding: clamp(52px, 8vh, 92px) 0 48px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transition: color .8s ease; }
h1 { max-width: 1000px; margin: 0; font: 600 clamp(56px, 8vw, 118px)/.96 "Manrope", sans-serif; letter-spacing: -.065em; text-wrap: balance; }
.message { max-width: 820px; margin: 34px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 25px); line-height: 1.5; }

.metrics { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metrics article { min-height: 150px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 44px rgba(8,24,60,.07); backdrop-filter: blur(18px); }
.metrics strong { color: var(--secondary); font: 700 clamp(30px, 4vw, 54px)/1 "Manrope", sans-serif; letter-spacing: -.05em; transition: color .8s ease; }
.metrics span { margin-top: 12px; color: var(--muted); font-size: 15px; }

.command-card { margin-top: 16px; padding: 24px 28px; display: grid; grid-template-columns: 46px 1fr; gap: 20px; align-items: center; color: #fff; background: var(--navy); border-radius: 24px; box-shadow: 0 20px 54px rgba(7,22,51,.18); }
.command-card p { margin: 0; color: #c7d2e7; font-size: 16px; line-height: 1.5; }
.command-card .command-label { margin-bottom: 5px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; transition: color .8s ease; }
.phone { width: 38px; height: 58px; padding: 5px; border: 2px solid #fff; border-radius: 10px; }
.phone span { display: block; width: 100%; height: 100%; border-radius: 5px; background: linear-gradient(145deg, var(--accent), var(--secondary)); transition: background .8s ease; }

footer { width: min(1240px, calc(100% - 48px)); min-height: 68px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
#status { font-weight: 700; color: var(--ink); }

body.refreshing .stage { animation: refresh .75s ease; }
body.refreshing .ambient-one { transform: translate(-5vw, 7vw) scale(1.12); }
body.refreshing .ambient-two { transform: translate(6vw, -4vw) scale(.9); }
@keyframes refresh { 0% { opacity: .45; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(25,175,111,0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 760px) {
  header, main, footer { width: min(100% - 28px, 1240px); }
  header { min-height: 72px; }
  .live-state span { display: none; }
  .stage { min-height: auto; padding: 46px 0 36px; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .metrics { margin-top: 38px; grid-template-columns: 1fr; }
  .metrics article { min-height: 118px; }
  .command-card { grid-template-columns: 1fr; padding: 22px; }
  .phone { display: none; }
  footer { padding: 18px 0; align-items: flex-start; flex-direction: column; justify-content: center; }
}
