:root {
  --black: #080807;
  --soft-black: #141412;
  --charcoal: #242421;
  --gray: #8f8d86;
  --soft-gray: #d8d6cf;
  --cream: #f3f0e8;
  --white: #ffffff;
  --line: rgba(243, 240, 232, 0.14);
  --radius: 6px;
  --header-h: 78px;
  --grid-shift: 0px;
  --rail-progress: 0%;
}

@font-face {
  font-family: "Climate Saga";
  src: url("assets/fonts/ClimateCrisis-Regular-VariableFont_YEAR.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Xanh Saga";
  src: url("assets/fonts/XanhMono-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Xanh Saga Regular";
  src: url("assets/fonts/XanhMono-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono Saga";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono Saga";
  src: url("assets/fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--black);
  font-family:
    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.onboarding-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(243, 240, 232, 0.16), transparent 24%),
    radial-gradient(circle at 9% 74%, rgba(243, 240, 232, 0.12), transparent 28%),
    var(--black);
}

.onboarding-page .cursor-light {
  display: none;
}

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

button {
  font: inherit;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.serif {
  font-family: "Xanh Saga", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  text-transform: none;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--black);
  transition:
    opacity 700ms ease,
    transform 900ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.preloader__grid,
.hero__grid,
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preloader__grid,
.hero__grid {
  opacity: 0.22;
  background-image: url("assets/grid-pattern.jpg");
  background-size: 520px auto;
  background-position: 0 var(--grid-shift);
  background-repeat: repeat;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.grain {
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06), transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05), transparent 1px);
  background-size: 5px 5px, 7px 7px;
}

.preloader__inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 24px;
  color: var(--soft-gray);
  font-size: 11px;
}

.preloader__mark-wrap {
  position: relative;
  width: min(32vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.preloader__mark {
  width: 78%;
  filter: drop-shadow(0 0 40px rgba(243, 240, 232, 0.26));
  animation: logoIntro 1.8s ease-in-out both;
}

.preloader__orbit,
.hero__orbit {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(243, 240, 232, 0.22);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(20deg);
}

.preloader__orbit--two {
  inset: 22%;
  transform: rotateX(74deg) rotateZ(-34deg);
}

.preloader__bar {
  width: min(320px, 72vw);
  height: 2px;
  overflow: hidden;
  background: rgba(243, 240, 232, 0.12);
}

.preloader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cream);
  transform-origin: left;
  animation: loadBar 1.6s ease-in-out both;
}

.cursor-light {
  position: fixed;
  z-index: 40;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(243, 240, 232, 0.2), transparent 66%);
  transition: opacity 180ms ease;
  mix-blend-mode: screen;
}

