:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5c667a;
  --paper: #fffaf4;
  --cloud: #f4f7ff;
  --line: rgba(23, 32, 51, 0.14);
  --violet: #7657f5;
  --pink: #ff6f91;
  --gold: #ffc44d;
  --mint: #49c6a8;
  --blue: #2276d2;
  --shadow: 0 22px 60px rgba(31, 37, 74, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 196, 77, 0.26), transparent 30%),
    linear-gradient(180deg, #f7f3ff 0%, #fffaf4 46%, #eef9f6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  width: min(1120px, calc(100% - 28px));
  height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(41, 44, 78, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover {
  background: rgba(118, 87, 245, 0.1);
  color: var(--ink);
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 118px max(24px, calc((100vw - 1120px) / 2)) 90px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(255, 250, 244, 0.97) 0%, rgba(255, 250, 244, 0.88) 38%, rgba(255, 255, 255, 0.38) 70%),
    linear-gradient(135deg, rgba(118, 87, 245, 0.86), rgba(255, 111, 145, 0.42) 48%, rgba(73, 198, 168, 0.34));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 244, 0.96));
}

.hero-art {
  position: absolute;
  right: max(-90px, calc((100vw - 1280px) / 2));
  bottom: -60px;
  width: min(58vw, 760px);
  aspect-ratio: 1 / 1;
  max-height: 82vh;
  filter: drop-shadow(0 30px 44px rgba(48, 28, 88, 0.24));
  z-index: -1;
}

.hero-animation {
  animation: hero-float 6.4s ease-in-out infinite;
  transform-origin: 54% 70%;
  will-change: transform;
}

.hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.99) translate3d(0, 10px, 0);
  transition:
    opacity 430ms ease,
    transform 760ms cubic-bezier(0.18, 0.92, 0.2, 1),
    filter 760ms ease;
  filter: saturate(1.02);
  will-change: opacity, transform, filter;
}

.hero-frame.is-active {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
  filter: saturate(1.06);
}

.hero-animation[data-mood="ready"] .hero-frame.is-active {
  transform: scale(1.01) translate3d(0, -4px, 0) rotate(-0.4deg);
}

.hero-animation[data-mood="dip"] .hero-frame.is-active {
  transform: scale(0.985) translate3d(0, 14px, 0) rotate(0.6deg);
}

.hero-animation[data-mood="think"] .hero-frame.is-active {
  transform: scale(0.998) translate3d(-4px, 6px, 0) rotate(-0.8deg);
}

.hero-animation[data-mood="write"] .hero-frame.is-active {
  transform: scale(1.006) translate3d(4px, 2px, 0) rotate(0.8deg);
}

.hero-animation[data-mood="resolve"] .hero-frame.is-active {
  transform: scale(1.018) translate3d(0, -10px, 0) rotate(-0.5deg);
}

.hero-animation[data-mood="done"] .hero-frame.is-active {
  transform: scale(1.026) translate3d(0, -12px, 0) rotate(0.35deg);
  filter: saturate(1.12) brightness(1.02);
}

@keyframes hero-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-0.35deg);
  }
  28% {
    transform: translate3d(0, -10px, 0) rotate(0.25deg);
  }
  56% {
    transform: translate3d(0, -4px, 0) rotate(-0.15deg);
  }
  78% {
    transform: translate3d(0, -16px, 0) rotate(0.45deg);
  }
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(58px, 10vw, 118px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 28px;
  color: #343d52;
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.35;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(24, 29, 53, 0.12);
}

.button-icon {
  width: 32px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.button.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, #1f2547, #7657f5 58%, #ff6f91);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
}

.button:hover {
  transform: translateY(-2px);
}

.release-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.download-band {
  width: min(1120px, calc(100% - 36px));
  margin: -48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.download-band div {
  min-height: 110px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-band strong {
  font-size: clamp(18px, 2.4vw, 28px);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-copy p:not(.eyebrow),
.feature-card p,
.step p,
.security-copy p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(27, 33, 60, 0.08);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #172033;
  color: white;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--pink);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--mint);
}

.api-section {
  width: 100%;
  margin: 0;
  padding: 96px max(24px, calc((100vw - 1120px) / 2));
  background: #172033;
  color: white;
}

.api-section .eyebrow {
  color: var(--gold);
}

.api-section .section-copy p:not(.eyebrow),
.api-section .step p {
  color: rgba(255, 255, 255, 0.72);
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 36px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.step > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #172033;
  font-weight: 900;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(118, 87, 245, 0.12);
  color: inherit;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.94em;
}

.code-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0e1423;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.panel-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pink);
}

.panel-top span:nth-child(2) {
  background: var(--gold);
}

.panel-top span:nth-child(3) {
  background: var(--mint);
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #d9e7ff;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.72;
}

.security-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 42px;
  align-items: center;
}

.security-art {
  width: min(100%, 410px);
  justify-self: center;
  filter: drop-shadow(0 22px 34px rgba(48, 28, 88, 0.18));
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.checklist p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.checklist span {
  font-size: 12px;
  color: var(--mint);
  font-weight: 950;
}

.site-footer {
  min-height: 88px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.site-footer span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header {
    height: auto;
    align-items: flex-start;
    gap: 10px;
  }

  .nav a {
    padding: 0 9px;
    font-size: 13px;
  }

  .hero {
    min-height: 94vh;
    padding-top: 112px;
    padding-bottom: 210px;
  }

  .hero-art {
    right: -90px;
    bottom: -38px;
    width: min(94vw, 520px);
    opacity: 0.78;
  }

  .hero-actions .button {
    width: 100%;
  }

  .download-band,
  .feature-grid,
  .api-layout,
  .security-section {
    grid-template-columns: 1fr;
  }

  .section,
  .api-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .api-layout {
    gap: 18px;
  }
}

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

  .nav {
    gap: 0;
  }

  .nav a {
    min-height: 36px;
  }

  h1 {
    font-size: 58px;
  }

  .hero-lede {
    font-size: 19px;
  }

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

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

  .hero-frame {
    transition: none;
  }
}
