:root {
  --bg: #07080c;
  --surface: rgb(255 255 255 / 3%);
  --surface-strong: rgb(255 255 255 / 5%);
  --border: rgb(255 255 255 / 8%);
  --border-strong: rgb(255 255 255 / 14%);
  --text: #f4f5f8;
  --body: #b4b9c5;
  --muted: #7d8391;
  --violet: #7c6cff;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --gradient: linear-gradient(135deg, var(--violet), var(--cyan));
  --radius: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background */

.glow {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  background:
    radial-gradient(560px 420px at 38% 0%, rgb(124 108 255 / 26%), transparent 70%),
    radial-gradient(520px 380px at 66% 0%, rgb(34 211 238 / 15%), transparent 70%);
  pointer-events: none;
}

.grid-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

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

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

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 8px 32px rgb(124 108 255 / 35%);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 20%), 0 10px 40px rgb(34 211 238 / 35%);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgb(255 255 255 / 28%);
  background: var(--surface-strong);
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  background: rgb(7 8 12 / 60%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

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

.logo-mark {
  display: block;
  flex: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-top: 96px;
  padding-bottom: 32px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  letter-spacing: 0.04em;
  text-transform: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgb(52 211 153 / 50%);
  animation: pulse 2.4s ease-out infinite;
}

.kicker {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--body);
  font-size: 19px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Console */

.console {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
  box-shadow: 0 40px 120px rgb(0 0 0 / 55%), 0 0 0 1px rgb(0 0 0 / 40%), inset 0 1px 0 rgb(255 255 255 / 6%);
  overflow: hidden;
}

.console::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgb(124 108 255 / 70%), transparent 40%, transparent 60%, rgb(34 211 238 / 60%));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
}

.console-bar p {
  margin-left: 10px;
  color: var(--muted);
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.console-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.modules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modules li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(255 255 255 / 2.5%);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.ic {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
}

.ic-a {
  background: linear-gradient(135deg, #7c6cff, #a78bfa);
}

.ic-b {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
}

.ic-c {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
}

.ic-d {
  background: linear-gradient(135deg, #34d399, #22d3ee);
}

.ic-e {
  background: linear-gradient(135deg, #f472b6, #7c6cff);
}

.chip {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.chip.ok {
  background: rgb(52 211 153 / 12%);
  color: var(--green);
}

.chip.sync {
  background: rgb(34 211 238 / 12%);
  color: var(--cyan);
}

.chip.move {
  background: rgb(251 191 36 / 12%);
  color: var(--amber);
}

.panel-chart {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(255 255 255 / 2.5%);
}

.panel-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bars {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 6px;
  min-height: 150px;
  margin-top: 16px;
}

.bars span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), rgb(124 108 255 / 55%));
  opacity: 0.9;
  transform-origin: bottom;
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bars .b1 { height: 38%; animation-delay: 0.05s; }
.bars .b2 { height: 52%; animation-delay: 0.1s; }
.bars .b3 { height: 46%; animation-delay: 0.15s; }
.bars .b4 { height: 64%; animation-delay: 0.2s; }
.bars .b5 { height: 58%; animation-delay: 0.25s; }
.bars .b6 { height: 72%; animation-delay: 0.3s; }
.bars .b7 { height: 69%; animation-delay: 0.35s; }
.bars .b8 { height: 84%; animation-delay: 0.4s; }
.bars .b9 { height: 78%; animation-delay: 0.45s; }
.bars .b10 { height: 92%; animation-delay: 0.5s; }

.flow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(255 255 255 / 2.5%);
}

.flow span {
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.flow em {
  position: relative;
  flex: 1;
  height: 1px;
  min-width: 8px;
  background: var(--border-strong);
  overflow: hidden;
}

.flow em::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--gradient);
  animation: travel 2.2s linear infinite;
}

/* Sections */

.section {
  padding-top: 112px;
}

h2 {
  max-width: 720px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.card p {
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(124 108 255 / 22%), rgb(34 211 238 / 12%));
  color: var(--text);
}

.card-icon svg {
  display: block;
}

/* Approach */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.steps li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient);
  opacity: 0.8;
}

.steps p {
  font-size: 15px;
}

.step-n {
  color: var(--muted);
  font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 32px;
}

.principles p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.principles svg {
  color: var(--cyan);
}

/* Call to action */

.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 112px;
  padding: 56px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgb(124 108 255 / 30%), transparent 55%),
    radial-gradient(circle at 100% 100%, rgb(34 211 238 / 22%), transparent 55%),
    rgb(255 255 255 / 3%);
  overflow: hidden;
}

.cta p {
  margin-top: 12px;
  font-size: 17px;
}

/* Footer */

.footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

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

/* 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
}

/* Motion */

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(52 211 153 / 50%); }
  70%, 100% { box-shadow: 0 0 0 8px rgb(52 211 153 / 0%); }
}

@keyframes grow {
  from { transform: scaleY(0.05); }
  to { transform: scaleY(1); }
}

@keyframes travel {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Small screens */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-top: 64px;
    padding-bottom: 0;
  }

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

@media (max-width: 720px) {
  .wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .lead {
    font-size: 17px;
  }

  .console-body,
  .cards,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .bars {
    min-height: 110px;
  }

  .section {
    padding-top: 80px;
  }

  .cta {
    margin-top: 80px;
    padding: 36px 24px;
  }

  .cta .btn {
    width: 100%;
    justify-content: center;
  }
}
