@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/PixelifySans-latin.woff2') format('woff2');
}

:root {
  --bg: #f4ede0;
  --panel: #ffffff;
  --ink: #2a2722;
  --muted: #6f695f;
  --line: #ebe3d2;
  --line-soft: #f3ecdc;
  --accent: #3a72c8;
  --shadow: 0 18px 50px -20px rgba(50, 35, 10, 0.18), 0 2px 6px -2px rgba(50, 35, 10, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --display-font: 'Pixelify Sans', ui-monospace, 'SF Mono', Menlo, monospace;
  --body-font: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 86% 15%, rgba(255, 214, 154, 0.45), transparent 32%),
    radial-gradient(circle at 18% 18%, rgba(26, 103, 210, 0.45), transparent 36%),
    radial-gradient(circle at 70% 86%, rgba(255, 188, 126, 0.18), transparent 36%),
    linear-gradient(135deg, rgb(106, 168, 235) 0%, rgb(188, 220, 244) 48%, #fff0d1 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 74%, rgba(255, 255, 255, 0.62), transparent 28%),
    radial-gradient(circle at 92% 84%, rgba(255, 240, 209, 0.58), transparent 30%),
    radial-gradient(ellipse at center, rgba(5, 10, 20, 0) 50%, rgba(5, 10, 20, 0.12) 100%);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.site-header {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: block;
  width: clamp(176px, 18vw, 260px);
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(20, 30, 50, 0.18));
}

.site-logo img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 1px 2px rgba(20, 30, 50, 0.05),
    0 24px 56px -16px rgba(40, 50, 80, 0.30);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.site-nav a,
.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.site-nav a:hover,
.secondary-action:hover {
  background: rgba(255, 255, 255, 0.55);
}

.site-nav a:active,
.primary-action:active,
.secondary-action:active {
  transform: translateY(1px);
}

.site-nav a:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.scroll-cue:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.86), 0 0 0 6px rgba(23, 107, 235, 0.28);
}

