:root {
  --axis-black: #050505;
  --axis-surface-1: #0b0b0d;
  --axis-surface-2: #111114;
  --axis-surface-3: #17171a;
  --axis-white: #ffffff;
  --axis-gray: #86868b;
  --axis-signal: #0066ff;
  --axis-signal-make: #3e63e0;
  --axis-signal-light: #7c9cff;
  --axis-signal-wash: rgba(62, 99, 224, 0.14);
  --axis-hairline: rgba(255, 255, 255, 0.08);
  --axis-hairline-strong: rgba(255, 255, 255, 0.16);
  --axis-glass: rgba(11, 11, 13, 0.55);
  --hero-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --axis-mono: "DM Mono", ui-monospace, monospace;
  --axis-nav-end: 90px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--axis-black);
  max-width: 100%;
}

body.axis-article {
  --axis-mono: "JetBrains Mono", ui-monospace, monospace;
}

body.axis-home,
body.axis-hero-preview {
  background: var(--axis-black);
  color: var(--axis-white);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.axis-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 112px 0 64px;
}

.axis-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(62, 99, 224, 0.16), transparent 55%),
    radial-gradient(80% 60% at 20% 80%, rgba(255, 255, 255, 0.03), transparent 60%);
}

.axis-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--axis-hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--axis-hairline) 1px, transparent 1px);
  background-size: 80px 80px;
}

.axis-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad, 24px);
  display: grid;
  gap: 56px;
  align-items: center;
}

.axis-hero__inner > * {
  min-width: 0;
}

/* LEFT — already implemented in the live theme; kept here for preview layout */
.axis-hero__copy {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.axis-hero__inner > .axis-hero__copy {
  min-width: 0;
  overflow: visible;
}

.axis-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  color: var(--axis-signal);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.axis-hero__label-rule {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--axis-signal);
}

.axis-hero__title {
  margin: 0;
  max-width: none;
  overflow: visible;
  color: var(--axis-white);
  font-weight: 800;
  letter-spacing: -0.96px;
  line-height: 0.95;
}

.axis-hero__title-line {
  display: block;
  font-size: clamp(2.5rem, 7.22vw, 6.5rem);
}

