:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-soft: #11141c;
  --text: #f7f8fb;
  --muted: #a7afc0;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --accent: #62d4ff;
  --accent-2: #a6ffcb;
  --danger: #ff6b6b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(98, 212, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(166, 255, 203, 0.12), transparent 24rem),
    linear-gradient(180deg, #090b12 0%, #07080d 48%, #0d1017 100%);
  color: var(--text);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 15, 0.72);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(98, 212, 255, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a,
.button,
button.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: rgba(98, 212, 255, 0.48);
  background: linear-gradient(135deg, #f8fbff, #c8f3ff);
  color: #071018;
}

.button.ghost {
  background: transparent;
}

.button.danger {
  border-color: rgba(255, 107, 107, 0.42);
  color: #ffd5d5;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  padding: 70px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.12em;
}

h1 {
  margin: 16px 0 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 660px;
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.device {
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.device-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.tile,
.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tile {
  padding: 18px;
}

.tile strong {
  display: block;
  margin-bottom: 6px;
}

.tile span {
  color: var(--muted);
  font-size: 14px;
}

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

.metric {
  min-height: 96px;
  padding: 14px;
}

.metric b {
  display: block;
  margin-top: 12px;
  font-size: 26px;
}

.main {
  padding: 48px 0 76px;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.card p {
  margin: 10px 0 22px;
}

.card:hover,
.button:hover,
.nav a:hover {
  border-color: rgba(98, 212, 255, 0.42);
  background: var(--panel-strong);
}

.form-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.form-card {
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin: 16px 0 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
}

.form-card .button {
  width: 100%;
  margin-top: 20px;
}

.alert {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, 0.36);
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.1);
  color: #ffd5d5;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day {
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.day.current {
  color: var(--text);
  border-color: rgba(98, 212, 255, 0.4);
}

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .device {
    min-height: auto;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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