:root {
  --bg: #171719;
  --panel: rgba(16, 16, 18, 0.9);
  --panel-soft: rgba(31, 31, 33, 0.66);
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.15);
  --text: #f4f2f6;
  --muted: rgba(244,242,246,.62);
  --muted-2: rgba(244,242,246,.28);
  --purple: #7b36ff;
  --purple-2: #914dff;
  --pink: #ff3aa6;
  --green: #36ea91;
  --white: #fff;
  --radius-lg: 18px;
  --max: 1400px;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: dark; }
body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #1f2020;
}

.site-background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
button, input, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 3px; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(14px, 2.5vh, 22px) clamp(18px, 3.2vw, 42px) clamp(18px, 3vh, 34px);
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  gap: clamp(28px, 5vh, 70px);
}

.site-header {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  min-height: 52px;
}
.site-header::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 90px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #0000006b, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background-image: url("./ncrypted_compressed.png"); background-repeat: no-repeat; background-position: center; background-size: contain; font-size: 0; color: transparent; overflow: hidden; }
.brand-name { font-size: 18px; }
.nav-links, .menu-button { display: none; }
.auth-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 3vw, 34px); }
.auth-links a { color: var(--text); font-weight: 800; transition: color .22s ease; white-space: nowrap; }
.auth-links a.active, .auth-links a:hover { color: var(--text); }

