:root {
  color-scheme: light;
  --ink: #121212;
  --paper: #f6f7f2;
  --surface: #fffffb;
  --muted: #52555a;
  --line: #d7d4c9;
  --red: #f04438;
  --blue: #1264ff;
  --green: #12835f;
  --yellow: #f6c343;
  --night: #101114;
  --night-2: #17191f;
  --nav-height: 60px;
  --content-max: 1160px;
  --section-y: 52px;
  --shadow: 0 16px 48px rgba(10, 12, 18, 0.16);
  --font-display: 'Aptos Display', 'Segoe UI Variable Display', 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Aptos', 'Segoe UI Variable Text', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.035) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(18, 100, 255, 0.16);
}

a {
  color: inherit;
}

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

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.content-wrap {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 12px;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.12);
  background: rgba(255, 255, 251, 0.9);
  color: var(--ink);
  backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.site-header::after {
  position: absolute;
  right: clamp(18px, 4vw, 32px);
  bottom: -1px;
  left: clamp(18px, 4vw, 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--green));
  content: '';
  opacity: 0.72;
}

.brand,
.nav-links,
.header-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.04);
  gap: 2px;
}

.lang-btn {
  min-height: 32px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.lang-btn[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.brand {
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(240, 68, 56, 0.24);
}

.nav-links {
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  touch-action: manipulation;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover {
  background: rgba(18, 18, 18, 0.07);
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  background: var(--ink);
  color: #fff;
}

.nav-links .nav-cta:hover {
  background: #2a2a2a;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 48px 36px;
  background: var(--night);
  color: #fff;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 96px 96px;
  content: '';
  mask-image: linear-gradient(90deg, black, transparent 80%);
  opacity: 0.4;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0.62;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.72) 48%, rgba(8, 9, 11, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.72), rgba(8, 9, 11, 0.08) 58%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 950;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-copy {
  max-width: 56ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  touch-action: manipulation;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

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

.button.primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.1);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(16, 17, 20, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.hero-aside {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(16, 17, 20, 0.72);
  backdrop-filter: blur(12px);
}

.hero-aside-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 950;
}

.quick-steps {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.quick-steps li + li {
  margin-top: 6px;
}

.hero-aside kbd {
  color: var(--ink);
  background: #fff;
  border-color: rgba(18, 18, 18, 0.14);
}

.proof-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.proof-item {
  padding: 22px clamp(16px, 3vw, 28px);
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
}

.proof-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.feature-section {
  padding-block: var(--section-y);
}

.section-heading h2,
.bottom-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 950;
  line-height: 1.02;
  text-wrap: pretty;
}

@media (min-width: 820px) {
  .section-heading h2,
  .bottom-intro h2 {
    white-space: nowrap;
  }
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-board {
  margin-top: 28px;
}

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

.feature {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 245, 0.98)), var(--surface);
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

.feature:hover {
  box-shadow: 0 14px 32px rgba(18, 18, 18, 0.08);
  transform: translateY(-2px);
}

.feature-highlight {
  border-top: 4px solid var(--red);
}

.feature:nth-child(2) {
  border-top: 4px solid var(--blue);
}

.feature:nth-child(3) {
  border-top: 4px solid var(--green);
}

.feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
}

.feature p,
.panel-caption,
.info-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.showcase-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

.panel-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
}

.panel-card-demo {
  border-top: 4px solid var(--red);
}

.panel-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

.panel-media {
  margin: 12px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--night);
}

.panel-media img,
.panel-media-gif .demo-gif {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.08);
}

.panel-media:not(.panel-media-gif) {
  background: var(--paper);
}

.panel-media img {
  object-fit: cover;
  object-position: top center;
}

.panel-media-gif .demo-gif {
  object-fit: contain;
}

.panel-caption {
  margin-top: 10px;
  font-size: 13px;
}

.shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  list-style: none;
}

.shortcut-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1;
}

.shortcut-row li:not(:last-child)::after {
  margin-left: 8px;
  color: var(--line);
  content: '|';
}

.shortcut-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  min-height: 1.5em;
  padding: 0.1em 0.36em 0.13em;
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-bottom-width: 1px;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.86em;
  font-weight: 800;
  line-height: 1.15;
  vertical-align: 0.1em;
  box-shadow:
    0 1px 0 rgba(18, 18, 18, 0.1),
    inset 0 -1px 0 rgba(18, 18, 18, 0.08);
}

.kbd-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  vertical-align: 0.1em;
}

.kbd-plus {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.hero-aside .kbd-plus {
  color: rgba(255, 255, 255, 0.5);
}

.bottom-section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--surface);
}

.bottom-intro {
  margin-bottom: 24px;
}

.bottom-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.bottom-panel {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.bottom-panel-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  flex: 1;
}

.info-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-content: center;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

a.info-card:hover {
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.07);
  transform: translateY(-1px);
}

.info-card-dark {
  border-left-color: var(--ink);
}

.info-card-blue {
  border-left-color: var(--blue);
}

.info-card-green {
  border-left-color: var(--green);
}

.info-card-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
}

.info-card-desc {
  grid-column: 1;
  grid-row: 2;
}

.info-card-mark {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font-size: 14px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-image {
    animation: hero-drift 18s ease-in-out infinite alternate;
  }

  .hero-content,
  .hero-aside,
  .proof-item {
    animation: rise-in 520ms ease both;
  }

  .hero-aside {
    animation-delay: 80ms;
  }

  .proof-item:nth-child(2) {
    animation-delay: 60ms;
  }

  .proof-item:nth-child(3) {
    animation-delay: 120ms;
  }

  @supports (animation-timeline: view()) {
    .feature,
    .panel-card,
    .info-card {
      animation: rise-in both;
      animation-range: entry 8% cover 28%;
      animation-timeline: view();
    }
  }
}

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

  .hero-image,
  .feature,
  .panel-card,
  .info-card {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.01);
  }

  to {
    transform: scale(1.035) translate3d(1%, -0.6%, 0);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .bottom-panels,
  .showcase-row {
    grid-template-columns: 1fr;
  }

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

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

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 56px;
    --section-y: 40px;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-block: 36px 28px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
