:root {
  color-scheme: light;
  --orange: #ff5a00;
  --orange-dark: #c74400;
  --ink: #17191c;
  --muted: #5f6368;
  --line: #d8dee8;
  --surface: #ffffff;
  --background: #f4f6f9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 90, 0, 0.13), transparent 28rem),
    var(--background);
}

button,
a {
  font: inherit;
}

.platform-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
}

.web-access {
  display: grid;
  grid-template-columns: 48px auto auto;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(22, 28, 38, 0.08);
}

.web-access-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.overline {
  margin: 0 0 3px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-access h2 {
  margin: 0;
  font-size: 18px;
}

.login-button,
.dialog-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.login-button:hover,
.dialog-button:hover {
  background: var(--orange-dark);
}

.site-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-link img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.platform-main {
  width: min(960px, calc(100% - 36px));
  margin: 12px auto 64px;
}

.platform-intro {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.platform-logo {
  width: 82px;
  height: 82px;
  margin-bottom: 14px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(20, 24, 32, 0.15);
}

.platform-intro h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.05;
}

.intro-copy {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.apps-list {
  display: grid;
  gap: 14px;
}

.app-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(20, 28, 40, 0.06);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 0, 0.55);
  box-shadow: 0 10px 28px rgba(20, 28, 40, 0.1);
}

.app-card > img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: contain;
}

.app-card-copy h2 {
  margin: 0;
  font-size: 21px;
}

.app-card-copy p {
  margin: 7px 0 12px;
  color: #4f545a;
  line-height: 1.5;
}

.app-card-copy span {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.development-dialog[hidden] {
  display: none;
}

.development-dialog {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.58);
  backdrop-filter: blur(3px);
}

.dialog-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.dialog-symbol {
  font-size: 38px;
}

.dialog-card h2 {
  margin: 10px 0 8px;
}

.dialog-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 680px) {
  .platform-header {
    align-items: stretch;
    flex-direction: column;
  }

  .site-link {
    align-self: flex-end;
  }

  .web-access {
    grid-template-columns: 44px 1fr auto;
    max-width: none;
  }

  .web-access-icon {
    width: 44px;
    height: 44px;
  }

  .platform-main {
    margin-top: 24px;
  }

  .app-card {
    grid-template-columns: 68px 1fr;
    padding: 16px;
  }

  .app-card > img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .app-card-copy h2 {
    font-size: 18px;
  }

  .app-card-copy p {
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .web-access {
    grid-template-columns: 44px 1fr;
  }

  .login-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-card {
    align-items: start;
  }
}
