:root {
  color-scheme: dark;
  --page-bg: #070b14;
  --page-bg-soft: #101628;
  --surface: rgb(18 23 36 / 0.72);
  --surface-strong: rgb(24 31 48 / 0.86);
  --surface-edge: rgb(255 255 255 / 0.12);
  --surface-edge-strong: rgb(255 255 255 / 0.18);
  --text-primary: #f5f7ff;
  --text-secondary: rgb(232 238 255 / 0.72);
  --text-muted: rgb(218 225 248 / 0.5);
  --shadow-soft: 0 18px 45px rgb(3 7 18 / 0.42);
  --shadow-card: 0 18px 55px rgb(5 10 22 / 0.42);
  --radius-xl: 2rem;
  --radius-lg: 1.45rem;
  --max-width: 31rem;
  --font-sans: "Aptos", "Segoe UI Variable Display", "SF Pro Display",
    "Segoe UI", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgb(240 138 56 / 0.2), transparent 34%),
    radial-gradient(circle at 82% 18%, rgb(113 93 255 / 0.16), transparent 28%),
    linear-gradient(180deg, #101524 0%, #0a0f1b 48%, #070b14 100%);
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    url("assets/background-orb.svg") center top / cover no-repeat,
    radial-gradient(circle at 50% 0%, rgb(255 255 255 / 0.08), transparent 48%);
  opacity: 0.72;
  transform: scale(1.08);
}

body::after {
  background:
    linear-gradient(rgb(255 255 255 / 0.025), rgb(255 255 255 / 0.025)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 11px,
      rgb(255 255 255 / 0.018) 12px
    );
  mix-blend-mode: soft-light;
  opacity: 0.3;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0f1b;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  position: relative;
  z-index: 1;
}

.portal {
  width: min(100%, var(--max-width));
  display: grid;
  gap: 1rem;
  position: relative;
}

.portal::before {
  content: "";
  position: absolute;
  inset: 2.5rem -1rem auto;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgb(113 93 255 / 0.16) 0%,
    rgb(240 138 56 / 0.12) 36%,
    transparent 74%
  );
  filter: blur(26px);
  z-index: -1;
}

.hero,
.service-card,
.social-link {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.55rem 1.4rem 1.45rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.04)),
    linear-gradient(140deg, rgb(15 20 34 / 0.92), rgb(12 16 28 / 0.86));
  border: 1px solid var(--surface-edge);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: 14rem;
  height: 14rem;
  transform: translate(-50%, -64%);
  background: radial-gradient(circle, rgb(255 255 255 / 0.18), transparent 62%);
  pointer-events: none;
}

.hero-mark {
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 auto 1rem;
  padding: 0.8rem;
  border-radius: 1.7rem;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.06)),
    linear-gradient(180deg, rgb(13 19 32 / 0.9), rgb(8 12 22 / 0.94));
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 12px 35px rgb(5 10 22 / 0.4);
}

.hero-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-eyebrow {
  margin: 0;
  color: rgb(232 238 255 / 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(2.35rem, 7vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 780;
}

.hero-subtitle {
  margin: 0.7rem auto 0;
  max-width: 18rem;
  color: var(--text-secondary);
  font-size: 1rem;
  text-wrap: balance;
}

.services {
  display: block;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.service-card {
  --accent: 123 114 255;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.8rem;
  padding: 1.12rem 1.22rem 1.12rem 1.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03)),
    linear-gradient(155deg, rgb(17 22 36 / 0.88), rgb(11 15 25 / 0.92));
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    var(--shadow-card);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -32% auto;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(var(--accent) / 0.28), transparent 70%);
  filter: blur(12px);
  z-index: -1;
  transition: transform 180ms ease, opacity 180ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.14),
    rgb(var(--accent) / 0.22),
    rgb(255 255 255 / 0.04)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.78;
  pointer-events: none;
}

.service-copy {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.service-name {
  display: block;
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.service-hint {
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.service-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.03)),
    rgb(12 17 28 / 0.76);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(249 251 255 / 0.94);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgb(var(--accent) / 0.34);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 22px 58px rgb(4 8 18 / 0.48),
    0 0 0 1px rgb(var(--accent) / 0.08);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  transform: scale(1.08);
}

.service-card:hover .service-arrow,
.service-card:focus-visible .service-arrow {
  transform: translateX(2px);
  border-color: rgb(var(--accent) / 0.38);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.04)),
    rgb(var(--accent) / 0.14);
}

.service-card:focus-visible,
.social-link:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 22px 58px rgb(4 8 18 / 0.48),
    0 0 0 1px rgb(255 255 255 / 0.08),
    0 0 0 4px rgb(255 255 255 / 0.12);
}

.service-card:active {
  transform: translateY(0);
}

.service-card:active .service-arrow {
  transform: translateX(0);
}

.footer {
  padding: 0.2rem 0 0;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--surface-edge);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--surface-edge-strong);
}

.social-label {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.social-handle {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 40rem) {
  .page-shell {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .portal {
    gap: 1.1rem;
  }

  .hero {
    padding: 1.7rem 1.6rem 1.55rem;
  }

  .service-card {
    min-height: 6rem;
    padding-inline: 1.28rem 1.24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    transform: none;
  }
}
