﻿:root {
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --accent-strong: #0ea5e9;
  --ink: #e8edf4;
  --ink-muted: #94a3b8;
  --surface: #121a24;
  --surface-2: #080c12;
  --border: rgba(255, 255, 255, 0.08);
  --hero-bg: #050810;
  --footer-bg: #040609;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 32px -8px rgba(0, 0, 0, 0.5);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--surface-2);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease;
}

.site-header--scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo:hover .logo__mark {
  opacity: 0.92;
}

.logo__mark {
  display: block;
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

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

.nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

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

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: rgba(14, 165, 233, 0.1);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 96px;
  background: var(--hero-bg);
  color: #f1f5f9;
  overflow: hidden;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.22) 0%,
    rgba(2, 132, 199, 0.08) 35%,
    transparent 65%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
}

.hero__lead {
  margin: 20px auto 0;
  max-width: 520px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
  font-weight: 400;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn-hero--primary {
  background: var(--accent);
  color: #042f4a;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-hero--primary:hover {
  background: #38bdf8;
  transform: translateY(-1px);
}

.btn-hero--ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-hero--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Pillars */
.pillars {
  max-width: 1160px;
  margin: -40px auto 0;
  padding: 0 24px 48px;
  position: relative;
  z-index: 2;
}

.pillars__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pillar {
  padding: 22px 20px;
  background: var(--surface);
  text-align: center;
}

.pillar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.pillar span {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* Main catalog */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.section__head {
  margin-bottom: 40px;
  max-width: 560px;
}

.section__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.section__desc {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: var(--shadow-md);
}

.product-card--muted {
  opacity: 0.95;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #141c28 0%, #0c1018 100%);
}

.product-card--muted:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.app-icon-wrap {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(160deg, #1a2838 0%, #152232 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-icon-wrap img {
  display: block;
  width: 88%;
  height: auto;
  border-radius: 15px;
}

.product-card__body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  min-width: 168px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #042f4a;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-play:hover {
  background: linear-gradient(180deg, #7dd3fc 0%, var(--accent) 100%);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

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

.btn-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-play[disabled],
.btn-play[aria-disabled="true"] {
  background: #1e293b;
  color: #64748b;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

@media (max-width: 860px) {
  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-icon-wrap {
    margin: 0 auto;
  }

  .btn-play {
    width: 100%;
    min-width: unset;
  }

  .pillars__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Content below .cursor-glow (z-index 6); .pillars keeps z-index: 2 */
.hero,
main {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--footer-bg);
  color: #94a3b8;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.site-footer .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #f1f5f9;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.site-footer .tagline {
  margin: 0;
  line-height: 1.55;
  max-width: 280px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.site-footer a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 110;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-dim);
  border-color: rgba(14, 165, 233, 0.35);
  color: var(--accent-strong);
}

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

/* Inner pages */
.page-sub .site-header {
  position: sticky;
}

.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.content-page__head {
  margin-bottom: 28px;
}

.content-page__head h1 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.content-page__lead {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.content-page__meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.prose {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.prose p {
  margin: 0 0 1em;
}

.prose h2 {
  margin: 1.75em 0 0.65em;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--accent-strong);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* 404 */
.page-error-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
}

.page-error-wrap .page-error {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

.error-page {
  text-align: center;
  max-width: 400px;
}

.error-page__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent-strong);
  line-height: 1;
}

.error-page__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.error-page__desc {
  margin: 10px 0 24px;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.error-page__btn {
  text-decoration: none;
}

/* Cursor-follow glow: original soft look; on top of UI (pointer-events: none = clicks pass through) */
.cursor-glow {
  --mx: 50vw;
  --my: 50vh;
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  pointer-events: none;
  z-index: 10000;
  background:
    radial-gradient(
      220px circle at var(--mx) var(--my),
      rgba(56, 189, 248, 0.18),
      transparent 48%
    ),
    radial-gradient(
      380px circle at var(--mx) var(--my),
      rgba(14, 165, 233, 0.08),
      transparent 52%
    );
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}
