:root {
  --bg: #05050e;
  --bg-elev: #12121c;
  --ink: #f5f4f8;
  --muted: #a7a9b8;
  --accent: #d9b838;
  --accent-ink: #14110a;
  --accent-blue: #4a5ef0;
  --accent-violet: #7a5ad8;
  --line: rgba(245, 244, 248, 0.1);
  --font: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --focus: 0 0 0 3px rgba(217, 184, 56, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

::selection {
  background: rgba(217, 184, 56, 0.35);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(74, 94, 240, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 5%, rgba(122, 90, 216, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(217, 184, 56, 0.08), transparent 55%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ecd06a;
}

a:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 0.35rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.brand-text {
  line-height: 1.1;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 2.5rem 0 3.25rem;
}

.hero-brand {
  justify-self: center;
}

.hero-logo {
  width: min(280px, 70vw);
  height: auto;
  display: block;
  border-radius: 1.25rem;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(217, 184, 56, 0.12);
  animation: logo-in 0.9s var(--ease) both;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
  }
}

.hero-copy {
  max-width: 36rem;
  animation: copy-in 0.85s var(--ease) 0.08s both;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy {
    animation: none;
  }
}

.hero-title {
  margin: 0 0 1.15rem;
  font-family: var(--font);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lede {
  margin: 0 0 1.65rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.55rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: #ecd06a;
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.btn.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn.secondary:hover {
  border-color: rgba(217, 184, 56, 0.45);
  color: var(--ink);
}

.fine {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 0.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.grid article {
  padding: 0.25rem 0;
}

.grid h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font);
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.grid p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36ch;
}

.page {
  max-width: 42rem;
  padding: 2.5rem 0 3rem;
}

.page h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.page h2 {
  margin: 2.1rem 0 0.55rem;
  font-family: var(--font);
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 600;
}

.page p,
.page li {
  color: var(--muted);
}

.page ul,
.page ol {
  padding-left: 1.2rem;
}

code {
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 0.3em;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
}

footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1.25rem;
  }

  .hero-copy {
    max-width: none;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .grid p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-text {
    font-size: 1rem;
  }
}
