:root {
  --navy: #10162f;
  --violet: #7d5cff;
  --mint: #7fffd4;
  --cloud: #f4f7fb;
  --text: #1a2038;
  --soft: #66708a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--cloud);
}

a {
  color: inherit;
  text-decoration: none;
}

.portal-hero {
  min-height: 790px;
  padding: 26px clamp(18px, 5vw, 76px) 84px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(127, 255, 212, 0.26), transparent 28%),
    linear-gradient(135deg, #10162f, #2a2267 62%, #11162f);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  padding: 13px 15px;
  border-radius: 16px;
  color: var(--navy);
  background: var(--mint);
  font-weight: 900;
}

.nav div {
  display: flex;
  gap: 28px;
  color: #d7dcff;
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--violet);
  cursor: pointer;
  font-weight: 900;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  gap: 58px;
  align-items: center;
  padding-top: 100px;
}

.pill {
  display: inline-block;
  margin: 0 0 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--mint);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-grid p:last-child {
  max-width: 780px;
  color: #d7dcff;
  font-size: 21px;
  line-height: 1.7;
}

.dashboard {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
}

.dashboard div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.dashboard span {
  color: #d7dcff;
  text-transform: uppercase;
}

.dashboard b {
  color: var(--mint);
  font-size: 44px;
}

.platform,
.support,
.audience,
.note,
.footer {
  padding: 94px clamp(18px, 5vw, 76px);
}

.platform {
  background: white;
}

.platform-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.platform .pill,
.footer .pill {
  color: var(--violet);
  background: rgba(125, 92, 255, 0.1);
}

h2 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.platform-intro p:last-child,
.feature-wall p,
.support-grid p,
.audience-list p,
.note p {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

.feature-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.feature-wall article {
  min-height: 300px;
  padding: 26px;
  border-radius: 28px;
  background: var(--cloud);
}

.feature-wall article:nth-child(even) {
  transform: translateY(34px);
}

.feature-wall h3 {
  color: var(--violet);
  font-size: 24px;
}

.support {
  color: white;
  background: var(--navy);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.support-grid div {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.support-grid strong {
  color: var(--mint);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.support-grid p {
  color: #c7ceec;
}

.audience {
  background: #eef2ff;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.audience-list p {
  padding: 30px;
  border-radius: 26px;
  background: white;
  box-shadow: 0 20px 60px rgba(16, 22, 47, 0.08);
}

.note {
  color: white;
  background: linear-gradient(90deg, var(--violet), #3a2c91);
}

.note p {
  max-width: 1040px;
  color: white;
  font-size: 26px;
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 46px;
  background: white;
}

.contact-panel {
  display: grid;
  gap: 12px;
  min-width: min(100%, 430px);
  padding: 30px;
  border-radius: 30px;
  color: white;
  background: var(--navy);
}

.contact-panel a {
  color: var(--mint);
  font-size: 24px;
  font-weight: 900;
}

.contact-panel span,
.footer p {
  color: var(--soft);
  line-height: 1.7;
}

.contact-panel span {
  color: #c7ceec;
}

.portal-window {
  margin: 94px clamp(18px, 5vw, 76px);
  overflow: hidden;
  border-radius: 34px;
  background: white;
  box-shadow: 0 30px 90px rgba(16, 22, 47, 0.14);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  color: #d7dcff;
  background: var(--navy);
}

.browser-bar span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mint);
}

.browser-bar span:nth-child(2) {
  background: #ffd166;
}

.browser-bar span:nth-child(3) {
  background: #ff6b6b;
}

.browser-bar b {
  margin-left: 16px;
  font-size: 13px;
}

.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 520px;
}

.sidebar {
  padding: 24px;
  background: #eef2ff;
}

.sidebar p {
  padding: 16px;
  border-radius: 16px;
  color: var(--navy);
  background: white;
  font-weight: 900;
}

.portal-main {
  padding: 52px;
}

.portal-main .pill,
.device-clinic .pill {
  color: var(--violet);
  background: rgba(125, 92, 255, 0.1);
}

.portal-main p:last-child {
  color: var(--soft);
  font-size: 20px;
  line-height: 1.7;
}

.queues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.queue {
  padding: 94px clamp(18px, 5vw, 76px);
}

.content-queue {
  background: var(--mint);
}

.ticket-queue {
  color: white;
  background: var(--violet);
}

.queue h2 {
  font-size: clamp(34px, 5vw, 70px);
}

.queue p {
  font-size: 20px;
  line-height: 1.7;
}

.queue ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.queue li {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  font-weight: 900;
}

.ticket-queue li {
  background: rgba(255, 255, 255, 0.14);
}

.device-clinic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 94px clamp(18px, 5vw, 76px);
  background: white;
}

.device-clinic p:last-child {
  color: var(--soft);
  font-size: 20px;
  line-height: 1.75;
}

.clinic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.clinic-cards span {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: 28px;
  color: white;
  background: var(--navy);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
}

.clinic-cards span:nth-child(2) {
  background: var(--violet);
}

.clinic-cards span:nth-child(3) {
  color: var(--navy);
  background: var(--mint);
}

@media (max-width: 1080px) {
  .hero-grid,
  .platform-intro,
  .feature-wall,
  .support-grid,
  .audience-list,
  .footer,
  .portal-layout,
  .queues,
  .device-clinic,
  .clinic-cards {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feature-wall article:nth-child(even) {
    transform: none;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav div {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}