.cursor-light::after {
  content: attr(data-cursor);
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 54px;
  padding: 5px 8px;
  border: 1px solid rgba(243, 240, 232, 0.24);
  border-radius: 999px;
  color: rgba(243, 240, 232, 0.72);
  background: rgba(8, 8, 7, 0.42);
  font-family: "IBM Plex Mono Saga", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.cursor-light.is-visible {
  opacity: 1;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  padding-top: 92px;
  background: rgba(8, 8, 7, 0.62);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease;
}

.command-palette.is-open {
  opacity: 1;
  pointer-events: auto;
}

.command-palette__panel {
  width: min(92vw, 560px);
  padding: 10px;
  border: 1px solid rgba(243, 240, 232, 0.2);
  border-radius: var(--radius);
  background: rgba(20, 20, 18, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.command-palette__panel > p {
  padding: 14px 14px 10px;
  color: rgba(243, 240, 232, 0.52);
  font-size: 11px;
}

.command-palette button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  color: var(--cream);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.command-palette button:hover {
  color: var(--black);
  background: var(--cream);
}

.command-palette button span {
  color: var(--gray);
  font-family: "IBM Plex Mono Saga", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 3vw, 48px);
  color: var(--cream);
  backdrop-filter: blur(14px);
}

.section-rail {
  position: fixed;
  z-index: 19;
  right: clamp(18px, 2vw, 34px);
  top: 50%;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px;
  color: rgba(243, 240, 232, 0.56);
  pointer-events: none;
  transform: translateY(-50%);
}

.section-rail__track {
  position: relative;
  width: 2px;
  height: min(34vh, 250px);
  overflow: hidden;
  background: rgba(243, 240, 232, 0.12);
}

.section-rail__bar {
  position: absolute;
  inset: 0 0 auto;
  height: var(--rail-progress);
  background: linear-gradient(180deg, var(--cream), rgba(243, 240, 232, 0.12));
  box-shadow: 0 0 18px rgba(243, 240, 232, 0.24);
  transition: height 160ms ease;
}

.section-rail__label {
  writing-mode: vertical-rl;
  font-family: "IBM Plex Mono Saga", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-weight: 800;
  font-size: 14px;
}

.brand img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.desktop-nav {
  position: relative;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(243, 240, 232, 0.11);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(243, 240, 232, 0.075), rgba(243, 240, 232, 0.018)),
    rgba(8, 8, 7, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  color: rgba(243, 240, 232, 0.76);
  font-size: 12px;
  font-weight: 760;
}

.nav-indicator {
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 0;
  width: 0;
  height: calc(100% - 10px);
  border: 1px solid rgba(243, 240, 232, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(120deg, rgba(243, 240, 232, 0.18), rgba(243, 240, 232, 0.055)),
    rgba(243, 240, 232, 0.035);
  box-shadow:
    0 0 28px rgba(243, 240, 232, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition:
    opacity 180ms ease,
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desktop-nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a span {
  color: rgba(243, 240, 232, 0.36);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  opacity: 0;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  animation: navScan 560ms ease;
}

.desktop-nav a:hover span,
.desktop-nav a.is-active span {
  color: rgba(243, 240, 232, 0.72);
}

.desktop-nav.has-indicator .nav-indicator {
  opacity: 1;
}

.desktop-nav a,
.nav-cta,
.menu-button {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.desktop-nav a:hover {
  color: var(--white);
}

.desktop-nav a.is-active {
  color: var(--white);
}

.nav-cta,
.menu-button {
  justify-self: end;
  border: 1px solid rgba(243, 240, 232, 0.7);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(243, 240, 232, 0.06);
  color: var(--cream);
  font-weight: 750;
  font-size: 13px;
}

.nav-cta:hover,
.menu-button:hover {
  background: var(--cream);
  color: var(--black);
}

.header-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.auth-link,
.auth-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(243, 240, 232, 0.22);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(243, 240, 232, 0.04);
  font-weight: 800;
  cursor: pointer;
}

.auth-link {
  border-color: transparent;
  color: rgba(243, 240, 232, 0.72);
  background: transparent;
}

.auth-button {
  color: var(--black);
  background: var(--cream);
}

.menu-button {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 92px 24px 24px;
  background: rgba(8, 8, 7, 0.94);
  transform: translateY(-100%);
  transition: transform 300ms ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 34px;
  font-weight: 850;
}

.mobile-menu button {
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  background: transparent;
  text-align: left;
  font-size: 34px;
  font-weight: 850;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: clamp(12px, 2vw, 26px);
}

.auth-modal.is-open {
  display: grid;
  place-items: center;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
}

.auth-modal__panel {
  position: relative;
  width: min(1220px, 100%);
  max-height: min(920px, calc(100dvh - 24px));
  overflow: auto;
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(rgba(243, 240, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 82% 14%, rgba(243, 240, 232, 0.14), transparent 22%),
    var(--soft-black);
  background-size: 38px 38px, 38px 38px, auto, auto;
  box-shadow: 0 38px 140px rgba(0, 0, 0, 0.58);
}

.onboarding-page .auth-modal {
  position: relative;
  inset: auto;
  z-index: 1;
  display: grid;
  min-height: 100dvh;
  padding: clamp(14px, 2.4vw, 32px);
  place-items: center;
}

.onboarding-page .auth-modal::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("assets/grid-pattern.jpg");
  background-size: 520px auto;
}

.onboarding-page .auth-modal__panel {
  width: min(1280px, 100%);
  max-height: none;
  min-height: min(880px, calc(100dvh - clamp(28px, 4.8vw, 64px)));
}

.auth-modal__top {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(243, 240, 232, 0.12);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px);
}

.auth-top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-steps {
  display: flex;
  gap: 8px;
  color: rgba(243, 240, 232, 0.36);
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.auth-steps span + span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(243, 240, 232, 0.18);
}

.auth-steps span.is-active {
  color: var(--cream);
}

.auth-back,
.auth-close {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(243, 240, 232, 0.2);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(243, 240, 232, 0.04);
  font-weight: 800;
  cursor: pointer;
}

.auth-back {
  color: rgba(243, 240, 232, 0.72);
  background: transparent;
}

.auth-back:hover,
.auth-close:hover {
  color: var(--black);
  background: var(--cream);
}

.auth-screen {
  display: none;
  min-height: min(720px, calc(100dvh - 94px));
  padding: clamp(20px, 4vw, 52px);
}

.auth-screen.is-active {
  display: grid;
  gap: 28px;
}

.auth-screen--split {
  grid-template-columns: minmax(320px, 0.96fr) minmax(380px, 1fr);
  align-items: center;
  gap: clamp(20px, 3.6vw, 46px);
}

.auth-screen--center {
  place-items: center;
  text-align: center;
}

.auth-copy {
  max-width: 660px;
}

.auth-copy > .mono,
.auth-quiet > .mono,
.auth-payment .mono,
.auth-detail > .mono {
  color: rgba(243, 240, 232, 0.64);
  font-size: 11px;
  margin-bottom: 16px;
}

.auth-copy h2,
.auth-quiet h2,
.auth-payment h2 {
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 0.98;
}

.auth-copy p:not(.mono),
.auth-quiet p,
.auth-payment p {
  max-width: 600px;
  margin-top: 20px;
  color: rgba(243, 240, 232, 0.66);
  line-height: 1.55;
}

.auth-form,
.auth-quiet,
.auth-detail,
.auth-payment {
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(243, 240, 232, 0.07), transparent 54%),
    rgba(5, 5, 5, 0.62);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.34);
}

.auth-form {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  justify-self: center;
  padding: clamp(22px, 3vw, 34px);
}

.auth-form__head {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.auth-form__head .mono {
  color: rgba(243, 240, 232, 0.58);
  font-size: 10px;
}

.auth-form__head h2 {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-form__head p {
  margin: 0;
  max-width: 390px;
  color: rgba(243, 240, 232, 0.56);
  font-size: 13px;
  line-height: 1.45;
}

.auth-form__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 2px 0 6px;
}

.auth-form__switch button,
.auth-product,
.auth-plan,
.auth-primary {
  border: 1px solid rgba(243, 240, 232, 0.18);
  border-radius: 10px;
  color: var(--cream);
  background: rgba(243, 240, 232, 0.04);
  cursor: pointer;
}

.auth-form__switch button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
}

.auth-form__switch button.is-active,
.auth-primary {
  color: var(--black);
  border-color: var(--cream);
  background: var(--cream);
}

.auth-form label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(243, 240, 232, 0.66);
  font-size: 12px;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: 10px;
  color: var(--cream);
  background: rgba(243, 240, 232, 0.045);
  font-weight: 800;
  outline: 0;
}

.auth-primary {
  min-height: 52px;
  padding: 0 18px;
  font-weight: 900;
}

.auth-form > p {
  margin: 0;
  color: rgba(243, 240, 232, 0.42);
  font-size: 12px;
  line-height: 1.45;
}

.auth-quiet {
  width: min(600px, 100%);
  padding: clamp(24px, 5vw, 50px);
}

.auth-screen--account {
  align-items: stretch;
}

.auth-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.2);
  border-radius: 14px;
  padding: clamp(24px, 3.2vw, 40px);
  color: var(--black);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 70% 32%, rgba(161, 161, 154, 0.7), transparent 24%),
    radial-gradient(circle at 34% 74%, rgba(8, 8, 7, 0.8), transparent 34%),
    linear-gradient(135deg, #f7f4ec, #bbb8ad 46%, #f2efe7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(8, 8, 7, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 7, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1), #000);
}

