:root {
  --ink: #16181f;
  --ink-soft: #5a6170;
  --paper: #eef0f4;
  --paper-deep: #e2e5ec;
  --accent: #3d6ef5;
  --accent-deep: #2b54d4;
  --accent-mist: rgba(61, 110, 245, 0.14);
  --line: rgba(22, 24, 31, 0.1);
  --max: 1080px;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 85% -10%, rgba(61, 110, 245, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 20%, rgba(61, 110, 245, 0.07), transparent 50%),
    linear-gradient(180deg, #f5f6f9 0%, var(--paper) 35%, #e6e9f0 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

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

.nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

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

.nav-download {
  color: var(--ink) !important;
  font-weight: 600 !important;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, white 55%, transparent);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-download:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: white;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
  overflow: clip;
}

.hero-atmosphere {
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 90%;
  background:
    radial-gradient(circle at 50% 45%, rgba(90, 140, 255, 0.32), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(40, 70, 160, 0.1), transparent 50%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.brand-mark {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease) 0.08s both;
}

.tagline {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease) 0.14s both;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: rise 0.9s var(--ease) 0.2s both;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.download-btn:hover {
  background: var(--accent-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

.platform-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise 1s var(--ease) 0.12s both;
}

.hero-icon {
  width: min(100%, 420px);
  height: auto;
  border-radius: 22%;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 28px 60px rgba(40, 70, 160, 0.22));
}

/* Sections */

section {
  padding: 96px 0;
}

.section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-intro {
  margin: 0 0 48px;
  max-width: 52ch;
  font-size: 18px;
  color: var(--ink-soft);
}

/* Features — list, not cards */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 58ch;
}

/* How it works */

.how {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, white 55%, transparent) 20%, color-mix(in srgb, white 55%, transparent) 80%, transparent);
}

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

.steps li {
  min-width: 0;
}

.step-num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 28ch;
}

/* Closing */

.closing {
  padding-top: 48px;
  padding-bottom: 112px;
}

.closing-inner {
  text-align: center;
  padding: 64px 24px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, var(--accent-mist), transparent 60%),
    linear-gradient(180deg, #f6f7fb, var(--paper-deep));
  border: 1px solid var(--line);
}

.closing h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.closing p {
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.closing .download-btn {
  margin-inline: auto;
}

/* Legal / Support */

.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.page-hero .meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.prose {
  padding: 48px 0 88px;
  max-width: 680px;
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

.prose h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 650;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.contact-box {
  margin-top: 48px;
  padding: 28px;
  border-radius: 16px;
  background: color-mix(in srgb, white 70%, transparent);
  border: 1px solid var(--line);
  max-width: 720px;
}

.contact-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 400;
}

.contact-box p {
  margin: 0;
  color: var(--ink-soft);
}

/* Footer */

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

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

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Mobile nav */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 64px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-icon {
    width: min(72vw, 280px);
  }

  .hero-atmosphere {
    inset: -10% 0 40% 0;
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 640px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: color-mix(in srgb, var(--paper) 96%, white);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-download {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  section {
    padding: 72px 0;
  }

  .closing {
    padding-bottom: 80px;
  }

  .closing-inner {
    padding: 48px 20px;
  }
}
