:root {
  --ink: #f2f2f5;
  --body: #c7c7d1;
  --muted: #9898a5;
  --line: #262630;
  --soft: #121218;
  --bg: #0c0c10;
  --accent: #a294ff;
  --accent-solid: #6a58ea;
  --accent-solid-hover: #7f6eff;
  --wrap: 960px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

::selection {
  background: rgba(122, 104, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent-solid);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 12, 16, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #5540e0, #8b78ff, #b3a6ff);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(124, 107, 245, 0.35)) brightness(1.12) saturate(1.05);
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
}

/* Home */

.hero {
  padding: 108px 0 104px;
  background:
    radial-gradient(58% 70% at 82% 42%, rgba(122, 104, 255, 0.16), transparent 70%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
}

.actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent-solid);
  border-radius: 3px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-solid-hover);
  color: #fff;
}

.link-arrow {
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

.link-arrow span {
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.15s ease;
}

.link-arrow:hover span {
  transform: translateX(3px);
}

.hero-mark {
  justify-self: end;
}

.hero-mark img {
  width: 100%;
  max-width: 330px;
  filter: drop-shadow(0 18px 44px rgba(110, 90, 255, 0.28));
}

/* Sections */

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 52ch;
  margin: 0 0 48px;
  color: var(--muted);
}

/* Products */

.product-list {
  border-top: 1px solid var(--line);
}

.product {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.product h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product > p {
  max-width: 58ch;
  margin: 0;
  color: var(--body);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  gap: 56px;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.about-copy p {
  max-width: 58ch;
  margin: 0 0 18px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-lead {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.55;
}

.email {
  color: var(--accent);
  font-weight: 500;
}

/* Footer */

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(124, 107, 245, 0.35)) brightness(1.12) saturate(1.05);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */

@media (max-width: 820px) {
  .wrap {
    padding: 0 22px;
  }

  .header-inner {
    height: 62px;
  }

  .nav {
    gap: 20px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-mark {
    order: -1;
    justify-self: start;
  }

  .hero-mark img {
    max-width: 120px;
    filter: drop-shadow(0 10px 24px rgba(110, 90, 255, 0.3));
  }

  .section {
    padding: 68px 0;
    scroll-margin-top: 78px;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .portrait {
    max-width: 240px;
  }

  .section-intro {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 13px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 13.5px;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