.auth-visual__mark {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 1;
  font-family: "Climate Crisis Saga", Impact, sans-serif;
  font-size: 56px;
  line-height: 1;
}

.auth-visual__grid {
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(8, 8, 7, 0.08);
}

.auth-visual__copy {
  position: relative;
  z-index: 1;
  max-width: 430px;
}

.auth-visual__copy .mono {
  margin: 0 0 14px;
  color: rgba(8, 8, 7, 0.58);
}

.auth-visual__copy h2 {
  margin: 0;
  color: var(--cream);
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.02;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
}

.auth-visual__copy p {
  max-width: 360px;
  color: rgba(243, 240, 232, 0.72);
  line-height: 1.5;
}

.auth-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(243, 240, 232, 0.22);
  border-radius: 50%;
  font-family: "IBM Plex Mono Saga", monospace;
}

.auth-product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 16px;
}

.auth-product-list,
.auth-plan-grid {
  display: grid;
  gap: 12px;
}

.auth-product {
  min-height: 112px;
  padding: 18px;
  text-align: left;
}

.auth-product.is-active,
.auth-plan.is-active {
  color: var(--black);
  border-color: var(--cream);
  background: var(--cream);
}

.auth-product span,
.auth-product small,
.auth-plan span,
.auth-plan small {
  display: block;
}

.auth-product strong,
.auth-plan strong,
.auth-detail h3 {
  display: block;
  margin: 12px 0 8px;
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
}

.auth-product small,
.auth-plan small,
.auth-detail p {
  color: currentColor;
  opacity: 0.66;
  line-height: 1.45;
}

.auth-detail {
  min-height: 360px;
  padding: clamp(22px, 3vw, 34px);
}

.auth-detail ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.auth-detail li {
  padding: 12px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: 10px;
  color: rgba(243, 240, 232, 0.68);
}

.auth-plan-grid {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.auth-screen[data-auth-screen="plan"] {
  align-content: start;
}

.auth-screen[data-auth-screen="plan"] .auth-copy {
  max-width: 840px;
}

.auth-screen[data-auth-screen="plan"] .auth-copy h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  max-width: 760px;
}

.auth-screen[data-auth-screen="plan"] .auth-copy p:not(.mono) {
  max-width: 560px;
}

.auth-plan {
  min-height: 390px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  align-content: stretch;
  gap: 10px;
  padding: 20px;
  text-align: left;
}

.auth-plan-price {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 900;
}

.auth-plan-features {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid currentColor;
  list-style: none;
  color: currentColor;
  opacity: 0.74;
}

.auth-plan-features li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.38;
}

.auth-plan-features li::before {
  content: "/";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "IBM Plex Mono Saga", monospace;
  opacity: 0.72;
}

.auth-plan .auth-plan-cta {
  align-self: end;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.92;
}

.auth-payment {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 240px;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
}

.auth-summary {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.auth-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.12);
  color: rgba(243, 240, 232, 0.64);
}

.auth-summary strong {
  color: var(--cream);
}

.auth-qris {
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--cream);
}

.auth-qris span {
  background: var(--black);
}

.section {
  position: relative;
  padding: clamp(78px, 10vw, 150px) clamp(20px, 4vw, 56px);
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 0;
}

.section + .section {
  margin-top: -1px;
}

.section:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("assets/grid-pattern.jpg");
  background-size: 520px auto;
  background-position: 0 calc(var(--grid-shift) * -0.55);
  background-repeat: repeat;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.section:not(.hero)::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: clamp(84px, 12vw, 190px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(243, 240, 232, 0.07), transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(243, 240, 232, 0.09), transparent 58%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.98), transparent);
  opacity: 0.82;
}

