:root {
  color-scheme: dark;
  --green: #22c55e;
  --green-bright: #4ade80;
  --green-deep: #16a34a;
  --ink: #0a0a0a;
  --surface-1: #141414;
  --surface-2: #1f1f1f;
  --border: #27272a;
  --text: #f5f5f4;
  --muted: #a1a1aa;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.17;
}

.ambient-one {
  width: 480px;
  height: 480px;
  top: -240px;
  left: 12%;
  background: var(--green);
}

.ambient-two {
  width: 360px;
  height: 360px;
  right: -180px;
  bottom: 12%;
  background: var(--green-deep);
  opacity: 0.1;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(20, 20, 20, 0.76);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.official-badge-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
  white-space: nowrap;
}

.official-badge-copy strong,
.official-badge-copy small {
  font: inherit;
}

.official-badge-copy small {
  color: #71717a;
  font-size: 0.82em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(58px, 8vw, 112px);
  align-items: center;
  min-height: min(760px, calc(100vh - 92px));
  padding: 48px 0 92px;
}

.pet-column {
  display: grid;
  place-items: center;
}

.pet-card {
  position: relative;
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 46%, rgba(34, 197, 94, 0.2), transparent 42%),
    linear-gradient(145deg, #181a19 0%, #0d0f0e 72%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.6),
    inset 0 1px rgba(255, 255, 255, 0.06);
}

.pet-card::before,
.pet-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-color: var(--green);
  opacity: 0.55;
  pointer-events: none;
}

.pet-card::before {
  top: 20px;
  left: 20px;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: 9px 0 0;
}

.pet-card::after {
  right: 20px;
  bottom: 55px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 9px;
}

.scan-line {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 90px;
  opacity: 0.08;
  background: linear-gradient(transparent, var(--green), transparent);
  animation: scan 5s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  from { transform: translateY(-110px); }
  to { transform: translateY(520px); }
}

.cortex-motion-paused .scan-line,
.cortex-hero-offscreen .scan-line {
  animation-play-state: paused;
}

.pet-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 46px 22px 20px;
}

.pet-stage::after {
  content: "";
  position: absolute;
  bottom: 70px;
  left: 50%;
  width: 52%;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.21);
  filter: blur(18px);
}

#cortexPreview {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 384px);
  height: auto;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.42));
}

.pet-fallback {
  position: relative;
  z-index: 1;
  display: block;
  width: min(80%, 330px);
  height: auto;
  border-radius: 18px;
}

.cortex-image-fallback[hidden] {
  display: none;
}

.pet-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 21px 17px;
  border-top: 1px solid var(--border);
  color: rgba(74, 222, 128, 0.75);
  background: rgba(10, 10, 10, 0.76);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.eyebrow,
.section-number {
  margin: 0 0 20px;
  color: var(--green-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "// ";
  color: var(--green-deep);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

h1 span {
  display: block;
  color: var(--green);
}

.description {
  max-width: 650px;
  margin-bottom: 14px;
  color: #d7d7d2;
  font-size: clamp(1.1rem, 1.7vw, 1.36rem);
  line-height: 1.62;
}

.learn-more {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.98rem;
}

.learn-more a {
  color: var(--green-bright);
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-color: rgba(74, 222, 128, 0.4);
}

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

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: #031108;
  background: var(--green);
  box-shadow: 0 10px 34px rgba(34, 197, 94, 0.2);
}

.button-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-1);
}

.button-secondary:hover {
  border-color: #3f3f46;
  background: var(--surface-2);
  transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(74, 222, 128, 0.65);
  outline-offset: 3px;
}