.axis-hero__title-accent {
  display: block;
  width: max-content;
  max-width: none;
  overflow: visible;
  font-size: clamp(2.875rem, 8.67vw, 7.8rem);
  line-height: 0.95;
  background: linear-gradient(180deg, #fff 0%, #c9c9cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (min-width: 1024px) {
  .axis-hero__title-accent {
    white-space: nowrap;
    font-size: 124.8px;
    line-height: 118.56px;
    letter-spacing: -0.96px;
  }
}

.axis-hero__lede {
  margin: 32px 0 0;
  max-width: 448px;
  color: var(--axis-gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.axis-hero__actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.axis-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  text-decoration: none;
  cursor: pointer;
}

.axis-btn img {
  width: 16px;
  height: 16px;
  display: block;
}

.axis-btn--primary {
  background: var(--axis-signal);
  color: var(--axis-white);
  transition: filter 300ms var(--hero-ease);
}

.axis-btn--primary:hover {
  filter: brightness(1.1);
}

.axis-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1.359px solid var(--axis-hairline-strong);
  transition: color 300ms var(--hero-ease), border-color 300ms var(--hero-ease);
}

.axis-btn--ghost:hover {
  color: var(--axis-white);
  border-color: rgba(255, 255, 255, 0.4);
}

/* RIGHT — fragmented floating system (Figma Make Hero.tsx) */
.axis-hero-visual {
  position: relative;
  width: 100%;
  height: 420px;
}

.axis-hero-visual__device {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  margin: 0;
  font-family: var(--axis-mono);
  font-size: clamp(9rem, 20vw, 18rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.axis-hero-visual__device-dot {
  color: var(--axis-signal);
}

.axis-hero-visual__axis-y,
.axis-hero-visual__axis-x {
  position: absolute;
  background: var(--axis-hairline);
  pointer-events: none;
}

.axis-hero-visual__axis-y {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.axis-hero-visual__axis-x {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.axis-hero-visual__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.axis-hero-visual__status {
  position: absolute;
  bottom: 0;
  left: 8px;
  margin: 0;
  font-family: var(--axis-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 15px;
  color: var(--axis-gray);
  text-transform: uppercase;
}

.axis-fragment {
  position: absolute;
  z-index: 2;
  min-width: 150px;
  padding: 12px 16px;
  border-radius: 2px;
  background: var(--axis-glass);
  border: 1.359px solid var(--axis-hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  will-change: transform;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.axis-fragment__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.axis-fragment__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
}

.axis-fragment__icon {
  width: 14px;
  height: 14px;
  overflow: clip;
  flex-shrink: 0;
}

.axis-fragment__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.axis-fragment__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--axis-signal);
  flex-shrink: 0;
  animation: axis-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.axis-fragment__meta {
  margin: 0;
  font-family: var(--axis-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 15px;
  color: var(--axis-gray);
  text-transform: uppercase;
}

.axis-fragment__bars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.axis-fragment__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.axis-fragment__bar--fill {
  flex: 1;
}

.axis-fragment__bar--tail {
  width: 12px;
}

.axis-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.axis-hero__scroll-rule {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
}

.axis-hero__scroll-text {
  font-family: var(--axis-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 15px;
  color: var(--axis-gray);
  text-transform: uppercase;
}

@keyframes axis-pulse {
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 767px) {
  /* Figma home-mobile 59:24 — Inter ExtraBold 48 / 54.4 */
  .axis-hero__label {
    align-items: flex-start;
    max-width: 312px;
    white-space: normal;
  }

  .axis-hero__title-line {
    font-size: 48px;
    line-height: 45.6px;
    letter-spacing: -0.96px;
    white-space: nowrap;
  }

  .axis-hero__title-accent {
    font-size: 54.4px;
    line-height: 51.68px;
    letter-spacing: -0.96px;
    white-space: nowrap;
  }
}

@media (min-width: 640px) {
  .axis-hero-visual {
    height: 500px;
  }
}

@media (min-width: 768px) {
  .axis-hero {
    padding: 0;
  }

  .axis-hero__scroll {
    left: var(--pad, 48px);
    bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .axis-hero__inner {
    grid-template-columns: minmax(0, 612px) minmax(0, 1fr);
    gap: 56px;
  }

  .axis-hero-visual {
    height: 560px;
  }

  .axis-hero__scroll {
    left: var(--pad, 80px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .axis-fragment {
    transition: none;
    will-change: auto;
  }

  .axis-fragment__dot {
    animation: none;
  }

  .axis-btn--primary,
  .axis-btn--ghost {
    transition: none;
  }
}

/* Custom cursor — Figma Make Cursor.tsx */
.axis-cursor {
  display: none;
}

html.axis-cursor-on,
html.axis-cursor-on * {
  cursor: none !important;
}

@media (min-width: 768px) {
  .axis-cursor:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
  }
}

.axis-cursor__dot {
  position: absolute;
  top: -3px;
  left: -3px;
}

.axis-cursor__point {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.axis-cursor__axis {
  display: none;
  position: relative;
}

.axis-cursor__axis-x,
.axis-cursor__axis-y {
  position: absolute;
  background: var(--axis-signal);
}

.axis-cursor__axis-x {
  width: 32px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.axis-cursor__axis-y {
  width: 1px;
  height: 32px;
  transform: translate(-50%, -50%);
}

.axis-cursor__axis-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--axis-signal);
  transform: translate(-50%, -50%);
}

.axis-cursor[data-mode="axis"] .axis-cursor__point {
  display: none;
}

.axis-cursor[data-mode="axis"] .axis-cursor__axis {
  display: block;
}

.axis-cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    width 300ms ease-out,
    height 300ms ease-out,
    margin 300ms ease-out,
    border-color 300ms ease-out,
    opacity 300ms ease-out;
}

.axis-cursor[data-mode="hover"] .axis-cursor__ring {
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-color: rgba(124, 156, 255, 0.7);
}

.axis-cursor[data-mode="axis"] .axis-cursor__ring {
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  html.axis-cursor-on,
  html.axis-cursor-on * {
    cursor: auto !important;
  }

  .axis-cursor {
    display: none !important;
  }
}