.section > * {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: var(--header-h);
  background:
    radial-gradient(circle at 60% 42%, rgba(243, 240, 232, 0.22), transparent 22%),
    radial-gradient(circle at 36% 82%, rgba(216, 214, 207, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%),
    var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 14% -20% auto 44%;
  height: 44%;
  border: 1px solid rgba(243, 240, 232, 0.1);
  border-radius: 50%;
  transform: rotate(-9deg);
  filter: blur(0.2px);
  pointer-events: none;
}

.hero__mark-scene {
  position: absolute;
  z-index: 1;
  inset: -1% auto auto 39%;
  width: min(66vw, 940px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 1100px;
  opacity: 0.86;
}

.hero__three {
  position: absolute;
  inset: -10%;
  z-index: 1;
  width: 120%;
  height: 120%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}

body.three-ready .hero__three {
  opacity: 1;
}

body.model-loaded .hero__mark-rotor::before,
body.model-loaded .hero__mark-rotor::after {
  opacity: 0;
}

.hero__mark-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: heroLogoRotate 22s linear infinite;
  will-change: transform;
}

.hero__mark-rotor img {
  display: none;
}

.hero__mark-rotor::before,
.hero__mark-rotor::after {
  content: "";
  position: absolute;
  width: 84%;
  aspect-ratio: 1;
  -webkit-mask: url("assets/sagadevs-logo-alpha.png") center / contain no-repeat;
  mask: url("assets/sagadevs-logo-alpha.png") center / contain no-repeat;
}

.hero__mark-rotor::before {
  z-index: 2;
  background:
    linear-gradient(122deg, #5d5b55 0%, #f9f7ef 19%, #a5a39a 36%, #ffffff 50%, #72706a 67%, #f0ede2 82%, #44423d 100%);
  filter:
    drop-shadow(0 36px 74px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 34px rgba(243, 240, 232, 0.24));
  transform: translateZ(34px) rotateY(12deg) rotateX(5deg);
}

.hero__mark-rotor::after {
  z-index: 1;
  background: linear-gradient(120deg, #201f1d, #8b8981, #2c2b27);
  opacity: 0.46;
  transform: translate3d(22px, 18px, -18px) rotateY(12deg) rotateX(5deg);
  filter: blur(0.4px);
}

.hero__orbit--one {
  inset: 8%;
}

.hero__orbit--two {
  inset: 18%;
  transform: rotateX(68deg) rotateZ(-28deg);
  opacity: 0.58;
}

.hero__orbit--three {
  inset: 28%;
  transform: rotateX(76deg) rotateZ(58deg);
  opacity: 0.42;
}

.hero__content {
  position: relative;
  z-index: 4;
  width: min(1240px, 100%);
  padding-bottom: clamp(10px, 2vw, 28px);
}

.hero__eyebrow {
  color: var(--gray);
  font-size: 12px;
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  display: grid;
  max-width: 1220px;
  font-family:
    "Climate Saga", Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(44px, 8.6vw, 122px);
  font-weight: 400;
  line-height: 0.96;
  text-wrap: balance;
}

h1 .serif {
  font-size: 1.05em;
  line-height: 0.82;
  font-family: "Xanh Saga", Georgia, "Times New Roman", serif;
  font-weight: 500;
  transform: translateY(0.02em);
}

.hero__footer {
  display: grid;
  grid-template-columns: minmax(260px, 480px) auto;
  gap: 30px;
  align-items: end;
  margin-top: clamp(28px, 5vw, 66px);
}

.hero__footer p,
.section-heading > p,
.section-heading--split > p,
.system-card p,
.timeline-card small,
.service-card small {
  color: rgba(243, 240, 232, 0.72);
  line-height: 1.45;
  text-wrap: pretty;
}

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

.button,
.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  min-height: 48px;
  padding: 0 20px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button--primary {
  color: var(--black);
  background: var(--cream);
}

.button--ghost {
  color: var(--cream);
  border: 1px solid var(--line);
}

.button:hover,
.contact-cta:hover {
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  right: 34px;
  bottom: 34px;
  color: var(--gray);
  writing-mode: vertical-rl;
}

.hero__motion-tags {
  position: absolute;
  inset: auto 42px 162px auto;
  z-index: 3;
  display: grid;
  gap: 8px;
  color: rgba(243, 240, 232, 0.48);
  font-size: 10px;
  text-align: right;
}

.hero__motion-tags span {
  padding: 7px 9px;
  border: 1px solid rgba(243, 240, 232, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.28);
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 1060px;
  margin-bottom: clamp(34px, 5vw, 72px);
}

.section-heading--split {
  max-width: none;
  grid-template-columns: 1fr minmax(260px, 430px);
  align-items: end;
}

.section-heading .mono {
  color: var(--gray);
  font-size: 12px;
}

h2 {
  font-family:
    "Climate Saga", Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(34px, 5.4vw, 78px);
  line-height: 1.03;
  font-weight: 400;
  text-wrap: balance;
}

.distort-title {
  position: relative;
  cursor: none;
}

.distort-title .distort-word {
  display: inline-block;
  white-space: nowrap;
}

.distort-title .distort-char {
  display: inline-block;
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  transition:
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    color 220ms ease,
    text-shadow 220ms ease,
    filter 220ms ease;
  will-change: transform;
}

.distort-title .warp-cursor {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(243, 240, 232, 0.22);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(243, 240, 232, 0.16), rgba(243, 240, 232, 0.05) 42%, transparent 68%);
  box-shadow:
    0 0 40px rgba(243, 240, 232, 0.16),
    inset 0 0 22px rgba(243, 240, 232, 0.14);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(0.82);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.distort-title.is-warping .warp-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-card,
.timeline-card,
.system-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(243, 240, 232, 0.035);
  color: var(--cream);
  --spot-x: 50%;
  --spot-y: 50%;
}

.service-card::before,
.timeline-card::before,
.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(243, 240, 232, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(243, 240, 232, 0.08), transparent 48%);
  transition: opacity 180ms ease;
}

.service-card:hover::before,
.timeline-card:hover::before,
.system-card:hover::before,
.service-card.is-active::before,
.timeline-card.is-active::before {
  opacity: 1;
}

.service-card,
.timeline-card {
  min-height: 210px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
}

.service-card::after,
.system-card::after {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 180px;
  height: 180px;
  opacity: 0.05;
  background: url("assets/sagadevs-logo-alpha.png") center / contain no-repeat;
  transform: rotate(-18deg);
}

.service-card > *,
.timeline-card > *,
.system-card > * {
  position: relative;
  z-index: 1;
}

.service-card strong,
.timeline-card strong {
  display: block;
  margin: 50px 0 12px;
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 0.95;
}

.service-card strong,
.timeline-card strong {
  font-family: "IBM Plex Mono Saga", "SFMono-Regular", Consolas, monospace;
  font-weight: 600;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.05;
}

.service-card .mono,
.timeline-card .mono,
.system-card .mono {
  color: var(--gray);
  font-size: 11px;
}

.service-card.is-active,
.service-card:hover,
.timeline-card.is-active,
.timeline-card:hover,
.chip.is-selected,
.chip:hover {
  background: var(--cream);
  color: var(--black);
}

.service-card.is-active small,
.service-card:hover small,
.timeline-card.is-active small,
.timeline-card:hover small {
  color: rgba(8, 8, 7, 0.72);
}

.service-card:hover,
.timeline-card:hover,
.system-card:hover {
  transform: translateY(-4px);
}

.service-card,
.timeline-card,
.system-card,
.chip {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.system-map,
.systems,
.proof-lab,
.contact {
  background: var(--soft-black);
}

.system-map__canvas {
  position: relative;
  min-height: 680px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at var(--map-x, 50%) var(--map-y, 50%), rgba(243, 240, 232, 0.16), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(243, 240, 232, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(243, 240, 232, 0.04), transparent 44%),
    rgba(243, 240, 232, 0.025);
}

.system-map__canvas::before,
.system-map__canvas::after {
  content: "";
  position: absolute;
  inset: 50% 8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 240, 232, 0.38), transparent);
}

