:root {
  --color-black: #000000;
  --color-surface: #090a0c;
  --color-surface-raised: #111315;
  --color-border: #2a2d30;
  --color-text: #f5f7f8;
  --color-text-muted: #aeb3b7;
  --color-green: #7cd040;
  --color-red: #ff3535;
  --color-blue: #139fe5;
  --brand-gradient: linear-gradient(90deg, var(--color-blue) 0%, var(--color-green) 100%);
  --font-display: "Arial Black", "Segoe UI", sans-serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-color: var(--color-blue) var(--color-surface-raised);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--color-surface-raised);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid var(--color-surface-raised);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-blue), var(--color-green));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8, #a3e674);
}

*::-webkit-scrollbar-corner {
  background: var(--color-surface-raised);
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-black);
  color: var(--color-text);
  font-family: var(--font-ui);
}

a {
  color: inherit;
}

.brand-gradient-text {
  color: var(--color-green);
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-gradient-surface {
  background-image: var(--brand-gradient);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-page--clay {
  min-height: 100svh;
  padding-top: 80px;
  overflow: hidden;
  background: #0f1115;
  color: #ffffff;
}

.landing-page--clay ::selection {
  background: rgb(124 208 64 / 30%);
  color: #ffffff;
}

.landing-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 50;
  width: min(calc(100% - 32px), 1400px);
  min-height: 64px;
  margin: 0 auto;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 16px;
  background: rgb(22 24 29 / 84%);
  box-shadow: 10px 10px 20px #090a0c, -10px -10px 20px #1d2028;
  backdrop-filter: blur(20px);
}

.landing-header__container {
  display: flex;
  height: 64px;
  padding: 0 32px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.landing-brand,
.landing-footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.landing-brand__logo,
.landing-footer__logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.landing-brand__logo {
  height: 38px;
}

.landing-footer__logo {
  height: 34px;
}

.landing-navigation {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
}

.landing-navigation a,
.landing-footer__links a {
  color: #a3a3a3;
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 180ms ease;
}

.landing-navigation a:first-child,
.landing-navigation a:hover,
.landing-footer__links a:hover {
  color: #ffffff;
}

.landing-header__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.landing-header__search {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #1e2028;
  box-shadow: 5px 5px 10px #090a0c, -5px -5px 10px #1d2028;
  color: #a3a3a3;
  text-decoration: none;
  transition: color 180ms ease, box-shadow 180ms ease;
}

.landing-header__search:hover {
  box-shadow: 10px 10px 20px #090a0c, -10px -10px 20px #1d2028;
  color: #ffffff;
}

.landing-header__action,
.landing-mobile-navigation__action {
  display: inline-flex;
  min-height: 40px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #1e2028;
  box-shadow: 10px 10px 20px #090a0c, -10px -10px 20px #1d2028;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.landing-header__action:hover,
.landing-mobile-navigation__action:hover {
  box-shadow: 15px 15px 30px #090a0c, -15px -15px 30px #1d2028;
  transform: translateY(-2px);
}

.landing-header__menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #1e2028;
  box-shadow: 5px 5px 10px #090a0c, -5px -5px 10px #1d2028;
  color: #a3a3a3;
  cursor: pointer;
}

.landing-header__menu-button i {
  width: 22px;
  font-size: 20px;
  text-align: center;
}

.landing-mobile-navigation {
  position: absolute;
  inset: 72px 0 auto;
  padding: 20px 24px 24px;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 0 0 16px 16px;
  background: #16181d;
  box-shadow: 10px 10px 20px #090a0c, -10px -10px 20px #1d2028;
}

.landing-mobile-navigation:not([hidden]) {
  display: grid;
  gap: 8px;
}

.landing-mobile-navigation > a:not(.landing-mobile-navigation__action) {
  padding: 10px 0;
  color: #a3a3a3;
  font-weight: 550;
  text-decoration: none;
}

.home-hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), 1400px);
  margin: 0 auto;
  padding: 96px 0 104px;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  gap: clamp(48px, 5vw, 72px);
  align-items: center;
}

