:root {
  color-scheme: dark;
  --bg: #080a0f;
  --surface: rgba(17, 20, 29, 0.78);
  --text: #f3f5f7;
  --muted: #9ba3b2;
  --line: rgba(255, 255, 255, 0.11);
  --violet: #9b87f5;
  --cyan: #54d7e8;
  --green: #8bd5b2;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 52% 45%, rgba(84, 215, 232, 0.035), transparent 28%),
    var(--bg);
  font-family: "Open Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 56px, 1220px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
}

.nav,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav {
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  letter-spacing: -0.05em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot,
.location span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61ddb0;
  box-shadow: 0 0 0 5px rgba(97, 221, 176, 0.1), 0 0 18px rgba(97, 221, 176, 0.65);
}

.status-dot {
  animation: pulse 2.8s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(56px, 7vw, 96px);
  align-items: center;
  padding: clamp(46px, 7vh, 76px) 0 clamp(64px, 8vh, 92px);
}

.hero-copy {
  animation: reveal 0.8s ease-out both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 28px;
  color: #b8bfcb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--cyan);
}

.eyebrow::after {
  width: 52px;
  height: 1px;
  background: var(--line);
  content: "";
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.65rem, 6.2vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.064em;
  line-height: 0.95;
}

h1 .headline-line {
  display: block;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: initial;
  white-space: nowrap;
}

h1 .headline-accent {
  color: transparent;
  background: linear-gradient(110deg, #dcd8ee 4%, #aa9bd8 49%, #80b7c3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  max-width: 590px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 154px);
  gap: 10px;
  width: fit-content;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 49px;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #d8dde5;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button svg.icon--fill {
  fill: currentColor;
  stroke: none;
}

.button .icon-dot {
  fill: currentColor;
  stroke: none;
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: #f3f5f7;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.arrow {
  transition: transform 180ms ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.visual {
  position: relative;
  display: grid;
  min-height: 410px;
  place-items: center;
  perspective: 900px;
  animation: reveal 0.8s 120ms ease-out both;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
}

.orbit--outer {
  width: 408px;
  height: 408px;
  border-style: dashed;
  animation: rotate 45s linear infinite;
}

.orbit--inner {
  width: 298px;
  height: 298px;
  box-shadow: inset 0 0 60px rgba(125, 99, 220, 0.025);
}

.orbit--outer::before,
.orbit--inner::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  content: "";
}

.orbit--outer::before {
  top: 46px;
  right: 59px;
}

.orbit--inner::after {
  bottom: 28px;
  left: 63px;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet);
}

.code-float {
  position: relative;
  z-index: 2;
  width: min(100%, 405px);
  animation: card-float 7s ease-in-out infinite;
}

.code-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(13, 16, 23, 0.88);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52), 0 0 70px rgba(110, 87, 199, 0.08);
  backdrop-filter: blur(14px);
  transform: rotateY(-3deg) rotateX(1.5deg);
  transition: border-color 350ms ease, box-shadow 450ms ease, transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.visual:hover .code-window {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.56), 0 0 76px rgba(110, 87, 199, 0.11);
  transform: rotateY(0) rotateX(0) translateY(-4px);
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 47px;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.window-controls {
  display: flex;
  gap: 7px;
  justify-self: start;
}

.window-controls span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49505d;
}

.window-controls span:nth-child(1) { background: #e37d7d; }
.window-controls span:nth-child(2) { background: #e3be70; }
.window-controls span:nth-child(3) { background: #68c796; }

.window-bar p {
  justify-self: center;
  margin: 0;
  color: #7e8797;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
}

.editor-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  justify-self: end;
  margin: 0;
  color: #687181;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.editor-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ad4ab;
  box-shadow: 0 0 8px rgba(106, 212, 171, 0.5);
  content: "";
  animation: pulse 2.8s ease-in-out infinite;
}

pre {
  margin: 0;
  padding: 29px 26px 33px;
  overflow: hidden;
  color: #d9dce3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.65rem, 1.05vw, 0.78rem);
  line-height: 2;
}

.muted { color: #4f5664; user-select: none; }
.purple { color: #bd9df2; }
.blue { color: #73c7ee; }
.green { color: var(--green); }
.orange { color: #efa86e; }

.caret {
  display: inline-block;
  width: 6px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

.footer {
  gap: 24px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
  color: #737b89;
  font-size: 0.72rem;
}

.footer p {
  margin: 0;
}

.location {
  display: flex;
  align-items: center;
  gap: 9px;
}

.location span {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 10px rgba(97, 221, 176, 0.55);
}

.grid {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient--one {
  top: -25vw;
  right: -8vw;
  background: #6f58d9;
}

.ambient--two {
  bottom: -30vw;
  left: -10vw;
  background: #297f93;
}

.pointer-glow {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 122, 255, 0.065), transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  will-change: transform;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  50% { opacity: 0.55; transform: scale(0.88); }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (min-width: 901px) {
  html,
  body {
    height: 100%;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    height: 100vh;
    height: 100svh;
    min-height: 680px;
  }

  .hero {
    min-height: 0;
    padding-top: clamp(28px, 4.5vh, 58px);
    padding-bottom: clamp(38px, 5.5vh, 72px);
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .nav {
    padding-block: 20px;
  }

  .hero {
    padding-block: 18px 30px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(3.45rem, 5.6vw, 5.55rem);
  }

  .intro {
    margin-top: 24px;
  }

  .actions {
    gap: 12px;
    margin-top: 27px;
  }

  .button {
    height: 45px;
  }

  .visual {
    min-height: 350px;
  }

  .orbit--outer {
    width: 350px;
    height: 350px;
  }

  .orbit--inner {
    width: 260px;
    height: 260px;
  }

  .footer {
    padding-block: 20px;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .actions {
    grid-template-columns: repeat(2, 154px);
  }
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .page-shell {
    min-height: 100svh;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .visual {
    min-height: 370px;
  }

  .orbit--outer {
    width: 370px;
    height: 370px;
  }

  .orbit--inner {
    width: 270px;
    height: 270px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 34px, 1240px);
  }

  .nav {
    padding: 21px 0;
  }

  .brand-name {
    display: none;
  }

  .status {
    font-size: 0.61rem;
  }

  .hero {
    gap: 58px;
    padding: 62px 0 74px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 4.4rem);
    letter-spacing: -0.058em;
    line-height: 0.98;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .intro {
    margin-top: 27px;
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 34px;
  }

  .button {
    width: 100%;
    padding-inline: 12px;
  }

  .visual {
    min-height: 300px;
  }

  .orbit--outer {
    width: 290px;
    height: 290px;
  }

  .orbit--inner {
    width: 220px;
    height: 220px;
  }

  .code-float {
    width: calc(100% - 16px);
  }

  pre {
    padding: 23px 18px 26px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pointer-glow {
    display: none;
  }
}
