:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f7fb;
  color: #162033;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(49, 127, 255, 0.11), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  border-radius: 8px;
  background: #1f6feb;
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 40px;
}

button:disabled {
  background: #aeb8c8;
  cursor: not-allowed;
}

button.ghost {
  background: #ffffff;
  color: #23314d;
  border: 1px solid #cbd5e1;
}

input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: #172033;
}

label {
  display: grid;
  gap: 6px;
  color: #526073;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.publicShell,
.appShell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.publicShell {
  padding: 22px 0 54px;
}

.siteNav,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brandMark,
.accountBox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandIcon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f6feb, #22a06b);
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.28);
}

.brandMark strong {
  display: block;
  font-size: 18px;
}

.brandMark small,
.topbar p,
.authCopy p,
.feature span,
.viewerHeader span,
.device span,
.accountBox span {
  color: #62718a;
}

.navAction,
.primaryLink,
.secondaryLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 700;
}

.navAction,
.secondaryLink {
  color: #1e2b45;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.76);
}

.primaryLink {
  background: #1f6feb;
  color: white;
}

.heroBand {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 34px;
}

.heroCopy h1 {
  margin: 0;
  max-width: 680px;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: 0;
}

.heroCopy p {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: #526073;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.heroVisual {
  position: relative;
  min-height: 460px;
}

.phoneMock,
.webMock,
.authForm,
.devices,
.viewer {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(27, 45, 73, 0.11);
}

.phoneMock {
  position: absolute;
  left: 38px;
  top: 12px;
  width: 245px;
  height: 430px;
  padding: 22px;
  background: #0f1b2d;
}

.phoneStatus {
  height: 18px;
  border-radius: 8px;
  background: #c9d7ea;
  opacity: 0.42;
  margin-bottom: 26px;
}

.phonePanel {
  height: 56px;
  border-radius: 8px;
  background: #f7fafc;
  margin-bottom: 14px;
}

.phonePanel.large {
  height: 128px;
}

.phoneButtons {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.phoneButtons span {
  height: 34px;
  border-radius: 8px;
  background: #1f6feb;
}

.webMock {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(520px, 82%);
  height: 310px;
  padding: 18px;
}

.mockTop {
  height: 42px;
  border-radius: 8px;
  background: #e7eef8;
  margin-bottom: 18px;
}

.mockGrid {
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: repeat(2, 96px);
  gap: 14px;
}

.mockGrid span {
  border-radius: 8px;
  background: #eef4fb;
}

.mockGrid span:nth-child(2),
.mockGrid span:nth-child(4) {
  background: #111c2e;
}

.featureBand {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 42px;
}

.feature {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #d8e2ef;
}

.feature strong {
  font-size: 18px;
}

.feature span {
  line-height: 1.6;
}

.authBand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: start;
  padding: 42px 0 0;
}

.authCopy h2 {
  margin: 0;
  font-size: 34px;
}

.authCopy p {
  max-width: 520px;
  line-height: 1.7;
  font-size: 16px;
}

.authForm {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.authTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.authTabs button {
  background: #eef4fb;
  color: #253656;
}

.authTabs button.active {
  background: #1f6feb;
  color: white;
}

.formMessage,
.emptyHint {
  min-height: 20px;
  color: #b42318;
  margin: 0;
}

.appShell {
  padding: 24px 0;
}

.topbar {
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
}

.topbar p {
  margin: 4px 0 0;
}

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

.devices,
.viewer {
  min-height: 680px;
}

.devices {
  padding: 14px;
}

.sectionTitle {
  font-size: 13px;
  color: #66748a;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.deviceList {
  display: grid;
  gap: 10px;
}

.device {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.device strong {
  font-size: 15px;
}

.device.online {
  border-color: #8ed2a0;
}

.device button {
  margin-top: 8px;
}

.viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.viewerHeader,
.controlBar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #dbe3ee;
}

.viewerHeader {
  justify-content: space-between;
}

.viewerHeader span {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.screenFrame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  background: #101828;
  overflow: hidden;
}

video {
  max-width: 100%;
  max-height: 100%;
  background: #000;
}

.touchLayer {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.emptyState {
  position: absolute;
  color: #d5dce8;
  pointer-events: none;
}

.controlBar {
  border-top: 1px solid #dbe3ee;
  border-bottom: 0;
}

.controlBar input {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 920px) {
  .heroBand,
  .authBand,
  .workspace {
    grid-template-columns: 1fr;
  }

  .heroBand {
    min-height: auto;
    padding: 54px 0 30px;
  }

  .heroCopy h1 {
    font-size: 40px;
  }

  .heroVisual {
    min-height: 360px;
  }

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

  .devices,
  .viewer {
    min-height: auto;
  }

  .controlBar {
    flex-wrap: wrap;
  }
}
