:root {
  --bg: #090b10;
  --surface: #10131a;
  --text: #f1f3f8;
  --text-muted: #a7afbf;
  --text-soft: #b4bbc9;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #9db8ff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 11, 16, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ea0ff, #c084fc);
}

.nav-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: #fff;
}

/* Hero */

.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 620px;
  background:
    radial-gradient(closest-side, rgba(88, 130, 255, 0.32), transparent 70%),
    radial-gradient(closest-side at 75% 40%, rgba(192, 132, 252, 0.22), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 7.4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: #c58bff;
  background: linear-gradient(100deg, #7fa9ff, #c58bff 60%, #ff9ecb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 50ch;
  margin: 28px 0 36px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.cta {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.cta:hover {
  background: #dfe6f5;
}

.hero-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.hero-icons a {
  display: block;
  border-radius: 15px;
  transition: transform 0.18s ease;
}

.hero-icons a:hover {
  transform: translateY(-4px);
}

.hero-icons img {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hero-icons a {
    transition: none;
  }
}

/* Sections */

.section {
  padding: 72px 0;
  scroll-margin-top: 64px;
}

.section-ruled {
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-intro {
  margin-top: 8px;
  color: var(--text-muted);
}

.prose p {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--text-muted);
}

/* App cards */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.app-card {
  --c: #6ea0ff;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-color: color-mix(in srgb, var(--c) 30%, transparent);
  background: var(--surface);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #10131a), #10131a 70%);
  scroll-margin-top: 84px;
}

.app-icon {
  display: block;
  flex: none;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 35%, transparent);
}

.app-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.app-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.app-tagline {
  margin-top: 2px;
  color: var(--accent);
  color: color-mix(in srgb, var(--c) 60%, #fff);
  font-size: 0.875rem;
  font-weight: 600;
}

.app-desc {
  flex: 1;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.9688rem;
}

.app-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.app-links a {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.9063rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.app-links a:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.app-links a:first-child {
  border-color: #fff;
  background: #fff;
  color: var(--bg);
}

.app-links a:first-child:hover {
  border-color: #dfe6f5;
  background: #dfe6f5;
}

.app-card-lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 36px;
}

.app-card-lead .app-icon {
  width: 120px;
  height: 120px;
  margin: 0;
  border-radius: 28px;
}

.app-card-lead h3 {
  font-size: 1.9rem;
}

.app-card-lead .app-desc {
  max-width: 52ch;
  font-size: 1.0625rem;
}

.app-card-lead .app-links {
  max-width: 320px;
}

/* Contact */

.contact-link {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: #c3d3ff;
}

/* Footer */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: #7d8697;
  font-size: 0.875rem;
}

.fine-print {
  margin-top: 6px;
  font-size: 0.8125rem;
}

/* Not-found page */

.not-found {
  padding: 120px 0;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.not-found p {
  margin: 16px 0 28px;
  color: var(--text-muted);
}

/* Smaller screens */

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card-lead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 26px;
  }

  .app-card-lead .app-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 18px;
  }

  .app-card-lead h3 {
    font-size: 1.35rem;
  }

  .app-card-lead .app-desc {
    font-size: 0.9688rem;
  }

  .app-card-lead .app-links {
    max-width: none;
    width: 100%;
  }

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

  .hero-icons {
    gap: 10px;
    margin-top: 48px;
  }

  .hero-icons img {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .section {
    padding: 56px 0;
  }

  .nav-list {
    gap: 16px;
  }
}

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