.workspace { min-height: 0; display: grid; align-items: center; }
.landing-workspace {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 500px);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}
.hero-copy { max-width: 690px; }
.hero-copy h1 {
  margin: 20px 0 0;
  font-size: clamp(50px, 6.8vw, 92px);
  line-height: .9;
  letter-spacing: -.078em;
  font-weight: 800;
  text-align: left;
}
.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(244,242,246,.74);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  font-weight: 600;
}
.eyebrow-tabs {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
}
.eyebrow {
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.25;
  text-transform: uppercase;
  transition: color .22s ease, opacity .22s ease;
}
.eyebrow:hover,
.eyebrow:focus-visible,
.eyebrow.is-active { color: var(--green); }
.eyebrow-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 46px;
  margin: 18px 0 0;
  color: gray;
}
.eyebrow-panel p {
  max-width: 560px;
  margin: 0;
  color: rgba(244,242,246,.48);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.install-card {
  width: -webkit-fill-available;
  margin-top: clamp(28px, 5vh, 48px);
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.install-card-inner { padding: 0; display: grid; gap: 0; }
.install-title {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.install-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  color: rgba(244,242,246,.72);
}
.install-platform-tabs { display: flex; align-items: flex-end; }
.install-platform {
  border-radius: 7px 7px 0 0;
  padding: 8px 16px;
  background: var(--green);
  color: #06130c;
  font-weight: 700;
  text-align: center;
}
.install-source {
  color: rgba(244,242,246,.48);
  font-size: .9rem;
  font-weight: 600;
  transition: color .18s ease;
}
.install-source:hover { color: rgba(244,242,246,.84); }
.install-code-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 74px;
  border: 2px solid var(--green);
  border-radius: 0 10px 10px 10px;
  overflow: hidden;
  background: rgba(6, 6, 8, .86);
}
.command-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 19px 22px;
  min-height: 72px;
  font-weight: 100;
}
.prompt { color: var(--green); font-weight: 100; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.3; }
.command-row code {
  display: block;
  color: var(--white);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.34;
  font-weight: 100;
  word-break: break-word;
}
.copy-command-button {
  min-width: 86px;
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
  color: rgba(244,242,246,.86);
  font-weight: 700;
  transition: background .18s ease, color .18s ease;
}
.copy-command-button:hover { background: rgba(255,255,255,.1); color: #fff; }
.copy-command-button.is-copied { background: var(--green); color: #06130c; }

.animated-terminal-card {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  min-height: 0;
}
.animated-terminal-shell {
  height: 560px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(54,234,145,.09), transparent 30%),
    rgba(4,4,6,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 28px 80px rgba(0,0,0,.32);
  overflow: hidden;
  pointer-events: none;
}
.terminal-chrome {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.terminal-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(244,242,246,.28);
}
.animated-terminal-output {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: clamp(18px, 2.6vw, 26px);
  color: rgba(244,242,246,.82);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: none;
}
.animated-terminal-output::after {
  content: "▌";
  color: var(--green);
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.primary-button { width: 100%; min-height: 58px; border-radius: 14px; padding: 0 22px; background: var(--green); color: #06130c; font-weight: 800; font-size: 16px; box-shadow: 0 18px 50px rgba(54,234,145,.16); transition: transform .18s ease, filter .18s ease; }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.primary-button.is-copied { background: #fff; color: #111113; }

.auth-page-shell { gap: clamp(22px, 5vh, 60px); }
.auth-workspace { display: grid; align-items: center; min-height: 0; }
.auth-layout { width: min(100%, 980px); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, .92fr) minmax(320px, 420px); gap: clamp(26px, 6vw, 78px); align-items: center; }
.auth-intro .eyebrow { color: var(--green); margin-bottom: 16px; }
.auth-intro h1 { margin: 0; font-size: clamp(54px, 8vw, 88px); line-height: .9; letter-spacing: -.078em; font-weight: 800; }
.auth-card { width: 100%; padding: clamp(20px, 4vw, 34px); border-radius: var(--radius-lg); background: rgba(10,10,12,.78); border: 1px solid rgba(255,255,255,.08); box-shadow: none; }
.auth-copy { max-width: 430px; margin: 18px 0 0; color: var(--muted); line-height: 1.45; font-weight: 500; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 8px; color: rgba(244,242,246,.72); font-size: 13px; font-weight: 700; }
.auth-form input { width: 100%; height: 54px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 0 18px; background: rgba(12,12,15,.82); color: #fff; font-weight: 400; }
.auth-form input::placeholder { color: rgba(244,242,246,.25); }
.auth-turnstile { display: flex; justify-content: center; min-height: 65px; }
.auth-switch { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.auth-switch a { color: #fff; font-weight: 800; }



.auth-overlay-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: max(500px, calc((100vw - min(100vw, var(--max))) / 2 + clamp(18px, 3.2vw, 42px) + 500px + clamp(34px, 6vw, 82px) / 2));
  z-index: 30;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* transition: opacity .26s ease, visibility .26s ease; */
}

.auth-overlay-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-overlay-backdrop {
  position: absolute;
  inset: 0;
  /* background: rgba(6, 7, 8, .54); */
  backdrop-filter: blur(41px) saturate(352%) hue-rotate(-85deg) contrast(1.0);
  -webkit-backdrop-filter: blur(41px) saturate(352%) hue-rotate(-85deg) contrast(1.0);
  border-left: 1px solid rgba(255,255,255,.12);
}

.auth-overlay-content {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  align-self: center;
  justify-self: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(8, 9, 10, .52);
  box-shadow: 0 30px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.auth-overlay-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.82);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  transition: background .18s ease, color .18s ease;
}

.auth-overlay-close:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
}

.inline-auth-view {
  display: none;
}

.inline-auth-view.is-active {
  display: grid;
  gap: 22px;
}

.inline-auth-intro {
  padding-right: 42px;
}

.inline-auth-intro .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
}

.inline-auth-intro h2 {
  color: #fff;
  font-size: clamp(44px, 5vw, 72px);
  line-height: .92;
  letter-spacing: -.075em;
  font-weight: 800;
  margin: 0;
}

.inline-auth-intro p {
  max-width: 390px;
  margin: 16px 0 0;
  color: rgba(244,242,246,.62);
  line-height: 1.45;
  font-weight: 500;
}

.auth-switch button {
  padding: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

body.auth-overlay-open {
  overflow: hidden;
}

@media (max-width: 1271px) {
  .hero-copy h1 { font-size: clamp(50px, 6.7vw, 92px); }
}

@media (max-width: 1252px) {
  .hero-copy h1 { font-size: clamp(50px, 6.6vw, 92px); }
}

@media (max-width: 1227px) {
  .hero-copy h1 { font-size: clamp(50px, 6.4vw, 92px); }
}

@media (max-width: 1185px) {
  .hero-copy h1 { font-size: clamp(50px, 6.0vw, 92px); }
}

@media (max-width: 1111px) {
  .hero-copy h1 { font-size: clamp(50px, 5.6vw, 92px); }
}

@media (max-width: 1060px) {

  .auth-overlay-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
  }
  .auth-overlay-backdrop {
    border-left: 0;
    /* background: rgba(6, 7, 8, .54); */
    backdrop-filter: blur(41px) saturate(352%) hue-rotate(-85deg) contrast(1.0);
    -webkit-backdrop-filter: blur(41px) saturate(352%) hue-rotate(-85deg) contrast(1.0);
    border-left: 1px solid rgba(255,255,255,.12);
  }
  .auth-overlay-content {
    width: min(100% - 24px, 520px);
  }
  .eyebrow-tabs { max-width: fit-content; margin: 0 auto; }
  .eyebrow-panel p { max-width: initial; }
  section.hero-copy.bun-hero-copy { text-align: center; }
  .page-shell { --max: 100%; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .nav-links, .menu-button { display: none; }
  .auth-links { display: flex; position: static; padding: 0; border: 0; background: transparent; }
  .landing-workspace { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .hero-copy { max-width: 900px; }
  .hero-lead { margin: 18px auto 0 auto; text-align: center; }
  .animated-terminal-card { justify-self: start; max-width: min(100%, 720px); }
  .animated-terminal-shell { height: 420px; }
  .animated-terminal-output { min-height: 0; }
  .hero-copy h1 { font-size: clamp(42px, 9vw, 74px); text-align: center;}
  .auth-layout { grid-template-columns: 1fr; gap: 26px; }
  .auth-intro h1 { font-size: clamp(44px, 9vw, 70px); }
  .install-toolbar { margin: 10px auto 0px auto; }
  .install-card-inner { text-align: center; }
  .install-code-block { border-radius: 10px; }
  section.animated-terminal-card { margin: 0 auto; }
}

@media (max-width: 780px) {

  .auth-overlay-content {
    background: none;
    align-self: stretch;
    justify-self: stretch;
    width: auto;
    margin: 66px 0 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top: 0;
    overflow-y: auto;
    box-shadow: none;
  }
  .inline-auth-intro h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  body { overflow: auto; }
  .eyebrow-panel { min-height: 61.7px; }
  .page-shell { padding: 12px; grid-template-rows: 54px auto; gap: 26px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 16px; }
  .hero-copy h1 { font-size: clamp(36px, 13vw, 54px); }
  .hero-lead { margin-top: 18px; }
  .eyebrow-tabs { gap: 12px 20px; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; }
  .eyebrow-panel { margin-top: 16px; }
  .install-card { margin-top: 28px; }
  .install-toolbar { gap: 10px; }
  .auth-card { padding: 18px; }
  .primary-button { min-height: 54px; }
}

@media (max-width: 576px) {
  .command-row code { font-size: clamp(12px, 1.6vw, 18px); }
}

@media (max-width: 520px) {
  .site-header { gap: 12px; }
  .auth-links { gap: 14px; }
  .auth-links a { font-size: 13px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 14px; }
  .install-code-block { grid-template-columns: 1fr; }
  .copy-command-button { min-height: 48px; border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
  .command-row { grid-template-columns: revert-rule; gap: 8px; }
  .prompt { font-size: 19px; }
  .command-row code { font-size: 14px; }
  .animated-terminal-shell { height: 410px; border-radius: 14px; }
  .animated-terminal-output { min-height: 0; padding: 16px; font-size: 11px; line-height: 1.55; }
}
