:root {
  color-scheme: dark;
  --bg: #111417;
  --surface: #191f24;
  --surface-2: #20282d;
  --ink: #f3f7f4;
  --muted: #a8b3ad;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #44d7a8;
  --accent-2: #ffce5c;
  --accent-3: #67aaf9;
  --danger: #ff7c6e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(68, 215, 168, 0.16), transparent 28rem),
    linear-gradient(145deg, #101317 0%, #171b1c 46%, #1d2019 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(68, 215, 168, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(68, 215, 168, 0.28), rgba(103, 170, 249, 0.18));
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.topbar-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-link {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.text-link:hover {
  color: var(--ink);
}

.icon-link,
.login-button,
.primary-button,
.secondary-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 44px;
  background: rgba(255, 255, 255, 0.05);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-color: rgba(68, 215, 168, 0.7);
  background: rgba(68, 215, 168, 0.12);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.login-button:hover,
.login-button:focus-visible {
  border-color: var(--accent);
  background: rgba(68, 215, 168, 0.2);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(320px, 1.07fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100vh - 148px);
  padding: 44px 0 72px;
}

.hero-copy {
  max-width: 620px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(3.35rem, 8vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 54ch;
  margin-bottom: 28px;
  color: #c7d1ca;
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-button {
  border-color: rgba(68, 215, 168, 0.7);
  background: var(--accent);
  color: #071310;
  box-shadow: 0 18px 50px rgba(68, 215, 168, 0.22);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.85rem;
}

.status-strip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(68, 215, 168, 0.12);
}

.device-scene {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 560px;
}

.dashboard-card {
  position: absolute;
  inset: 64px 8% auto auto;
  width: min(480px, 84%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(25, 31, 36, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-top {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
}

.card-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.card-top span:nth-child(2) {
  background: var(--accent-2);
}

.card-top span:nth-child(3) {
  background: var(--accent);
}

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

.metric-grid div,
.activity-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-grid div {
  min-height: 92px;
  padding: 14px;
}

.metric-grid strong,
.activity-row strong,
.phone-screen strong {
  display: block;
}

.metric-grid strong {
  font-size: 1.35rem;
}

.metric-grid span,
.activity-row em,
.phone-screen small {
  color: var(--muted);
  font-style: normal;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  margin-top: 12px;
  padding: 14px;
}

.activity-row > span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(68, 215, 168, 0.95), rgba(103, 170, 249, 0.88));
}

.progress-line {
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-line span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.phone {
  position: absolute;
  left: 4%;
  bottom: 10px;
  width: min(245px, 48vw);
  aspect-ratio: 0.49;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background: #090b0c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 86px;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: #090b0c;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  display: grid;
  align-content: center;
  justify-items: center;
  height: 100%;
  padding: 30px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(145deg, #192026, #10211b 58%, #23291b);
  text-align: center;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #08110f;
  font-size: 1.2rem;
  font-weight: 900;
}

.phone-screen strong {
  font-size: 1.35rem;
}

.phone-list {
  display: grid;
  gap: 9px;
  width: 100%;
  margin-top: 34px;
}

.phone-list span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.phone-list span:nth-child(2) {
  width: 76%;
}

.phone-list span:nth-child(3) {
  width: 58%;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 48px;
}

.quick-panel article {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(68, 215, 168, 0.12);
  color: var(--accent);
}

.quick-panel h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.quick-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-page {
  min-height: 100vh;
}

.status-card {
  width: min(760px, 100%);
  margin: clamp(48px, 10vh, 110px) auto;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(25, 31, 36, 0.9);
  box-shadow: var(--shadow);
}

.status-card h1 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 7vw, 5.3rem);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 206, 92, 0.55);
  border-radius: 50%;
  background: rgba(255, 206, 92, 0.12);
  color: var(--accent-2);
  font-size: 1.3rem;
  font-weight: 900;
}

.status-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
}

.status-details div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.status-details dt {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-details dd {
  margin: 7px 0 0;
  font-weight: 800;
}

.status-details div:first-child dd {
  color: var(--accent);
}

.status-details div:last-child dd {
  color: var(--accent-2);
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 24px, 720px);
  }

  .topbar {
    min-height: 76px;
  }

  .brand-copy span,
  .text-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0 42px;
  }

  h1 {
    max-width: 8ch;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .status-strip span {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }

  .device-scene {
    min-height: 420px;
  }

  .dashboard-card {
    inset: 22px 0 auto auto;
    width: 86%;
  }

  .phone {
    left: 0;
    width: min(210px, 56vw);
  }

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

  .metric-grid div {
    min-height: 68px;
  }

  .quick-panel {
    grid-template-columns: 1fr;
  }

  .status-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 3rem;
  }

  .lede {
    font-size: 1rem;
  }

  .device-scene {
    min-height: 384px;
  }

  .dashboard-card {
    width: 100%;
    padding: 14px;
  }

  .phone {
    width: 178px;
  }
}
