:root {
  color-scheme: dark;

  --bg: #07080b;
  --fg: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.70);

  --card: rgba(255, 255, 255, 0.04);
  --card2: rgba(255, 255, 255, 0.02);
  --stroke: rgba(255, 255, 255, 0.10);

  --glow1: rgba(125, 211, 252, 0.22);
  --glow2: rgba(167, 139, 250, 0.18);
  --glow3: rgba(52, 211, 153, 0.12);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow2: 0 12px 30px rgba(0, 0, 0, 0.40);

  --r12: 12px;
  --r16: 16px;
  --r20: 20px;
  --r24: 24px;

  --max: 1080px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

a { color: inherit; }

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bgGlow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(900px 600px at 16% 18%, var(--glow1), transparent 60%),
    radial-gradient(900px 600px at 88% 22%, var(--glow2), transparent 62%),
    radial-gradient(900px 700px at 55% 92%, var(--glow3), transparent 65%),
    radial-gradient(700px 500px at 40% 55%, rgba(255,255,255,0.06), transparent 60%);
  filter: saturate(1.1);
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-10px, -6px, 0) scale(1); }
  to { transform: translate3d(10px, 6px, 0) scale(1.02); }
}

.bgGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.05;
  mask-image: radial-gradient(700px 450px at 40% 20%, #000 40%, transparent 80%);
}

.bgGrain {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 52px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,8,11,0.80), rgba(7,8,11,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brandText {
  font-size: 15px;
  opacity: 0.95;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow2);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.navLink {
  text-decoration: none;
  color: rgba(234,240,255,0.78);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.navLink:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.navLink.active {
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(167, 139, 250, 0.14));
}

/* Hero */
.hero {
  margin-top: 18px;
  position: relative;
  border-radius: var(--r24);
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(900px 300px at 10% 0%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(135deg, rgba(125, 211, 252, 0.10), rgba(167, 139, 250, 0.08), rgba(52, 211, 153, 0.05)),
    rgba(255,255,255,0.02);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.heroInner {
  padding: 26px;
  padding-right: 170px;
  position: relative;
  z-index: 2;
}

.heroMark {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.heroLogo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow2);
}

.heroRing {
  position: absolute;
  inset: -40px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(125,211,252,0.45), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(167,139,250,0.35), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(52,211,153,0.25), transparent 60%);
  filter: blur(18px);
  opacity: 0.7;
  animation: ring 10s linear infinite;
}

@keyframes ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-weight: 750;
  font-size: 13px;
  letter-spacing: 0.2px;
  width: fit-content;
}

.badgeDot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(125,211,252,1), rgba(167,139,250,1));
  box-shadow: 0 0 0 5px rgba(125, 211, 252, 0.10);
}

h1 {
  margin: 12px 0 10px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  max-width: 64ch;
}

.actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
}

.button.primary {
  border-color: rgba(125, 211, 252, 0.50);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.22), rgba(167, 139, 250, 0.16));
}

.button.ghost {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

.meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.metaItem {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.metaLabel {
  font-size: 12px;
  color: rgba(234,240,255,0.58);
}

.metaValue {
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  color: rgba(234,240,255,0.90);
}

.metaValue:hover { text-decoration: underline; }

/* Cards */
.card {
  margin-top: 16px;
  border-radius: var(--r20);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
  padding: 16px;
}

.cardHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.cardSub {
  margin: 0;
  color: rgba(234,240,255,0.60);
  font-size: 13px;
}

/* Grid + Tiles */
.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: var(--r20);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  text-decoration: none;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(320px 140px at 15% 15%, rgba(125,211,252,0.20), transparent 60%),
    radial-gradient(280px 120px at 85% 25%, rgba(167,139,250,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(125,211,252,0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
}

.tile:hover::before { opacity: 1; }

.tileTitle {
  position: relative;
  z-index: 1;
  font-weight: 850;
  margin-bottom: 6px;
}

.tileSub {
  position: relative;
  z-index: 1;
  color: rgba(234,240,255,0.70);
  font-size: 13px;
  line-height: 1.5;
  max-width: 34ch;
}

.tileArrow {
  position: absolute;
  right: 12px;
  top: 12px;
  font-weight: 900;
  opacity: 0.55;
  transition: transform 160ms ease, opacity 160ms ease;
}

.tile:hover .tileArrow {
  transform: translateX(2px) translateY(-2px);
  opacity: 0.9;
}

/* Business info */
.info {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.infoRow {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: var(--r16);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.label {
  color: rgba(234,240,255,0.60);
  font-size: 13px;
}

.value a {
  color: rgba(125, 211, 252, 0.95);
  text-decoration: none;
  font-weight: 750;
}

.value a:hover { text-decoration: underline; }

.footer {
  margin-top: 18px;
  padding: 14px 0;
  color: rgba(234,240,255,0.55);
  font-size: 13px;
}

/* Services page: premium hover ONLY for non-link tiles (role="article") */
.tile[role="article"] {
  padding: 22px;
  cursor: default;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    background 0.45s ease;
}

.tile[role="article"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.tile[role="article"]:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 200, 255, 0.40);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(120, 200, 255, 0.12) inset;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.tile[role="article"]:hover::after { opacity: 1; }

.tile[role="article"] .tileTitle {
  transition: transform 0.35s ease;
}

.tile[role="article"]:hover .tileTitle {
  transform: translateX(2px);
}

.tile[role="article"] .tileSub {
  opacity: 0.85;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 980px) {
  h1 { font-size: 36px; }
  .heroInner { padding-right: 26px; }
  .heroMark { display: none; }
  .grid { grid-template-columns: 1fr; }
  .infoRow { grid-template-columns: 1fr; }
  .topbar { position: relative; flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .bgGlow, .heroRing { animation: none; }
  .tile, .button, .navLink { transition: none; }
}