.home-hero__glow {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 25%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgb(124 208 64 / 5%);
  filter: blur(120px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.home-hero__badge {
  display: inline-flex;
  min-height: 30px;
  margin-bottom: 32px;
  padding: 0 12px;
  gap: 9px;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 12px;
  background: #1e2028;
  box-shadow: 5px 5px 10px #090a0c, -5px -5px 10px #1d2028;
  color: #d4d4d4;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero__badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow:
    -3px 0 8px rgb(19 159 229 / 70%),
    3px 0 8px rgb(124 208 64 / 70%);
}

.home-hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(3.2rem, 5vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-wrap: balance;
}

.home-hero h1 span {
  color: var(--color-green);
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero__description {
  max-width: 610px;
  margin: 24px 0 40px;
  color: #a3a3a3;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.home-hero__proof {
  display: flex;
  margin: 28px 0 0;
  gap: 9px;
  align-items: center;
  color: #737373;
  font-size: 0.82rem;
  font-weight: 550;
}

.home-hero__media {
  position: relative;
  display: flex;
  min-width: 0;
  height: 550px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 2%);
  border-radius: 40px;
  background: #16181d;
  box-shadow: 10px 10px 20px #090a0c, -10px -10px 20px #1d2028;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: radial-gradient(rgb(255 255 255 / 4%) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
}

.home-hero__video-frame {
  position: relative;
  z-index: 2;
  display: grid;
  width: 54%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 32px;
  background: #1e2028;
  box-shadow: 15px 15px 30px #090a0c, -15px -15px 30px #1d2028;
  transition: transform 700ms ease;
}

.home-hero__media:hover .home-hero__video-frame {
  transform: scale(1.04);
}

.home-hero__video,
.home-hero__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__poster {
  display: none;
}

.home-hero__floating-card,
.home-hero__status-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 16px;
  background: #16181d;
  box-shadow: 10px 10px 20px #090a0c, -10px -10px 20px #1d2028;
}

.home-hero__floating-card {
  width: 128px;
  padding: 16px;
  animation: clay-float 6s ease-in-out infinite alternate;
}

.home-hero__floating-card--terminal {
  top: 64px;
  left: 48px;
}

.home-hero__floating-card--hardware {
  right: 48px;
  bottom: 64px;
  animation-duration: 5s;
  animation-direction: alternate-reverse;
}

.home-hero__floating-icon {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 10px;
  background: #1e2028;
  box-shadow: inset 5px 5px 10px #090a0c, inset -5px -5px 10px #1d2028;
  font-size: 13px;
}

.home-hero__floating-card--hardware .home-hero__floating-icon {
  color: #3b82f6;
}

.home-hero__floating-card > span {
  display: block;
  height: 8px;
  margin-top: 7px;
  border-radius: 99px;
  background: rgb(255 255 255 / 9%);
}

.home-hero__floating-card > span:last-child {
  width: 62%;
  background: rgb(255 255 255 / 4%);
}

.home-hero__status-card {
  top: 80px;
  right: 36px;
  display: grid;
  width: 112px;
  padding: 14px;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: center;
  animation: clay-float 7s ease-in-out infinite alternate;
}

.home-hero__status-card > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cd040;
}

.home-hero__status-card small {
  color: #a3a3a3;
  font-size: 0.63rem;
}

.home-hero__status-card strong {
  grid-column: 1 / -1;
  font-size: 0.78rem;
}

@keyframes clay-float {
  from { transform: translateY(-5px); }
  to { transform: translateY(8px); }
}

.hub-content {
  display: flex;
  width: 100%;
  padding: 0 0 96px;
  gap: 96px;
  align-items: center;
  flex-direction: column;
}

.home-search {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 48px), 1000px);
  margin-top: -32px;
  scroll-margin-top: 112px;
}

.home-search__control {
  position: relative;
}

.home-search__control > i {
  position: absolute;
  top: 50%;
  left: 24px;
  color: #737373;
  font-size: 20px;
  transform: translateY(-50%);
  transition: color 180ms ease;
}

