@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dm-sans-v15-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Quicksand';
  src: url('assets/fonts/quicksand-v36-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

:root {
  --blue: #3744FB;
  --violet: #7369FC;
  --cream: #FBE9BB;
  --peach: #FFCD90;
  --sky: #CAEAF9;
  --ink: #3a3a3a;
  --soft: #5a5a5a;
  --line: rgba(55, 68, 251, 0.18);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Quicksand', sans-serif;
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
html.fonts-wait header,
html.fonts-wait main,
html.fonts-wait footer,
html.fonts-wait .logo-fly {
  opacity: 0;
}
html.fonts-loaded header,
html.fonts-loaded main,
html.fonts-loaded footer,
html.fonts-loaded .logo-fly {
  opacity: 1;
}
::selection { background: var(--peach); color: var(--ink); }
img { max-width: 100%; }

.bg, .noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg {
  background: radial-gradient(circle at bottom center, #FBE9BB 0%, #FFCD90 30%, #CAEAF9 75%);
}
.noise {
  background-image: url('assets/noise.svg');
  background-repeat: repeat;
  background-size: 100px 100px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
header a {
  display: inline-block;
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
header a:active { transform: scale(0.97); }
.logo img { height: 26px; width: auto; display: block; }
.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-hero-anchor {
  visibility: hidden;
  width: min(340px, 80vw);
  height: calc(min(340px, 80vw) * 58 / 340);
  margin-inline: auto;
  margin-bottom: 24px;
}
html.js .logo-bar {
  visibility: hidden;
  pointer-events: none;
}
.logo-fly {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  display: inline-block;
  margin: 0;
  transform-origin: 0 0;
  visibility: hidden;
}
.logo-fly.is-on { visibility: visible; }
.logo-fly img {
  width: min(340px, 80vw);
  height: auto;
  display: block;
}
.meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--blue);
  opacity: 0.55;
  min-width: 8ch;
}
.meta:last-child { text-align: right; }

header, footer, main { position: relative; z-index: 1; }
header, footer {
  position: fixed;
  left: 0;
  right: 0;
  padding: 1.5rem 0;
  background: transparent;
}
header { top: 0; }
footer { bottom: 0; }
main {
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 5.5rem 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 48px,
    #000 140px,
    #000 calc(100% - 140px),
    transparent calc(100% - 48px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 48px,
    #000 140px,
    #000 calc(100% - 140px),
    transparent calc(100% - 48px),
    transparent 100%
  );
}

.hero {
  min-height: calc(100vh - 11rem);
  display: flex;
  align-items: center;
  padding: clamp(32px, 4vw, 64px) 0 clamp(48px, 6vw, 96px);
}
.hero > .wrap {
  width: 100%;
  text-align: center;
}
.hero-kicker,
.hero h1,
.hero-sub,
.hero-by {
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.hero h1 { transition-delay: 50ms; }
.hero-sub { transition-delay: 100ms; }
.hero-by { transition-delay: 150ms; }
@starting-style {
  .hero-kicker,
  .hero h1,
  .hero-sub,
  .hero-by {
    opacity: 0;
    transform: translateY(8px);
  }
}
.hero-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--blue);
  opacity: 0.7;
  margin-bottom: 8px;
}
.hero h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 5.6vw, 64px);
  line-height: 1.12;
  color: #333;
  width: 100%;
  max-width: 18ch;
  margin-inline: auto;
  text-wrap: balance;
  opacity: 1;
}
.hero-sub {
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  color: var(--soft);
  margin-top: 24px;
  margin-inline: auto;
  max-width: min(24ch, 100%);
  text-wrap: pretty;
  opacity: 1;
}
.hero-by {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--blue);
  opacity: 0.7;
  margin-top: 8px;
}

section { padding: 88px 0; }
.sec-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.55;
  margin-bottom: 10px;
}
.sec-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 400;
  color: #333;
  margin-bottom: 32px;
}

.principles { list-style: none; counter-reset: p; }
.principles li {
  counter-increment: p;
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.4;
  color: #444;
}
.principles li::before {
  content: '0' counter(p);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--blue);
  opacity: 0.45;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card, .offer {
  background: rgba(242, 242, 242, 0.22);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.card {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  transition: transform 180ms ease, background 180ms ease;
}
.card .tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
  opacity: 0.6;
}
.card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #333;
}
.card p {
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  flex: 1;
}
.card-ctas { display: flex; align-items: center; gap: 8px; }
.card-ctas .ghost { flex: 1; margin-top: 0; width: auto; }
.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 100%;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--blue);
  border: 1px solid rgba(55, 68, 251, 0.35);
  border-radius: 6px;
  background: rgba(55, 68, 251, 0.06);
  margin-top: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background 160ms ease;
}
.ghost:active { transform: scale(0.97); }
.ghost.is-off { opacity: 0.45; pointer-events: none; cursor: default; }
.store-badge {
  display: flex;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.store-badge:active { transform: scale(0.97); }
.store-badge img { height: 44px; width: auto; display: block; pointer-events: none; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
}
.about > img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
}
.about h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 14px;
}
.about p {
  font-family: 'Quicksand', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}
.about h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin-top: 12px;
}
.role {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  color: var(--blue) !important;
  opacity: 0.7;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-fill { background: var(--blue); color: #fff; }
.btn-line {
  border: 1px solid rgba(55, 68, 251, 0.35);
  color: var(--blue);
  background: rgba(55, 68, 251, 0.06);
}

.offer { padding: 40px 36px; }
.offer h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 30px;
  font-weight: 400;
  margin: 8px 0 22px;
}
.offer ol {
  padding-left: 22px;
  font-family: 'Quicksand', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

footer, footer .bar {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(55, 68, 251, 0.65);
}
footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.btn:focus-visible,
.ghost:focus-visible,
.store-badge:focus-visible,
header a:focus-visible,
.logo-fly:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .ghost:hover { background: rgba(55, 68, 251, 0.14); }
  .btn-fill:hover { background: #2d39e8; }
  .btn-line:hover { background: rgba(55, 68, 251, 0.14); }
  .card:has(a):hover {
    transform: translateY(-2px);
    background: rgba(242, 242, 242, 0.35);
  }
  footer a:hover { color: var(--blue); }
}

@media (max-width: 800px) {
  .wrap { padding: 0 20px; }
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about > img {
    order: -1;
    width: 160px;
    height: 160px;
  }
  .meta { display: none; }
  header .bar { justify-content: center; }
  .hero h1 {
    max-width: none;
    text-wrap: wrap;
  }
  .logo-hero-anchor,
  .logo-fly img {
    width: min(260px, calc(100vw - 48px));
  }
  .logo-hero-anchor {
    height: calc(min(260px, calc(100vw - 48px)) * 58 / 340);
  }
  .offer { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero h1,
  .hero-sub,
  .hero-by {
    transition: opacity 200ms ease;
    transition-delay: 0ms;
    transform: none;
  }
  @starting-style {
    .hero-kicker,
    .hero h1,
    .hero-sub,
    .hero-by {
      transform: none;
    }
  }
  .btn,
  .ghost,
  .store-badge,
  header a,
  .card {
    transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
  }
  .btn:active,
  .ghost:active,
  .store-badge:active,
  header a:active,
  .card:has(a):hover {
    transform: none;
  }
}
