:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: rgba(17, 24, 39, .72);
  --surface-hover: rgba(25, 35, 55, .88);
  --border: rgba(148, 163, 184, .13);
  --border-hover: rgba(148, 163, 184, .28);
  --text: #f3f6fc;
  --muted: #9ba8bd;
  --quiet: #68768e;
  --shadow: 0 22px 55px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(79, 70, 229, .16), transparent 38%),
    linear-gradient(160deg, #070b14 0%, #0a101c 50%, #080c15 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.ambient-one { top: 12%; left: -14rem; background: #4f46e5; }
.ambient-two { right: -15rem; bottom: 6%; background: #0891b2; }

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 48px;
}

.hero { margin-bottom: 78px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #b9c3d4;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 5px rgba(110, 231, 183, .08), 0 0 18px rgba(110, 231, 183, .45);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 690;
  letter-spacing: -.065em;
  line-height: .98;
  background: linear-gradient(105deg, #ffffff 10%, #c7d2fe 56%, #a5f3fc 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  letter-spacing: .01em;
}

.service-section { margin-top: 58px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: .01em;
}

.section-heading > span {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

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

.service-card {
  --accent: #a78bfa;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 16px;
  min-height: 142px;
  padding: 24px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 44%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .025) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -72px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(58px);
  opacity: 0;
  transition: opacity .24s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
  outline: none;
}

.service-card:hover::after,
.service-card:focus-visible::after { opacity: .12; }

.service-card:focus-visible { box-shadow: 0 0 0 3px rgba(129, 140, 248, .34), var(--shadow); }

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon svg circle { fill: currentColor; stroke: none; }
.accent-violet .icon svg:first-child path:first-child { fill: currentColor; stroke: none; }

.card-copy { min-width: 0; }

.card-copy strong,
.card-copy small,
.card-copy em { display: block; }

.card-copy strong {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.card-copy small {
  overflow: hidden;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy em {
  overflow: hidden;
  color: var(--quiet);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  position: relative;
  z-index: 1;
  align-self: start;
  color: var(--quiet);
  font-size: 17px;
  transition: color .2s ease, transform .2s ease;
}

.service-card:hover .arrow,
.service-card:focus-visible .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.accent-violet { --accent: #a78bfa; }
.accent-blue { --accent: #60a5fa; }
.accent-cyan { --accent: #22d3ee; }
.accent-amber { --accent: #fbbf24; }
.accent-green { --accent: #6ee7b7; }
.accent-rose { --accent: #fb7185; }
.accent-indigo { --accent: #818cf8; }
.accent-teal { --accent: #2dd4bf; }
.accent-lime { --accent: #a3e635; }

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 82px;
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .shell { width: min(100% - 36px, 760px); padding-top: 72px; }
  .hero { margin-bottom: 64px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 28px, 480px); padding: 52px 0 34px; }
  .hero { margin-bottom: 52px; }
  .hero p { margin-top: 20px; }
  .service-section { margin-top: 44px; }
  .card-grid { grid-template-columns: 1fr; gap: 11px; }
  .service-card { min-height: 126px; padding: 20px; border-radius: 18px; }
  footer { margin-top: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f6fa;
    --surface: rgba(255, 255, 255, .72);
    --surface-hover: rgba(255, 255, 255, .94);
    --border: rgba(44, 57, 78, .10);
    --border-hover: rgba(44, 57, 78, .20);
    --text: #111827;
    --muted: #5f6b7c;
    --quiet: #8994a5;
    --shadow: 0 22px 55px rgba(45, 55, 72, .12);
  }

  html { background: var(--bg); }
  body { background: radial-gradient(circle at 50% -15%, rgba(99, 102, 241, .12), transparent 36%), #f4f6fa; }
  h1 { background: linear-gradient(105deg, #111827 10%, #4338ca 58%, #0e7490 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .eyebrow { color: #526174; }
  .service-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .75) inset; }
}