.system-map__canvas::after {
  inset: 8% auto 8% 50%;
  width: 1px;
  height: auto;
  background: linear-gradient(180deg, transparent, rgba(243, 240, 232, 0.28), transparent);
}

.map-orbit,
.map-lines,
.map-node-field,
.map-core {
  position: absolute;
}

.map-orbit {
  inset: clamp(44px, 5vw, 76px);
  pointer-events: none;
}

.map-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(243, 240, 232, 0.08);
  border-radius: 50%;
  transform: rotate(var(--orbit-rotate, 0deg)) scaleX(var(--orbit-x, 1));
}

.map-orbit span:nth-child(1) {
  --orbit-rotate: -18deg;
  --orbit-x: 0.76;
}

.map-orbit span:nth-child(2) {
  --orbit-rotate: 24deg;
  --orbit-x: 0.94;
}

.map-orbit span:nth-child(3) {
  --orbit-rotate: 84deg;
  --orbit-x: 0.58;
}

.map-lines {
  inset: clamp(42px, 5vw, 70px);
  width: calc(100% - clamp(84px, 10vw, 140px));
  height: calc(100% - clamp(84px, 10vw, 140px));
  pointer-events: none;
  overflow: visible;
}

.map-line {
  fill: none;
  stroke: rgba(243, 240, 232, 0.18);
  stroke-width: 0.42;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  transition:
    stroke 180ms ease,
    stroke-width 180ms ease,
    filter 180ms ease,
    opacity 180ms ease;
}

.map-line.is-active {
  stroke: rgba(243, 240, 232, 0.92);
  stroke-width: 0.8;
  filter: drop-shadow(0 0 10px rgba(243, 240, 232, 0.34));
  animation: mapPulse 1.9s linear infinite;
}

.map-node-field {
  inset: 0;
  z-index: 3;
}

.map-core {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(150px, 15vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 240, 232, 0.24);
  border-radius: 50%;
  color: var(--cream);
  background:
    radial-gradient(circle, rgba(243, 240, 232, 0.16), rgba(8, 8, 7, 0.4) 62%, transparent),
    rgba(8, 8, 7, 0.54);
  box-shadow:
    0 0 70px rgba(243, 240, 232, 0.08),
    inset 0 0 46px rgba(243, 240, 232, 0.08);
  transform: translate(-50%, -50%);
}

.map-core span,
.map-core strong,
.map-core small {
  grid-area: 1 / 1;
  font-family: "IBM Plex Mono Saga", monospace;
}

.map-core span {
  transform: translateY(-34px);
  color: rgba(243, 240, 232, 0.46);
  font-size: 12px;
}

.map-core strong {
  font-size: clamp(26px, 3.8vw, 54px);
}