.home-search__control:focus-within > i {
  color: var(--color-green);
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-search input {
  width: 100%;
  height: 68px;
  padding: 0 84px 0 64px;
  border: 1px solid transparent;
  border-radius: 16px;
  outline: 0;
  background: #16181d;
  box-shadow: inset 5px 5px 10px #090a0c, inset -5px -5px 10px #1d2028;
  color: #ffffff;
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 180ms ease;
}

.home-search input:focus {
  border-color: rgb(67 183 171 / 48%);
}

.home-search input::placeholder {
  color: #737373;
}

.home-search kbd {
  position: absolute;
  top: 50%;
  right: 24px;
  display: inline-flex;
  padding: 7px 11px;
  gap: 5px;
  align-items: center;
  border-radius: 8px;
  background: #1e2028;
  box-shadow: 5px 5px 10px #090a0c, -5px -5px 10px #1d2028;
  color: #a3a3a3;
  font-family: inherit;
  font-size: 0.7rem;
  transform: translateY(-50%);
}

.landing-footer {
  padding: 48px 0;
  border-top: 1px solid rgb(255 255 255 / 2%);
  background: #0f1115;
  color: #737373;
}

.landing-footer__container {
  display: flex;
  width: min(calc(100% - 48px), 1400px);
  margin: 0 auto;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.landing-footer__brand {
  flex: 0 0 auto;
}

.landing-footer__container > p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 550;
}

.landing-footer__links {
  display: flex;
  gap: 24px;
}

.landing-brand:focus-visible,
.landing-navigation a:focus-visible,
.landing-header__search:focus-visible,
.landing-header__action:focus-visible,
.landing-header__menu-button:focus-visible,
.landing-mobile-navigation a:focus-visible,
.landing-footer__links a:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 4px;
}

@media (forced-colors: active) {
  .brand-gradient-text,
  .home-hero h1 span,
  .home-search__control:focus-within > i {
    background-image: none;
    color: LinkText;
    -webkit-text-fill-color: currentColor;
  }
}

@media (max-width: 900px) {
  .landing-navigation,
  .landing-header__actions {
    display: none;
  }

  .landing-header__menu-button {
    display: inline-flex;
  }

  .home-hero {
    padding: 72px 0 96px;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .home-hero__content {
    max-width: 720px;
  }

  .home-hero__media {
    height: min(70vw, 580px);
  }
}

@media (max-width: 720px) {
  .home-hero,
  .home-search,
  .landing-footer__container {
    width: min(calc(100% - 32px), 1400px);
  }

  .landing-header {
    inset: 10px 10px auto;
    width: min(calc(100% - 20px), 1400px);
  }

  .landing-header__container {
    padding: 0 18px;
  }

  .landing-brand {
    max-width: 142px;
  }

  .landing-brand__logo {
    width: 100%;
    height: auto;
  }

  .home-hero {
    padding: 52px 0 78px;
    gap: 40px;
  }

  .home-hero__badge {
    margin-bottom: 24px;
  }

  .home-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .home-hero__description {
    margin: 20px 0 28px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-hero__proof {
    margin-top: 22px;
    align-items: flex-start;
  }

  .home-hero__media {
    height: 390px;
    border-radius: 28px;
  }

  .home-hero__video-frame {
    width: 60%;
    border-radius: 24px;
  }

  .home-hero__floating-card {
    width: 100px;
    padding: 12px;
  }

  .home-hero__floating-card--terminal {
    top: 42px;
    left: 20px;
  }

  .home-hero__floating-card--hardware {
    right: 20px;
    bottom: 42px;
  }

  .home-hero__status-card {
    top: 42px;
    right: 16px;
    width: 96px;
  }

  .hub-content {
    padding-bottom: 72px;
    gap: 72px;
  }

  .home-search {
    margin-top: -26px;
  }

  .home-search input {
    height: 62px;
    padding-right: 24px;
    font-size: 0.92rem;
  }

  .home-search kbd {
    display: none;
  }

  .landing-footer__container {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer__links {
    flex-wrap: wrap;
  }
}

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

  .home-hero__video {
    display: none;
  }

  .home-hero__poster {
    display: block;
  }

  .landing-header__action,
  .landing-mobile-navigation__action,
  .home-hero__video-frame,
  .home-hero__floating-card,
  .home-hero__status-card {
    animation: none;
    transition: none;
  }
}