.install-note {
  min-height: 1.3em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.share-status {
  min-height: 1.3em;
  margin: 6px 0 0;
  color: var(--green-bright);
  font-size: 0.82rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust-row strong {
  color: var(--text);
}

.install-guide {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
  margin-bottom: 80px;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 20, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  scroll-margin-top: 24px;
}

.install-guide h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.install-guide-lede {
  max-width: 32ch;
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.58;
}

.manual-download {
  width: fit-content;
}

.manual-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manual-steps > li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: flex-start;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.manual-steps .step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 9px;
  color: var(--green-bright);
  background: rgba(34, 197, 94, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
}

.manual-step-copy {
  min-width: 0;
}

.manual-step-copy > strong {
  display: block;
  margin: 4px 0 7px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.manual-step-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.manual-step-copy p + p {
  margin-top: 9px;
}

.manual-step-copy p strong {
  color: #d7d7d2;
}

.manual-step-copy code {
  color: #d7d7d2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.manual-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 9px 0;
}

.manual-path span {
  padding: 5px 8px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 7px;
  color: #d7d7d2;
  background: rgba(34, 197, 94, 0.055);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.manual-path i {
  color: var(--green-bright);
  font-size: 0.73rem;
  font-style: normal;
}

.manual-step-copy .folder-contents {
  padding-left: 10px;
  border-left: 2px solid rgba(74, 222, 128, 0.3);
  color: #8f8f98;
}

.manual-install-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(74, 222, 128, 0.16);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.045);
}

.manual-install-note svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.manual-install-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.manual-install-note strong {
  color: #d7d7d2;
}

.movement-showcase {
  margin-bottom: 80px;
  scroll-margin-top: 24px;
}

.movement-showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.movement-showcase-header .section-number {
  margin-bottom: 14px;
}

.movement-showcase h2 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.movement-showcase-lede {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.movement-controls {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  justify-items: end;
}

.movement-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--green-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.movement-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

.movement-showcase.is-paused .movement-live-status {
  color: var(--muted);
}

.movement-showcase.is-paused .movement-status-dot {
  background: #71717a;
  box-shadow: none;
}

.movement-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: var(--surface-1);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.movement-toggle:hover {
  border-color: rgba(74, 222, 128, 0.38);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.movement-toggle:disabled {
  color: #71717a;
  cursor: not-allowed;
  transform: none;
}

.movement-error {
  margin: -8px 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 11px;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.12);
  font-size: 0.82rem;
}

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

.movement-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(20, 20, 20, 0.84);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.movement-card:hover {
  border-color: rgba(74, 222, 128, 0.24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.045);
  transform: translateY(-3px);
}

.movement-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 218px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(34, 197, 94, 0.15), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #0d0f0e;
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.movement-stage::after {
  content: "";
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 42%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  filter: blur(14px);
}

.cortex-action-preview {
  position: relative;
  z-index: 1;
  display: block;
  width: min(64%, 176px);
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.38));
}

.movement-card-copy {
  min-height: 126px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.movement-index {
  margin-bottom: 9px;
  color: var(--green-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.movement-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.movement-card-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

.legal-note {
  flex-basis: 100%;
  max-width: 760px;
  color: #71717a;
  font-size: 0.72rem;
  line-height: 1.55;
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 30px;
  }

  .pet-card {
    width: min(100%, 520px);
  }

  .install-guide {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .movement-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-top: 20px;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .official-badge {
    padding: 8px 10px;
    font-size: 0.62rem;
  }

  .hero {
    gap: 44px;
    padding-top: 18px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 5.6rem);
  }

  .actions,
  .button {
    width: 100%;
  }

  .pet-stage {
    min-height: 420px;
    padding-inline: 8px;
  }

  .install-guide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px 23px;
  }

  .manual-steps > li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .movement-showcase-header {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .movement-showcase h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .movement-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .movement-toggle {
    min-height: 44px;
  }

  .movement-grid {
    gap: 10px;
  }

  .movement-card:last-child:nth-child(odd) {
    width: calc(50% - 5px);
  }

  .movement-stage {
    min-height: 152px;
  }

  .movement-stage::after {
    bottom: 18px;
  }

  .cortex-action-preview {
    width: min(86%, 132px);
  }

  .movement-card-copy {
    min-height: 142px;
    padding: 13px 12px 15px;
  }

  .movement-index {
    min-height: 2.4em;
    margin-bottom: 7px;
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .movement-card h3 {
    font-size: 0.95rem;
  }

  .movement-card-copy > p:last-child {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .movement-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .movement-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .movement-stage {
    min-height: 196px;
  }

  .cortex-action-preview {
    width: min(62%, 156px);
  }

  .movement-card-copy {
    min-height: 0;
    padding: 15px 16px 18px;
  }

  .movement-index {
    min-height: 0;
    font-size: 0.66rem;
  }

  .movement-card h3 {
    font-size: 1.05rem;
  }

  .movement-card-copy > p:last-child {
    font-size: 0.78rem;
    line-height: 1.5;
  }
}

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

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