:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: rgba(18, 22, 31, 0.78);
  --panel-strong: rgba(22, 27, 38, 0.96);
  --ink: #f5f7f2;
  --muted: #a8b1c1;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #69e0ff;
  --coral: #ff6c5f;
  --gold: #f6c85f;
  --green: #73e2a7;
  --violet: #b89cff;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at 18% 18%, rgba(105, 224, 255, 0.15), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(255, 108, 95, 0.12), transparent 22rem),
    linear-gradient(135deg, #080a0f 0%, #0d1018 42%, #06070b 100%);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(8, 10, 15, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 10, 15, 0.28) 1px, transparent 1px);
  background-size: 44px 44px;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111722;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.92) 0%, rgba(8, 10, 15, 0.64) 44%, transparent 100%),
    linear-gradient(0deg, rgba(8, 10, 15, 0.88) 0%, transparent 56%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.08);
  opacity: 0.92;
}

.hero__content {
  max-width: 760px;
  padding: clamp(28px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  font-size: clamp(4.2rem, 10vw, 9.5rem);
  line-height: 0.84;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: #dde5ea;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__meta span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #dfe7ed;
  background: rgba(7, 10, 15, 0.54);
  backdrop-filter: blur(14px);
}

.hero__meta strong {
  color: var(--cyan);
}

.access-logout {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 108, 95, 0.42);
  border-radius: 999px;
  color: #fff4f2;
  background: rgba(255, 108, 95, 0.16);
  font-weight: 800;
  backdrop-filter: blur(14px);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.access-logout:hover {
  border-color: rgba(255, 108, 95, 0.72);
  background: rgba(255, 108, 95, 0.24);
  transform: translateY(-1px);
}

.toolbar,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.toolbar {
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 18, 28, 0.72);
  backdrop-filter: blur(18px);
}

.toolbar__search {
  flex: 1 1 320px;
}

.toolbar__search label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.toolbar__search input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.toolbar__search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(105, 224, 255, 0.16);
}

.toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.filter.is-active {
  color: #071014;
  border-color: transparent;
  background: var(--cyan);
}

.section-heading {
  margin-top: 42px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.section-heading--services {
  margin-top: 52px;
}

.app-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.app-card,
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 246px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.app-card:hover,
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(105, 224, 255, 0.45);
  background: var(--panel-strong);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.04);
  opacity: 0.25;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.46), rgba(8, 10, 15, 0.96)),
    linear-gradient(135deg, var(--accent), transparent 38%);
  opacity: 0.95;
}

.app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-card__title {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.1;
}

.app-card__domain,
.service-card__domain {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.app-card__mark {
  flex: 0 0 auto;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #071014;
  font-weight: 900;
  background: var(--badge);
}

.app-card__description,
.service-card__description {
  margin: 18px 0;
  color: #d5dde7;
  line-height: 1.52;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #dfe7ed;
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.24);
}

.open-link {
  align-self: flex-start;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.open-link:hover {
  border-color: var(--cyan);
}

.service-card {
  min-height: 190px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.service-card__title {
  margin: 0;
  font-size: 1.08rem;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 20px, 720px);
    padding-top: 10px;
  }

  .hero {
    min-height: 580px;
  }

  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar__filters {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: clamp(3.8rem, 19vw, 5.4rem);
  }

  .hero__content {
    padding: 24px;
  }

  .hero__image {
    object-position: 58% center;
  }
}