.map-core small {
  transform: translateY(42px);
  color: rgba(243, 240, 232, 0.54);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.map-node {
  position: absolute;
  z-index: 2;
  width: min(25vw, 250px);
  min-height: 132px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-radius: var(--radius);
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(243, 240, 232, 0.06), transparent 52%),
    rgba(8, 8, 7, 0.62);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.map-node::before {
  content: "";
  position: absolute;
  inset: auto 18px 14px auto;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(243, 240, 232, 0.42);
  border-radius: 50%;
  background: rgba(243, 240, 232, 0.08);
  box-shadow: 0 0 0 0 rgba(243, 240, 232, 0.18);
}

.map-node:nth-child(1) {
  left: 7%;
  top: 11%;
}

.map-node:nth-child(2) {
  left: 5%;
  top: 42%;
}

.map-node:nth-child(3) {
  left: 8%;
  bottom: 10%;
}

.map-node:nth-child(4) {
  right: 7%;
  top: 11%;
}

.map-node:nth-child(5) {
  right: 5%;
  top: 42%;
}

.map-node:nth-child(6) {
  right: 8%;
  bottom: 10%;
}

.map-node span,
.map-node small {
  display: block;
}

.map-node span {
  color: var(--gray);
  margin-bottom: 16px;
}

.map-node small {
  margin-top: 10px;
  color: rgba(243, 240, 232, 0.62);
  line-height: 1.4;
}

.map-node:hover,
.map-node.is-active {
  color: var(--black);
  border-color: rgba(243, 240, 232, 0.9);
  background: var(--cream);
  transform: translateY(-6px) scale(1.015);
}

.map-node:hover small,
.map-node.is-active small {
  color: rgba(8, 8, 7, 0.68);
}

.map-node.is-dimmed {
  opacity: 0.46;
}

.map-node:hover::before,
.map-node.is-active::before {
  background: var(--black);
  border-color: rgba(8, 8, 7, 0.8);
  animation: nodePing 1.5s ease-out infinite;
}

.map-readout {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 3vw, 42px);
  z-index: 4;
  width: min(420px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(243, 240, 232, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(243, 240, 232, 0.1), transparent 58%),
    rgba(8, 8, 7, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
}

.map-readout strong {
  display: block;
  margin: 12px 0 8px;
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: clamp(22px, 2.1vw, 32px);
}

.map-readout p {
  color: rgba(243, 240, 232, 0.68);
  line-height: 1.5;
}

.map-readout__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.map-readout__meta span {
  padding: 9px 10px;
  border: 1px solid rgba(243, 240, 232, 0.12);
  border-radius: 999px;
  color: rgba(243, 240, 232, 0.7);
}

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

.system-card {
  min-height: 350px;
  padding: 26px;
  display: grid;
  align-content: end;
}

.system-card__preview {
  position: absolute;
  inset: 26px 26px auto auto;
  width: 132px;
  height: 112px;
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.system-card:hover .system-card__preview {
  opacity: 1;
  transform: translateY(0);
}

.system-card__preview span {
  border: 1px solid rgba(243, 240, 232, 0.18);
  background: rgba(243, 240, 232, 0.08);
}

[data-system-preview="book"] .system-card__preview {
  grid-template-columns: repeat(4, 1fr);
}

[data-system-preview="view"] .system-card__preview {
  grid-template-columns: repeat(2, 1fr);
}

[data-system-preview="boot"] .system-card__preview {
  grid-template-columns: repeat(4, 1fr);
  transform: rotate(-2deg) translateY(10px);
}

[data-system-preview="boot"]:hover .system-card__preview {
  transform: rotate(-2deg) translateY(0);
}

.system-card h3 {
  position: relative;
  z-index: 1;
  margin: 70px 0 8px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.9;
}

.system-card a {
  width: max-content;
  margin-top: 24px;
  color: var(--cream);
  border-bottom: 1px solid rgba(243, 240, 232, 0.4);
  font-weight: 750;
}

.product-pricing {
  margin-top: clamp(34px, 5vw, 70px);
  border-top: 1px solid rgba(243, 240, 232, 0.12);
  padding-top: clamp(24px, 4vw, 46px);
}

.pricing-switcher {
  width: max-content;
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: 999px;
  background: rgba(243, 240, 232, 0.035);
}

.pricing-switcher button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: rgba(243, 240, 232, 0.64);
  background: transparent;
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: 12px;
  cursor: pointer;
}

.pricing-switcher button.is-active {
  color: var(--black);
  background: var(--cream);
}

.pricing-panel {
  display: grid;
  gap: 16px;
}

.pricing-panel[hidden] {
  display: none;
}

.pricing-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 10px;
}

.pricing-panel__head h3 {
  max-width: 820px;
  margin: 10px 0 0;
  font-family: "Climate Saga", Impact, "Arial Black", sans-serif;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 0.98;
}

.pricing-panel__head p {
  color: rgba(243, 240, 232, 0.62);
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pricing-grid--four {
  grid-template-columns: 0.82fr repeat(3, 1fr);
}

.pricing-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  padding: 22px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(243, 240, 232, 0.065), transparent 56%),
    rgba(8, 8, 7, 0.54);
  color: var(--cream);
  --spot-x: 50%;
  --spot-y: 50%;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(243, 240, 232, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(243, 240, 232, 0.08), transparent 48%);
  transition: opacity 180ms ease;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 240, 232, 0.32);
}

.pricing-card--featured {
  color: var(--black);
  border-color: var(--cream);
  background: var(--cream);
}

.pricing-card--featured::before {
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(8, 8, 7, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(8, 8, 7, 0.05), transparent 48%);
}

.pricing-badge {
  width: max-content;
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.68;
}

.pricing-card strong {
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
}

.pricing-price {
  margin: -6px 0 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
}

.pricing-price small {
  color: currentColor;
  opacity: 0.58;
  font-size: 13px;
  font-weight: 800;
}

.pricing-card p:not(.pricing-price) {
  margin: 0;
  color: currentColor;
  opacity: 0.66;
  line-height: 1.44;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  color: currentColor;
  opacity: 0.72;
  font-size: 13px;
  line-height: 1.34;
}

.pricing-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.pricing-card a {
  align-self: end;
  min-height: 44px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  border: 1px solid currentColor;
  border-radius: 10px;
  color: currentColor;
  font-weight: 800;
  text-decoration: none;
}

.pricing-card--featured a {
  color: var(--cream);
  background: var(--black);
}

.pricing-addons {
  margin-top: 2px;
  padding: 18px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: var(--radius);
  background: rgba(243, 240, 232, 0.035);
}

.pricing-addons p {
  margin: 10px 0;
  color: rgba(243, 240, 232, 0.68);
  line-height: 1.5;
}

.pricing-addons small {
  color: rgba(243, 240, 232, 0.45);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  --timeline-progress: 10%;
}

.timeline::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 0;
  width: var(--timeline-progress);
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--cream), rgba(243, 240, 232, 0.18));
  box-shadow: 0 0 24px rgba(243, 240, 232, 0.24);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline::after {
  content: "";
  position: absolute;
  top: -26px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(243, 240, 232, 0.16);
}

