:root {
  color-scheme: dark;
  --panel: rgba(15, 21, 34, 0.72);
  --text: #edf3ff;
  --muted: #91a0bf;
  --accent: #69e7ff;
  --accent-2: #7f6cff;
  --line: rgba(156, 193, 255, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  background:
    radial-gradient(circle at 12% 16%, rgba(59, 92, 210, 0.35) 0%, transparent 38%),
    radial-gradient(circle at 88% 80%, rgba(59, 215, 255, 0.2) 0%, transparent 30%),
    linear-gradient(130deg, #04070f 0%, #070c18 48%, #03050c 100%);
  color: var(--text);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__name {
  font-weight: 600;
  font-size: 1.05rem;
}

.brand__author {
  font-size: 0.9375rem;
  color: var(--muted);
}

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.contact-pill {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.contact-pill:hover {
  color: var(--accent);
}

.contact-pill__short {
  display: none;
}

.block-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero__kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 700;
  max-width: 24ch;
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.125rem;
  max-width: 50ch;
}

.focus {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.focus__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.focus__card {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--panel);
  --glow-color: rgba(105, 231, 255, 0.22);
  --glow-border: rgba(105, 231, 255, 0.45);
  --glow-x: 50%;
  --glow-y: 50%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.focus__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    220px circle at var(--glow-x) var(--glow-y),
    var(--glow-color),
    transparent 70%
  );
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.focus__card.is-active {
  transform: translateY(-2px);
  border-color: var(--glow-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.focus__card.is-active::before {
  opacity: 1;
}

.focus__card h2,
.focus__card p {
  position: relative;
  z-index: 1;
}

.focus__card--interaction {
  border-color: rgba(105, 231, 255, 0.22);
  --glow-color: rgba(105, 231, 255, 0.24);
  --glow-border: rgba(105, 231, 255, 0.5);
}

.focus__card--hardware {
  border-color: rgba(127, 108, 255, 0.22);
  --glow-color: rgba(127, 108, 255, 0.24);
  --glow-border: rgba(127, 108, 255, 0.5);
}

.focus__card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.focus__card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 0.8rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: rgba(15, 21, 34, 0.45);
  --glow-color: rgba(105, 231, 255, 0.16);
  --glow-border: rgba(156, 193, 255, 0.38);
  --glow-x: 50%;
  --glow-y: 50%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    180px circle at var(--glow-x) var(--glow-y),
    var(--glow-color),
    transparent 72%
  );
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card.is-active {
  transform: translateY(-2px);
  border-color: var(--glow-border);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

.service-card.is-active::before {
  opacity: 1;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.stack__scroll {
  overflow: visible;
}

.stack__tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stack__tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--panel);
}


@media (prefers-reduced-motion: reduce) {
  .focus__card,
  .service-card {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .focus__card.is-active,
  .service-card.is-active {
    transform: none;
  }
}

@media (max-width: 640px) {
  body {
    align-items: flex-start;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    font-size: 1rem;
  }

  .page {
    gap: 1.35rem;
    max-width: none;
  }

  .header {
    flex-direction: row;
    align-items: center;
    padding-bottom: 0.85rem;
    gap: 0.65rem;
  }

  .brand__mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.72rem;
  }

  .brand__name {
    font-size: 0.9rem;
  }

  .brand__author {
    font-size: 0.78rem;
  }

  .header__contact {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  .contact-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 21, 34, 0.55);
    white-space: nowrap;
  }

  .contact-pill__long {
    display: none;
  }

  .contact-pill__short {
    display: inline;
  }

  .layout {
    gap: 1.5rem;
  }

  .hero__kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
  }

  .hero h1 {
    max-width: none;
    font-size: 1.65rem;
    line-height: 1.18;
    margin-bottom: 0.65rem;
  }

  .hero__lead {
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: none;
  }

  .focus {
    gap: 0.55rem;
  }

  .focus__track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -1rem;
    padding: 0.15rem 1rem 0.35rem;
  }

  .focus__track::-webkit-scrollbar {
    display: none;
  }

  .focus__card {
    flex: 0 0 min(88vw, 320px);
    scroll-snap-align: start;
    padding: 1rem;
  }

  .focus__card h2 {
    font-size: 0.9375rem;
  }

  .focus__card p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .services {
    gap: 0.55rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .service-card {
    padding: 0.75rem 0.8rem;
  }

  .service-card h3 {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
  }

  .service-card p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .footer {
    gap: 0.5rem;
    padding-top: 0.85rem;
  }

  .stack__scroll {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem 0.25rem;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  }

  .stack__scroll::-webkit-scrollbar {
    display: none;
  }

  .stack__tags {
    flex-wrap: nowrap;
    width: max-content;
    padding-right: 1rem;
  }

  .stack__tags li {
    font-size: 0.75rem;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.45rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact-pill {
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
  }
}