.site-nav .nav-cta,
.primary-action {
  color: #ffffff;
  background: linear-gradient(180deg, #2d7ef5 0%, var(--accent) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -4px 0 rgba(17, 51, 128, 0.22),
    0 12px 24px -14px rgba(22, 76, 170, 0.68);
}

.site-nav .nav-cta:hover,
.primary-action:hover {
  background: linear-gradient(180deg, #3c8afa 0%, #2c67bd 100%);
}

.primary-action svg,
.secondary-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-action {
  color: #164a9d;
  background: rgba(255, 255, 255, 0.38);
}

.hero-section {
  position: relative;
  min-height: min(900px, 92svh);
  display: grid;
  align-items: center;
  padding: 124px 32px 112px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(220, 239, 255, 0.86) 0%, rgba(220, 239, 255, 0.52) 34%, rgba(220, 239, 255, 0) 66%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 14%, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 14%, #000 38%, #000 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin-left: max(0px, calc((100vw - 1200px) / 2));
}

.hero-copy h1 {
  margin: 0;
  color: #111b45;
  font-family: var(--display-font);
  font-size: clamp(58px, 8.2vw, 118px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  text-shadow: 0 2px 22px rgba(255, 255, 255, 0.88);
}

.hero-copy h1 span {
  display: block;
  color: #155dd4;
}

.hero-copy p {
  width: min(500px, 100%);
  margin: 26px 0 0;
  color: #25304c;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-actions .primary-action,
.hero-actions .secondary-action,
.cta-actions .primary-action,
.cta-actions .secondary-action {
  min-height: 56px;
  padding: 0 24px;
  font-size: 16px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 34px -18px rgba(20, 30, 50, 0.38);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.scroll-cue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features-section,
.workflow-section,
.cta-section {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.features-section {
  padding: 24px 0 72px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head h2,
.cta-copy h2 {
  margin: 0;
  color: #111b45;
  font-family: var(--display-font);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.section-head p,
.cta-copy p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  min-height: 280px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 1px 2px rgba(20, 30, 50, 0.05),
    0 20px 52px -20px rgba(40, 50, 80, 0.30);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.feature-card h3,
.workflow-steps h3 {
  margin: 0;
  color: #111b45;
  font-family: var(--display-font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.feature-card p,
.workflow-steps p {
  margin: 0;
  color: #44506b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.feature-visual {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}

.feature-visual img {
  width: min(100%, 178px);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  mix-blend-mode: multiply;
}

.workflow-section {
  padding: 8px 0 70px;
}

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 1px 2px rgba(20, 30, 50, 0.05),
    0 24px 56px -18px rgba(40, 50, 80, 0.28);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.workflow-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  border-radius: 14px;
  background: linear-gradient(180deg, #2d7ef5 0%, var(--accent) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -4px 0 rgba(17, 51, 128, 0.22),
    0 12px 24px -14px rgba(22, 76, 170, 0.68);
}

.workflow-steps h3 {
  margin-bottom: 6px;
}

.cta-section {
  margin-bottom: 48px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 1px 2px rgba(20, 30, 50, 0.05),
    0 24px 56px -18px rgba(40, 50, 80, 0.28);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.cta-copy p {
  max-width: 560px;
  margin-top: 12px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .site-header {
    left: 20px;
    right: 20px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 118px 20px 64px;
  }

  .hero-media {
    opacity: 0.62;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 62%, transparent 100%);
  }

  .hero-media img {
    object-position: 68% center;
  }

  .features-section,
  .workflow-section,
  .cta-section {
    width: min(100% - 32px, 720px);
  }

  .section-head,
  .cta-section {
    display: grid;
    align-items: start;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-steps li {
    padding: 12px;
  }

  .cta-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .site-logo {
    width: 154px;
  }

  .site-nav {
    padding: 6px;
    border-radius: var(--radius-lg);
  }

  .site-nav .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-section {
    padding: 104px 16px 52px;
  }

  .hero-section::before {
    background: linear-gradient(180deg, rgba(220, 239, 255, 0.94) 0%, rgba(220, 239, 255, 0.84) 48%, rgba(220, 239, 255, 0.18) 100%);
  }

  .hero-copy h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-copy p {
    font-size: 19px;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action,
  .cta-actions .primary-action,
  .cta-actions .secondary-action {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .features-section {
    padding-top: 8px;
  }

  .section-head {
    gap: 10px;
  }

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

  .feature-card {
    min-height: 240px;
  }

  .workflow-steps {
    padding: 10px;
    border-radius: var(--radius-lg);
  }

  .workflow-steps li {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 17px;
  }

  .cta-section {
    padding: 20px;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
  }
}

/* -------- roadmap page -------- */

.page-hero-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 124px 0 56px;
  text-align: center;
}

.page-hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--display-font);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  color: #111b45;
}

.page-hero-copy p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.roadmap-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 64px;
}

.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 1px 2px rgba(20, 30, 50, 0.05),
    0 24px 56px -18px rgba(40, 50, 80, 0.28);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.roadmap-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.roadmap-list li:hover {
  background: rgba(255, 255, 255, 0.44);
}

.roadmap-list h3 {
  margin: 0 0 6px;
}

.roadmap-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.roadmap-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 3px;
}

.roadmap-status--done {
  background: #e6f4ea;
  color: #1a6632;
  border: 1px solid #b7dfbe;
}

.roadmap-status--active {
  background: #e8f0fe;
  color: #1a4fcf;
  border: 1px solid #b3cafd;
}

.roadmap-status--planned {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

/* -------- docs page -------- */

.docs-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 64px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.docs-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 14px;
  row-gap: 10px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 1px 2px rgba(20, 30, 50, 0.05),
    0 12px 32px -12px rgba(40, 50, 80, 0.22);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.docs-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 2px 4px rgba(20, 30, 50, 0.06),
    0 20px 48px -14px rgba(40, 50, 80, 0.3);
}

.docs-card-coming {
  opacity: 0.6;
  pointer-events: none;
}

.docs-card-icon {
  grid-row: 1;
  grid-column: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(23, 107, 235, 0.1);
  color: #1862d4;
}

.docs-card-icon svg {
  width: 18px;
  height: 18px;
}

.docs-card h3 {
  grid-row: 1;
  grid-column: 2;
  align-self: center;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111b45;
}

.docs-card p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.docs-card-link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #1862d4;
  margin-top: 4px;
}

.docs-card-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 4px;
  width: fit-content;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* -------- roadmap loading spinner -------- */
.roadmap-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: var(--muted);
  font-size: 14px;
}

.roadmap-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(23, 107, 235, 0.18);
  border-top-color: #1862d4;
  border-radius: 50%;
  animation: roadmap-spin 0.7s linear infinite;
}

@keyframes roadmap-spin {
  to { transform: rotate(360deg); }
}
