/* ===========================================================
   Launchd — marketing site
   Shares its token set with the console itself: same darks,
   same accent, same mono for data. The site is not a skin on
   top of the product — it's built from the same material.
=========================================================== */

:root{
  --bg: #0a0a0a;
  --bg-raised: #0e0e0f;
  --bg-sunken: #070707;
  --border: #1f1f22;
  --border-strong: #2a2a2e;
  --text: #fafafa;
  --text-dim: #9a9aa3;
  --text-dimmer: #75757d;
  --text-body: #c7c7cd;
  --accent: #a78bfa;
  --accent-soft: #1f1a33;
  --accent-text: #c4b5fd;
  --green: #3ecf8e;
  --amber: #f0b94e;
  --red: #ff8b84;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --measure: 62ch;
  --radius: 8px;
  --radius-sm: 6px;
  --edge: 1px solid var(--border);
}

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

html{
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection{ background: var(--accent); color: #140d26; }

/* Scrollbar — themed, not browser default */
::-webkit-scrollbar{ width: 12px; height: 12px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover{ background: #3a3a40; }
*{ scrollbar-color: var(--border-strong) var(--bg); scrollbar-width: thin; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

.mono{ font-family: var(--font-mono); }

h1, h2, h3, h4{
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p{ margin: 0; }

code{
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: #15151a;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent-text);
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.skip{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip:focus{ left: 0; }

.wrap{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons / inputs (same family as the console) ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #121213;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.btn:hover{ background: #1c1c1e; border-color: #46464b; }
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--text);
  border-color: var(--text);
  color: #0a0a0a;
}
.btn--primary:hover{ background: #e4e4e7; border-color: #e4e4e7; }

.btn--ghost{
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover{ background: var(--bg-raised); }

.btn--lg{ height: 46px; padding: 0 22px; font-size: 14.5px; }

.inp{
  height: 46px;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font-sans);
  padding: 0 14px;
  border-radius: var(--radius-sm);
}
.inp::placeholder{ color: var(--text-dim); }
.inp:focus{ border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(167,139,250,0.18); }

.tag-pill{
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--accent-text);
  background: var(--accent-soft);
}

/* ---------- header ---------- */

.site-head{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,7,0.86);
  backdrop-filter: blur(10px);
  border-bottom: var(--edge);
}

.site-head__row{
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.brand__mark{ color: var(--text); flex: none; }
.brand__word{ letter-spacing: -0.01em; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}
.main-nav a{
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.12s ease, background 0.12s ease;
}
.main-nav a:hover{ color: var(--text); background: var(--bg-raised); }

.site-head__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle{
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  margin-left: auto;
}

.mobile-nav{
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 18px;
  border-top: var(--edge);
}
.mobile-nav a{
  padding: 11px 4px;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 1px solid #151517;
}
.mobile-nav .btn{ margin-top: 12px; width: 100%; }

/* ---------- hero ---------- */

.hero{
  position: relative;
  padding: 88px 0 0;
  overflow: hidden;
}

.hero__grid{
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 780px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
  pointer-events: none;
}

.hero__inner{ position: relative; text-align: center; }

.hero__title{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin: 0 auto;
}

.hero__sub{
  margin: 26px auto 0;
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
}

.hero__ctas{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero__note{
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dimmer);
  font-family: var(--font-mono);
}

/* screenshots */

.shot{
  margin: 56px 0 0;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-sunken);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.03) inset,
    0 30px 60px -20px rgba(0,0,0,0.65),
    0 10px 24px -12px rgba(0,0,0,0.55);
}
.shot img{ width: 100%; height: auto; }

.shot--hero{ max-width: 980px; margin-left: auto; margin-right: auto; }

.shot--secondary{ margin: 0; }

/* ---------- split sections ---------- */

.split{ padding: 120px 0; border-top: var(--edge); }

.split__inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.split--reverse .split__inner{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--reverse .split__text{ order: 2; }
.split--reverse .split__art,
.split--reverse .shot--secondary{ order: 1; }

.split__text h2{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 16ch;
}

.split__text p{
  margin-top: 18px;
  max-width: var(--measure);
  color: var(--text-body);
  font-size: 15.5px;
  line-height: 1.7;
}

.check-list{
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--measure);
}
.check-list li{
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-body);
  padding-top: 14px;
  border-top: 1px solid #16161a;
}
.check-list li:first-child{ border-top: none; padding-top: 0; }
.check-list__tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  margin-right: 10px;
  vertical-align: 2px;
}

.split__art{ display: flex; align-items: center; justify-content: center; }

/* ---- tree-mock: a small, accurate replica of the console's own
   region tree, used to illustrate drag-and-drop between folders ---- */

.tree-mock{
  position: relative;
  width: 100%;
  max-width: 380px;
  padding-bottom: 54px; /* room for the ghost row below the card */
}

.tree-mock__card{
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 10px;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.6);
}

.tree-mock__row{
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-body);
}

.tree-mock__row + .tree-mock__row{ margin-top: 1px; }
.tree-mock__row--region{ font-weight: 600; color: var(--text); padding-left: 10px; }
.tree-mock__row--region.tree-mock__row--gap{ margin-top: 10px; }
.tree-mock__row--folder{ padding-left: 34px; }
.tree-mock__row--instance{ padding-left: 58px; font-size: 12.5px; }

.tree-mock__row--target{
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
}

.tree-mock__chevron{ color: var(--text-dim); flex: none; transform: rotate(90deg); }
.tree-mock__icon{ color: var(--text-dim); flex: none; }
.tree-mock__row--region .tree-mock__icon--region{ color: var(--accent); }

.tree-mock__name{ flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tree-mock__dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.tree-mock__dot--sm{ width: 5px; height: 5px; margin-left: auto; }
.tree-mock__dot--amber{ background: var(--amber); }

.tree-mock__count{ font-family: var(--font-mono); font-size: 11px; color: var(--text-dimmer); flex: none; }

.tree-mock__ghost{
  position: absolute;
  left: 54px;
  right: 10px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  background: #171032;
  border: 1px solid var(--accent);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.6), 0 0 0 4px rgba(167,139,250,0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.tree-mock__ghost .tree-mock__icon{ color: var(--accent-text); }
.tree-mock__ghost-dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; margin-left: auto; }

.tree-mock--play .tree-mock__ghost{
  animation: tree-mock-drag 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s 1 both;
}
.tree-mock--play .tree-mock__row--target{
  animation: tree-mock-drop 2.4s ease 0.4s 1 both;
}

@keyframes tree-mock-drag{
  0%   { transform: rotate(-1.5deg) translate(0, 0); opacity: 1; }
  46%  { transform: rotate(-1.5deg) translate(-42px, -417px); opacity: 1; }
  62%  { transform: rotate(0deg) translate(-42px, -417px) scale(0.97); opacity: 1; }
  80%  { transform: rotate(0deg) translate(-42px, -417px) scale(0.97); opacity: 0; }
  100% { transform: rotate(0deg) translate(-42px, -417px) scale(0.97); opacity: 0; }
}

@keyframes tree-mock-drop{
  0%, 58%  { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
  64%, 82% { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
  100%     { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
}

/* ---------- spotlights (animated major features) ---------- */

.spotlights{ padding: 120px 0; border-top: var(--edge); }
.spotlights h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; }
.spotlights__lede{ margin-top: 14px; color: var(--text-body); font-size: 15.5px; max-width: 56ch; }

.spotlight-grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: var(--edge);
}

.spotlight{
  background: var(--bg);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
}

.spotlight__art{
  height: 148px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.spotlight h3{ margin-top: 20px; font-size: 18.5px; }
.spotlight p{ margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--text-body); max-width: 50ch; }

/* -- anim: virtual machines -- */

.anim-vm{ width: 100%; padding: 0 18px; }
.anim-vm__row{ display: flex; align-items: center; gap: 9px; font-size: 13px; }
.anim-vm__dot{ width: 7px; height: 7px; border-radius: 50%; flex: none; animation: vm-dot 6s ease-in-out infinite; }
.anim-vm__name{ font-weight: 600; color: var(--text); }
.anim-vm__status{ position: relative; flex: 1 1 auto; height: 14px; }
.anim-vm__status-text{ position: absolute; left: 0; top: 0; font-size: 11.5px; color: var(--text-dimmer); opacity: 0; }
.anim-vm__status-text--a{ animation: vm-status-a 6s ease-in-out infinite; }
.anim-vm__status-text--b{ animation: vm-status-b 6s ease-in-out infinite; }
.anim-vm__status-text--c{ animation: vm-status-c 6s ease-in-out infinite; }
.anim-vm__bar{ margin-top: 14px; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.anim-vm__bar span{ display: block; height: 100%; border-radius: 2px; background: var(--accent); animation: vm-bar 6s ease-in-out infinite; }
.anim-vm__log{ margin-top: 14px; font-size: 11px; line-height: 1.7; color: var(--text-dimmer); height: 32px; }
.anim-vm__log-line{ display: block; opacity: 0; }
.anim-vm__log-line--a{ animation: vm-log-a 6s ease-in-out infinite; }
.anim-vm__log-line--b{ animation: vm-log-b 6s ease-in-out infinite; color: var(--green); }

@keyframes vm-dot{
  0%, 8%     { background: var(--text-dimmer); }
  28%, 48%   { background: var(--amber); }
  68%, 100%  { background: var(--green); }
}
@keyframes vm-status-a{ 0%,4% {opacity:0} 8%,24% {opacity:1} 28%,100% {opacity:0} }
@keyframes vm-status-b{ 0%,28% {opacity:0} 32%,44% {opacity:1} 48%,100% {opacity:0} }
@keyframes vm-status-c{ 0%,68% {opacity:0} 72%,96% {opacity:1} 100% {opacity:0} }
@keyframes vm-bar{ 0%,8% {width:8%} 48% {width:62%} 100% {width:100%} }
@keyframes vm-log-a{ 0%,30% {opacity:0} 34%,62% {opacity:1} 66%,100% {opacity:0} }
@keyframes vm-log-b{ 0%,66% {opacity:0} 70%,94% {opacity:1} 100% {opacity:0} }

/* -- anim: resize & snapshot -- */

.anim-snap{ position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.anim-snap__disk{ color: var(--accent-text); position: relative; z-index: 1; }
.anim-snap__ring{ position: absolute; inset: 0; color: var(--accent); opacity: 0; }
.anim-snap__ring--1{ animation: snap-ring 4.4s ease-out infinite; }
.anim-snap__ring--2{ animation: snap-ring 4.4s ease-out infinite 0.5s; }
@keyframes snap-ring{
  0%    { opacity: 0; transform: scale(0.5); }
  8%    { opacity: 0.7; transform: scale(0.6); }
  40%   { opacity: 0; transform: scale(1.5); }
  100%  { opacity: 0; transform: scale(1.5); }
}
.anim-snap__label{
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  color: var(--text-dimmer);
  white-space: nowrap;
  opacity: 0;
  animation: snap-label 4.4s ease infinite;
}
@keyframes snap-label{ 0%,6% {opacity:0} 14%,82% {opacity:1} 92%,100% {opacity:0} }

/* -- anim: networks -- */

.anim-net{ width: 86%; height: 86%; }

/* -- anim: hypervisor-level keys -- */

.keys-stage{
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  padding: 20px;
}
.anim-keys{ width: 100%; height: auto; display: block; }

/* ---------- categories (marketing overview, not a spec list) ---------- */

.categories{ padding: 120px 0; border-top: var(--edge); }
.categories h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; }
.categories__lede{ margin-top: 14px; color: var(--text-body); font-size: 15.5px; max-width: 56ch; }

.category-grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: var(--edge);
}

.category-card{ background: var(--bg); padding: 28px; }
.category-card h3{ font-size: 16.5px; }
.category-card p{ margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--text-body); }

/* ---------- request / CTA ---------- */

.request{
  padding: 120px 0 140px;
  border-top: var(--edge);
  text-align: center;
}
.request__inner{ max-width: 620px; }
.request h2{ font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.request p{ margin-top: 16px; color: var(--text-body); font-size: 15.5px; line-height: 1.65; }

.request__form{
  margin-top: 32px;
  display: flex;
  gap: 10px;
}
.request__form .inp{ flex: 1 1 auto; }
.request__form .btn{ flex: none; }

.request__status{
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 13.5px;
  font-family: var(--font-mono);
  color: var(--green);
}

/* ---------- footer ---------- */

.site-foot{ border-top: var(--edge); padding: 64px 0 0; background: var(--bg-sunken); }

.site-foot__inner{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 56px;
}

.site-foot__brand .brand{ color: var(--text); }
.site-foot__tag{ margin-top: 14px; color: var(--text-dim); font-size: 13.5px; max-width: 28ch; }

.site-foot__col{ display: flex; flex-direction: column; gap: 10px; }
.site-foot__col h4{ font-size: 12px; letter-spacing: 0.04em; color: var(--text-dimmer); margin-bottom: 4px; }
.site-foot__col a{ font-size: 13.5px; color: var(--text-dim); transition: color 0.12s ease; }
.site-foot__col a:hover{ color: var(--text); }

.site-foot__legal{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-top: var(--edge);
  font-size: 12.5px;
  color: var(--text-dimmer);
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 860px){
  .main-nav, .site-head__actions{ display: none; }
  .nav-toggle{ display: flex; }
  .mobile-nav.is-open{ display: flex; }

  .split__inner{ grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split__text{ order: 1; }
  .split--reverse .split__art, .split--reverse .shot--secondary{ order: 2; }
  .split__art{ display: none; }

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

  .site-foot__inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .hero{ padding-top: 56px; }
  .hero__title{ font-size: 2.3rem; }
  .hero__ctas{ flex-direction: column; align-items: stretch; }
  .hero__ctas .btn{ width: 100%; }
  .split, .spotlights, .categories{ padding: 76px 0; }
  .category-grid{ grid-template-columns: 1fr; }
  .request{ padding: 76px 0 96px; }
  .request__form{ flex-direction: column; }
  .site-foot__inner{ grid-template-columns: 1fr; }
}
