:root {
  color-scheme: dark;
  --bg: #050b15;
  --panel: rgba(12, 23, 40, 0.78);
  --panel-strong: #0c1728;
  --line: rgba(132, 160, 201, 0.16);
  --text: #f7f9ff;
  --muted: #93a4bd;
  --cyan: #2caaf4;
  --blue: #347ef8;
  --violet: #5a39f5;
  --success: #45e0a8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 12%, rgba(52, 126, 248, 0.12), transparent 28rem),
    linear-gradient(145deg, #050b15 0%, #07111f 52%, #080c18 100%);
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: 20%;
  right: -8rem;
  background: var(--violet);
}

.ambient-two {
  bottom: -11rem;
  left: -7rem;
  background: var(--cyan);
}

.topbar,
main,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  width: 132px;
  height: 52px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 132px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  filter:
    drop-shadow(1px 0 0 #ffffff)
    drop-shadow(-1px 0 0 #ffffff)
    drop-shadow(0 1px 0 #ffffff)
    drop-shadow(0 -1px 0 #ffffff)
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.24));
}

.status-pill {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(69, 224, 168, 0.18);
  border-radius: 999px;
  color: #b6f7df;
  background: rgba(69, 224, 168, 0.07);
  font-size: 12px;
  font-weight: 650;
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  min-height: 570px;
  padding: 64px 0 54px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #63bafc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(44px, 5.3vw, 76px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 em {
  color: transparent;
  background: linear-gradient(100deg, #61c8ff 0%, #4f88ff 48%, #8b6cff 100%);
  background-clip: text;
  font-style: normal;
}

.lead {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(110deg, var(--blue), var(--violet));
  box-shadow: 0 16px 36px rgba(57, 89, 244, 0.24);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.version {
  margin-top: 22px;
  color: #677991;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.identity-card {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  padding: 30px;
  border: 1px solid rgba(102, 146, 219, 0.2);
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(23, 39, 65, 0.82), rgba(8, 17, 30, 0.9)),
    var(--panel-strong);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.32);
}

.identity-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.identity-glow {
  position: absolute;
  top: -30%;
  left: 10%;
  width: 80%;
  height: 75%;
  border-radius: 50%;
  background: rgba(58, 102, 255, 0.26);
  filter: blur(60px);
}

.identity-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 260px;
  margin: 26px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.28));
}

.identity-caption {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.identity-caption span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.identity-caption strong {
  font-size: 12px;
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 0 56px;
}

.modules article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.module-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(90, 119, 255, 0.24);
  border-radius: 11px;
  color: #7dbbff;
  background: rgba(52, 126, 248, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.modules h2 {
  margin: 0 0 5px;
  font-size: 14px;
}

.modules p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.module-state {
  color: var(--success);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: #5f7189;
  font-size: 9px;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 54px;
  }

  .identity-card {
    min-height: 360px;
  }

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

@media (max-width: 600px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    padding: 8px 0;
  }

  .brand,
  .brand-logo {
    width: 116px;
    height: 47px;
  }

  .brand {
    width: 116px;
    height: 47px;
  }

  .status-pill {
    padding: 8px 10px;
    font-size: 0;
  }

  .status-pill::after {
    content: "Online";
    font-size: 11px;
  }

  .hero {
    min-height: 0;
    padding: 46px 0 38px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .lead {
    font-size: 15px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .identity-card {
    min-height: 300px;
    padding: 20px;
  }

  .identity-caption {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
