:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --ink: #172033;
  --muted: #657184;
  --line: #dde3ed;
  --line-strong: #c8d1df;
  --nav: #07111f;
  --nav-hover: #142338;
  --blue: #1677ff;
  --cyan: #02a7d8;
  --green: #138a4d;
  --amber: #b7791f;
  --red: #b42335;
  --shadow: 0 12px 32px rgba(23, 32, 51, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Segoe UI, Arial, sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 26px;
  background: var(--nav);
  color: white;
  border-bottom: 1px solid #1b2a40;
}

.topbar div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.topbar img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

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

.topbar nav a {
  color: #d9e4f5;
  padding: 8px 12px;
  border-radius: 6px;
}

.topbar nav a:hover {
  background: var(--nav-hover);
  text-decoration: none;
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7,17,31,.88), rgba(7,17,31,.72)),
    url("assets/AmarMesh-A.png") center 28% / 220px no-repeat,
    var(--nav);
}

.panel {
  width: min(430px, 100%);
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.dashboard {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 22px 44px;
}

.dashboard > section:first-child {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

h1, h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 17px;
  line-height: 1.3;
}

p, span {
  color: var(--muted);
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card > h2 {
  margin-bottom: 12px;
}

.row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.row:first-of-type {
  border-top: 0;
}

.row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.row strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.shared-row {
  border-left: 3px solid var(--cyan);
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(2, 167, 216, .08), transparent 42%);
}

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.ok {
  color: var(--green);
  background: #e7f7ee;
}

.status.pending {
  color: var(--amber);
  background: #fff6df;
}

.status.shared {
  color: #075f7b;
  background: #e4f7fd;
}

label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(22, 119, 255, .18);
  border-color: var(--blue);
}

input[type="checkbox"] {
  width: auto;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.check-list label,
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 13px;
  color: white;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

button:hover,
.button-link:hover {
  background: #0f63d5;
  text-decoration: none;
}

button.danger {
  background: #fff1f2;
  color: var(--red);
  border: 1px solid #ffc7ce;
}

button.danger:hover {
  background: #ffe4e8;
}

.error {
  border: 1px solid #ffc7ce;
  background: #fff1f2;
  color: var(--red);
  padding: 10px;
  border-radius: 6px;
}

.marketing {
  color: #f8fbff;
  background: #000;
}

.marketing .site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(0, 0, 0, .82);
  border-bottom: 1px solid rgba(125, 146, 183, .18);
  backdrop-filter: blur(18px);
}

.marketing .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 18px;
  font-weight: 850;
}

.marketing .brand:hover {
  text-decoration: none;
}

.marketing .brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.marketing .site-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.marketing .site-nav nav a {
  color: #d8e5ff;
  font-weight: 700;
}

.marketing .site-nav nav a:hover {
  color: white;
  text-decoration: none;
}

.marketing .button-link {
  min-height: 42px;
  border: 1px solid rgba(76, 210, 255, .42);
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #0575ff, #8d32ff);
  box-shadow: 0 12px 34px rgba(22, 119, 255, .26);
}

.marketing .button-link:hover {
  background: linear-gradient(90deg, #1697ff, #a740ff);
}

.hero {
  min-height: calc(92vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
  gap: 44px;
  align-items: center;
  padding: 58px 42px 76px;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(135deg, #000 0%, #030816 45%, #000 100%);
}

.hero-copy {
  width: min(760px, 100%);
}

.hero-wordmark {
  width: min(330px, 72vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 740px;
  color: white;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #b9c8e5;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.secondary-link {
  color: #d9e4f5;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 46px 0 20px;
  border: 1px solid rgba(125, 146, 183, .2);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 18, 32, .78), rgba(0, 0, 0, .82));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.hero-visual > img {
  position: relative;
  z-index: 1;
  width: min(430px, 86%);
  height: auto;
  object-fit: contain;
}

.hero-console {
  position: relative;
  z-index: 2;
  width: min(420px, 92%);
  display: grid;
  gap: 10px;
  margin-top: -16px;
  padding: 14px;
  border: 1px solid rgba(101, 124, 162, .28);
  border-radius: 18px;
  background: rgba(4, 8, 16, .86);
}

.hero-console div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(101, 124, 162, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.hero-console span {
  color: #d8e5ff;
}

.hero-console strong {
  color: #67e8f9;
}

.marketing-section {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 76px 24px;
}

.marketing-section h2 {
  max-width: 760px;
  color: white;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.marketing-section p {
  max-width: 690px;
  color: #aab8d2;
  font-size: 17px;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #67e8f9;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
}

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

.feature-grid article,
.mini-console {
  border: 1px solid rgba(125, 146, 183, .2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 25, 40, .94), rgba(7, 12, 22, .94));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
}

.feature-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.feature-grid article strong {
  color: white;
  font-size: 18px;
}

.feature-grid article span {
  color: #aab8d2;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 34px;
  align-items: center;
}

.mini-console {
  padding: 12px 18px;
}

.mini-console > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(125, 146, 183, .18);
}

.mini-console > div:first-child {
  border-top: 0;
}

.mini-console strong {
  color: white;
}

.mini-console span {
  color: #aab8d2;
}

.device-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.device-list li {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

@media (max-width: 720px) {
  .marketing .site-nav {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
  }

  .marketing .site-nav nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 18px 56px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual::before {
    inset: 24px 0 8px;
    border-radius: 20px;
  }

  .feature-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  .dashboard {
    padding: 20px 14px 34px;
  }

  .dashboard > section:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

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