.timeline-card {
  min-height: 260px;
}

.workflow-lab {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(243, 240, 232, 0.028);
  --workflow-mix: 56%;
}

.workflow-lab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: var(--workflow-mix);
  background:
    linear-gradient(90deg, rgba(243, 240, 232, 0.16), transparent),
    rgba(243, 240, 232, 0.035);
  border-right: 1px solid rgba(243, 240, 232, 0.32);
}

.workflow-stage {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 410px;
  padding: clamp(24px, 4vw, 46px);
}

.workflow-stage strong {
  max-width: 520px;
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1.04;
}

.workflow-stage small {
  color: rgba(243, 240, 232, 0.66);
  font-size: 15px;
}

.workflow-slider {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: min(420px, 72vw);
  accent-color: var(--cream);
  transform: translateX(-50%);
}

.mini-terminal {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 8, 7, 0.44);
  font-family: "IBM Plex Mono Saga", monospace;
}

.mini-terminal p {
  color: var(--gray);
  font-size: 11px;
  margin-bottom: 12px;
}

.mini-terminal span {
  display: block;
  color: rgba(243, 240, 232, 0.7);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(8px);
}

.mini-terminal.is-running span {
  animation: terminalLine 520ms ease forwards;
}

.mini-terminal.is-running span:nth-child(3) {
  animation-delay: 150ms;
}

.mini-terminal.is-running span:nth-child(4) {
  animation-delay: 300ms;
}

.mini-terminal.is-running span:nth-child(5) {
  animation-delay: 450ms;
}

.contact {
  min-height: 88dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}

.contact__mark {
  position: absolute;
  inset: 4% 4% auto auto;
  width: min(42vw, 560px);
  opacity: 0.08;
  animation: slowSpin 28s linear infinite;
}

.contact__mark img {
  width: 100%;
}

.contact > .mono {
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 22px;
}

.contact h2 {
  max-width: 1160px;
  margin-inline: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(28px, 5vw, 54px) 0 24px;
}

.command-status {
  min-height: 18px;
  margin: 0 0 18px;
  color: rgba(243, 240, 232, 0.54);
  font-family: "IBM Plex Mono Saga", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.brief-console {
  width: min(100%, 560px);
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-radius: var(--radius);
  background: rgba(243, 240, 232, 0.045);
}

.brief-console span,
.brief-console strong,
.brief-console small {
  display: block;
}

.brief-console span {
  color: var(--gray);
  font-size: 10px;
}

.brief-console strong {
  margin: 8px 0 4px;
  font-family: "IBM Plex Mono Saga", monospace;
  font-size: 22px;
}

.brief-console small {
  color: rgba(243, 240, 232, 0.64);
  line-height: 1.45;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 17px;
  background: rgba(243, 240, 232, 0.035);
  color: var(--cream);
  cursor: pointer;
}

.contact-cta {
  width: min(100%, 430px);
  min-height: 72px;
  gap: 20px;
  color: var(--black);
  background: var(--cream);
  font-size: clamp(22px, 3vw, 34px);
}

.contact-cta span {
  transition: transform 160ms ease;
}

.contact-cta:hover span {
  transform: translate(5px, -5px);
}

.reveal-target {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__content h1 > span {
  opacity: 0;
  transform: translateY(0.34em);
  animation: kineticRise 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__content h1 > span:nth-child(2) {
  animation-delay: 90ms;
}

.hero__content h1 > span:nth-child(3) {
  animation-delay: 180ms;
}

.hero__content h1 > span:nth-child(4) {
  animation-delay: 270ms;
}

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: rotateY(80deg) rotateX(28deg) scale(0.78);
  }
  65% {
    opacity: 1;
    transform: rotateY(-16deg) rotateX(12deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) rotateX(0deg) scale(1);
  }
}

@keyframes loadBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes heroLogoRotate {
  from {
    transform: rotateY(0deg) rotateX(10deg) rotateZ(-8deg);
  }
  to {
    transform: rotateY(360deg) rotateX(10deg) rotateZ(-8deg);
  }
}

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

@keyframes navScan {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes mapPulse {
  to {
    stroke-dashoffset: -18;
  }
}

@keyframes nodePing {
  0% {
    box-shadow: 0 0 0 0 rgba(8, 8, 7, 0.24);
  }

  100% {
    box-shadow: 0 0 0 13px rgba(8, 8, 7, 0);
  }
}

@keyframes kineticRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminalLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .cursor-light {
    display: none;
  }

  .reveal-target,
  .hero__content h1 > span,
  .distort-title .distort-char {
    opacity: 1 !important;
    transform: none !important;
    text-shadow: none !important;
    filter: none !important;
  }

  .distort-title .warp-cursor {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .section-rail {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .header-actions {
    gap: 8px;
  }

  .auth-link {
    display: none;
  }

  .nav-cta {
    padding-inline: 14px;
  }

  .auth-screen--split,
  .auth-product-layout,
  .auth-payment {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 380px;
  }

  .auth-form {
    justify-self: stretch;
    width: 100%;
  }

  .auth-plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__mark-scene {
    inset: 10% auto auto 18%;
    width: 72vw;
  }

  .service-grid,
  .system-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid,
  .pricing-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .map-node {
    width: min(34vw, 250px);
  }
}

@media (max-width: 860px) {
  .section-heading--split {
    grid-template-columns: 1fr;
  }

  .distort-title {
    cursor: auto;
  }

  .distort-title .distort-word,
  .distort-title .distort-char {
    display: inline;
    white-space: normal;
  }

  .distort-title .warp-cursor {
    display: none;
  }

  .hero__mark-scene {
    inset: 12% auto auto 50%;
    width: min(82vw, 560px);
    transform: translateX(-50%);
  }

  .contact__mark {
    right: -6vw;
    width: 68vw;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 74px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    padding: 0 16px;
  }

  .brand span {
    font-size: 13px;
  }

  .header-actions,
  .nav-cta {
    display: none;
  }

  .auth-modal {
    padding: 0;
  }

  .auth-modal__panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .auth-modal__top {
    height: 66px;
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .auth-top-actions {
    gap: 6px;
  }

  .auth-back,
  .auth-close {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .auth-steps {
    display: none;
  }

  .auth-screen {
    min-height: calc(100dvh - 66px);
    padding: 22px 16px 34px;
  }

  .auth-screen.is-active {
    gap: 18px;
  }

  .auth-copy h2,
  .auth-quiet h2,
  .auth-payment h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .auth-copy p:not(.mono),
  .auth-quiet p,
  .auth-payment p {
    margin-top: 14px;
  }

  .auth-form,
  .auth-quiet,
  .auth-detail,
  .auth-payment {
    border-radius: 10px;
  }

  .auth-form {
    padding: 18px;
  }

  .auth-visual {
    min-height: 220px;
    padding: 20px;
  }

  .auth-visual__mark {
    top: 18px;
    left: 20px;
    font-size: 42px;
  }

  .auth-visual__copy h2 {
    font-size: clamp(22px, 6.4vw, 30px);
  }

  .auth-visual__copy p {
    display: none;
  }

  .auth-form__switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .auth-product-layout,
  .auth-payment,
  .auth-plan-grid,
  .auth-detail ul {
    grid-template-columns: 1fr;
  }

  .auth-product,
  .auth-plan {
    min-height: auto;
  }

  .auth-detail {
    min-height: auto;
  }

  .auth-qris {
    width: min(240px, 100%);
    margin: auto;
  }

  .hero {
    min-height: 100svh;
    align-items: center;
    padding-bottom: 28px;
  }

  .hero__grid {
    background-size: 44px 44px;
  }

  .hero__mark-scene {
    inset: 16% auto auto 50%;
    width: min(92vw, 390px);
    transform: translateX(-50%);
    opacity: 0.66;
  }

  .hero__content {
    align-self: end;
  }

  .hero__eyebrow {
    font-size: 10px;
  }

  h1 {
    font-size: clamp(36px, 11.2vw, 50px);
    line-height: 1.02;
  }

  h1 .serif {
    font-size: 1.08em;
  }

  .hero__footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero__actions {
    width: 100%;
  }

  .button {
    flex: 1 1 150px;
  }

  .scroll-cue {
    right: 16px;
    bottom: 24px;
    font-size: 14px;
  }

  .section {
    padding: 104px 16px 72px;
    scroll-margin-top: 0;
  }

  .cursor-light {
    display: none;
  }

  h2 {
    font-size: clamp(31px, 9.9vw, 43px);
    line-height: 0.96;
    overflow-wrap: normal;
    word-break: normal;
  }

  .command-palette {
    padding: 84px 16px 0;
    place-items: start stretch;
  }

  .section-heading,
  .section-heading--split {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .system-row,
  .pricing-grid,
  .pricing-grid--four,
  .timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
  }

  .service-card,
  .system-card,
  .timeline-card {
    min-width: 0;
    width: 100%;
  }

  .service-card,
  .timeline-card {
    min-height: 230px;
  }

  .system-card {
    min-height: 320px;
  }

  .pricing-switcher {
    width: 100%;
  }

  .pricing-switcher button {
    flex: 1;
  }

  .pricing-panel__head {
    grid-template-columns: 1fr;
  }

  .pricing-panel__head h3 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .pricing-card {
    min-height: auto;
    padding: 18px;
  }

  .system-map__canvas {
    min-height: auto;
    padding: 16px;
  }

  .system-map__canvas::before,
  .system-map__canvas::after,
  .map-lines,
  .map-orbit {
    display: none;
  }

  .map-core {
    top: 112px;
    width: 142px;
    opacity: 0.82;
  }

  .map-node-field {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 196px;
  }

  .map-node,
  .map-node:nth-child(n) {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 92px;
    transform: none;
  }

  .map-node:hover,
  .map-node.is-active {
    transform: translateY(-4px);
  }

  .map-readout {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 16px;
    transform: none;
  }

  .map-readout__meta {
    grid-template-columns: 1fr;
  }

  .system-card__preview {
    width: 110px;
    height: 94px;
    opacity: 0.4;
  }

  .workflow-lab {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .workflow-lab::before {
    width: 100%;
    height: var(--workflow-mix);
    border-right: 0;
    border-bottom: 1px solid rgba(243, 240, 232, 0.32);
  }

  .workflow-stage {
    min-height: 300px;
    align-content: center;
    padding: 34px 24px;
  }

  .workflow-stage:last-of-type {
    padding-bottom: 92px;
  }

  .workflow-stage strong {
    font-size: clamp(22px, 6.8vw, 30px);
  }

  .workflow-slider {
    bottom: 28px;
    width: calc(100% - 76px);
  }

  .timeline::before {
    display: none;
  }

  .contact {
    min-height: 78svh;
  }

  .contact__mark {
    width: 92vw;
    inset: 12% auto auto 22%;
  }

  .chips {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .chip {
    white-space: nowrap;
  }

  .contact-cta {
    min-height: 64px;
    font-size: 22px;
  }

  .hero__motion-tags {
    display: none;
  }
}
