:root {
  color-scheme: dark;
  --night-950: #0b0b0c;
  --night-900: #1a1a1c;
  --night-850: #28292a;
  --night-800: #3a3a3c;
  --night-700: #57585b;
  --line: rgb(240 240 246 / 20%);
  --line-strong: rgb(240 240 246 / 36%);
  --paper: #f5f5f7;
  --paper-soft: #dcdce0;
  --mist: #bababc;
  --lavender: #9691c5;
  --logo-lavender: #aaa9ff;
  --lake: #e28f6c;
  --sun: #fdb462;
  --sun-light: #feca94;
  --pine: #9dbf76;
  --error: #f19ba5;
  --studio-deep: #0b0b0c;
  --studio-canvas: #1a1a1c;
  --studio-surface: #28292a;
  --studio-raised: #3a3a3c;
  --studio-line: rgb(240 240 246 / 24%);
  --font-sans: var(--brand-sans, Geist, Arial, sans-serif);
  --font-mono: var(--brand-mono, "IBM Plex Mono", monospace);
  --container: 1240px;
  --control-radius: 5px;
  --panel-radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--studio-canvas);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
input {
  border: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

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

img,
svg {
  display: block;
}

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

::selection {
  background: var(--sun);
  color: var(--night-950);
}

:focus-visible {
  outline: 2px solid var(--sun-light);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--night-950);
  font-weight: 650;
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.anchor-alias {
  position: absolute;
  top: 0;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(180deg, rgb(11 11 12 / 68%), transparent);
}

.nav-shell {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: lowercase;
}

.brand img {
  filter: drop-shadow(0 6px 18px rgb(74 55 141 / 30%));
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.primary-nav a,
.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--paper-soft);
  font-size: 0.875rem;
  font-weight: 520;
  transition: color 160ms ease-out;
}

.primary-nav a:hover,
.header-cta:hover {
  color: var(--paper);
}

.header-cta {
  padding-inline: 17px;
  border: 1px solid rgb(255 232 190 / 45%);
  border-radius: var(--control-radius);
  background: rgb(20 21 55 / 24%);
}

.header-cta:hover {
  border-color: rgb(255 232 190 / 70%);
  background: rgb(20 21 55 / 38%);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background:
    url("assets/twilight-lake.jpg?v=lowpoly-dusk") center center / cover no-repeat,
    var(--night-800);
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(11 11 12 / 88%) 0%, rgb(16 14 20 / 80%) 38%, rgb(30 24 34 / 64%) 57%, rgb(109 89 111 / 20%) 70%, transparent 80%),
    linear-gradient(180deg, rgb(11 11 12 / 20%) 0%, transparent 42%, rgb(26 26 28 / 34%) 78%, rgb(11 11 12 / 72%) 100%);
}

.hero-content {
  display: flex;
  min-height: max(720px, 100svh);
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 144px;
  padding-bottom: 34px;
}

.hero-copy {
  width: min(720px, 68%);
  margin-bottom: auto;
  padding-top: clamp(70px, 10vh, 120px);
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(4.5rem, 7.2vw, 6rem);
  font-weight: 620;
  letter-spacing: -0.058em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgb(12 15 40 / 36%);
}

.hero h1 span {
  color: var(--logo-lavender);
}

.hero-copy > p {
  max-width: 610px;
  margin-top: 28px;
  color: var(--paper-soft);
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 2px 15px rgb(12 15 40 / 50%);
}

.signup-form {
  width: min(100%, 570px);
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--paper-soft);
  font-size: 0.78rem;
  font-weight: 550;
}

.signup-form-hero {
  margin-top: 34px;
}

.signup-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgb(243 238 255 / 45%);
  border-radius: 8px;
  background: rgb(26 26 28 / 68%);
  box-shadow: 0 16px 44px rgb(11 11 12 / 18%);
}

.signup-control:focus-within {
  border-color: var(--sun-light);
  box-shadow: 0 0 0 2px rgb(254 202 148 / 18%), 0 16px 44px rgb(11 11 12 / 18%);
}

.signup-control input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--paper);
  font-size: 1rem;
}

.signup-control input::placeholder {
  color: #c5c5d8;
}

.signup-control input:focus-visible {
  outline: 0;
}

.signup-control input[aria-invalid="true"] {
  outline: 2px solid var(--error);
  outline-offset: -2px;
}

.signup-control button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 19px;
  border-radius: var(--control-radius);
  background: var(--sun);
  color: var(--night-950);
  font-size: 0.88rem;
  font-weight: 680;
  transition: background 160ms ease-out, transform 160ms ease-out;
}

.signup-control button:hover {
  background: var(--sun-light);
}

.signup-control button:active {
  transform: translateY(1px);
}

.signup-control button:disabled {
  opacity: 0.7;
}

.form-status {
  min-height: 25px;
  margin-top: 7px;
  font-size: 0.78rem;
}

.form-status[data-state="success"] {
  color: #d5f0df;
}

.form-status[data-state="error"] {
  color: var(--error);
}

.form-note {
  color: #cacadc;
  font-size: 0.75rem;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgb(235 231 255 / 28%);
  color: var(--paper-soft);
  font-size: 0.82rem;
}

.hero-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--paper);
}

.pitch-section,
.features-section {
  position: relative;
  --line: var(--studio-line);
  --line-strong: rgb(240 240 246 / 28%);
  --mist: #bababc;
  --paper-soft: #dcdce0;
}

.pitch-section {
  padding: 118px 0 110px;
  background:
    radial-gradient(circle at 92% 6%, rgb(226 143 108 / 13%), transparent 28%),
    radial-gradient(circle at 8% 86%, rgb(150 145 197 / 8%), transparent 32%),
    linear-gradient(180deg, #303032 0%, #202022 100%);
}

.pitch-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 211 151 / 55%), transparent);
  content: "";
}

.pitch-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 50px;
}

.pitch-intro h2,
.foundation-intro h2,
.compact-cta h2 {
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
  font-weight: 590;
  letter-spacing: -0.052em;
  line-height: 1.02;
  text-wrap: balance;
}

.pitch-intro p,
.foundation-intro p {
  color: var(--mist);
  font-size: 1.03rem;
  line-height: 1.75;
}

.box-overview-preview {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--panel-radius);
  background: var(--studio-surface);
  box-shadow: 0 34px 90px rgb(8 12 33 / 28%);
}

.box-overview-preview img {
  width: 100%;
  height: auto;
}

.box-overview-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.box-overview-preview figcaption strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.box-overview-preview figcaption span {
  color: var(--mist);
  font-size: 0.78rem;
  text-align: right;
}

.workspace-scene {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--panel-radius);
  background: var(--studio-surface);
  box-shadow: 0 34px 90px rgb(8 12 33 / 28%);
}

.workspace-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--studio-deep);
}

.workspace-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-identity strong,
.workspace-identity span {
  display: block;
}

.workspace-identity strong {
  font-size: 0.92rem;
  font-weight: 580;
}

.workspace-identity span,
.workspace-count {
  color: var(--mist);
  font-size: 0.75rem;
}

.workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
}

.app-list {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.app-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 102px;
  align-items: center;
  gap: 14px;
  padding: 16px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.app-list article + article {
  margin-top: 5px;
}

.app-list article.selected {
  border-color: var(--line);
  background: var(--studio-raised);
}

.app-mark {
  display: inline-flex;
  width: 42px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 14px 8px;
  font-size: 1.06rem;
  font-weight: 650;
}

.app-mark-todo {
  background: rgb(178 165 237 / 16%);
  color: #d4c9ff;
}

.app-mark-rss {
  background: rgb(126 160 142 / 18%);
  color: #b7d4c2;
}

.app-mark-bills {
  background: rgb(246 187 104 / 14%);
  color: var(--sun-light);
}

.app-list h3 {
  font-size: 1.01rem;
  font-weight: 570;
}

.app-list p {
  margin-top: 4px;
  color: var(--mist);
  font-size: 0.78rem;
  line-height: 1.5;
}

.audience {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--paper-soft);
  font-size: 0.75rem;
}

.audience::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentcolor;
  content: "";
}

.audience-private {
  color: #cabfff;
}

.audience-shared {
  color: #b8d8c3;
}

.audience-public {
  color: var(--sun-light);
}

.app-detail {
  padding: 34px 36px 30px;
}

.app-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.detail-label {
  color: var(--mist);
  font-size: 0.75rem;
}

.app-detail h3 {
  margin-top: 4px;
  font-size: 1.9rem;
  font-weight: 570;
  letter-spacing: -0.035em;
}

.app-detail-heading p {
  margin-top: 4px;
  color: var(--mist);
  font-size: 0.78rem;
}

.runtime {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--paper-soft);
  font-size: 0.75rem;
}

.runtime i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 3px rgb(126 160 142 / 12%);
}

.app-detail dl {
  margin-top: 10px;
}

.app-detail dl div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.app-detail dt {
  color: var(--mist);
}

.app-detail dd {
  text-align: right;
}

.source-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--lake);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.source-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-detail code {
  color: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.continuity {
  margin-top: 22px;
  color: var(--paper-soft);
  font-size: 0.78rem;
  line-height: 1.7;
}

.audience-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.audience-path div {
  min-height: 122px;
  padding: 22px 26px 20px;
}

.audience-path div + div {
  border-left: 1px solid var(--line);
}

.audience-path span {
  color: var(--sun-light);
  font-size: 0.78rem;
  font-weight: 620;
}

.audience-path p {
  margin-top: 8px;
  color: var(--paper-soft);
  font-size: 0.9rem;
}

.features-section {
  padding: 112px 0 80px;
  background:
    radial-gradient(circle at 12% 8%, rgb(150 145 197 / 9%), transparent 30%),
    linear-gradient(180deg, #202022 0%, #151516 100%);
}

.foundation-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 88px;
  align-items: end;
}

.foundation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 72px;
  margin-top: 68px;
}

.foundation-list article {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
  gap: 25px;
  padding: 25px 0 28px;
  border-top: 1px solid var(--line);
}

.foundation-list h3 {
  font-size: 0.92rem;
  font-weight: 590;
}

.foundation-list p {
  color: var(--mist);
  font-size: 0.82rem;
  line-height: 1.7;
}

.compact-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: 70px;
  align-items: center;
  margin-top: 70px;
  padding: 42px 46px;
  border: 1px solid rgb(183 183 255 / 36%);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at 12% 18%, rgb(183 183 255 / 18%), transparent 34%),
    linear-gradient(115deg, rgb(74 62 102 / 96%), rgb(78 57 82 / 96%) 58%, rgb(90 64 63 / 94%)),
    var(--studio-raised);
  box-shadow: 0 26px 70px rgb(7 11 29 / 24%);
}

.compact-cta h2 {
  font-size: clamp(2.25rem, 3.5vw, 3.65rem);
}

.compact-cta > div > p {
  margin-top: 12px;
  color: var(--paper-soft);
}

.signup-form-final {
  justify-self: end;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--studio-deep);
}

.footer-layout {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 28px;
  color: var(--mist);
  font-size: 0.75rem;
}

.footer-layout .brand {
  color: var(--paper);
  font-size: 1.15rem;
}

.footer-layout > p {
  margin-left: 12px;
}

.footer-layout > div {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.footer-layout a:not(.brand):hover {
  color: var(--paper);
}

@media (max-width: 980px) {
  .hero-copy {
    width: min(730px, 78%);
  }

  .pitch-intro,
  .foundation-intro {
    gap: 48px;
  }

  .workspace-body {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  }

  .app-list article {
    grid-template-columns: 39px minmax(0, 1fr);
  }

  .app-list .audience {
    grid-column: 2;
    justify-self: start;
  }

  .foundation-list {
    column-gap: 42px;
  }

  .foundation-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .compact-cta {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .signup-form-final {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 38px), var(--container));
  }

  .nav-shell {
    min-height: 76px;
    gap: 14px;
  }

  .brand {
    font-size: 1.25rem;
  }

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

  .primary-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
    padding-inline: 12px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: max(690px, 100svh);
    background-position: 53% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgb(11 11 12 / 52%) 0%, rgb(40 34 42 / 52%) 40%, rgb(26 26 28 / 78%) 72%, rgb(11 11 12 / 90%) 100%),
      linear-gradient(90deg, rgb(11 11 12 / 58%), transparent 92%);
  }

  .hero-content {
    min-height: max(690px, 100svh);
    padding-top: 104px;
    padding-bottom: 18px;
  }

  .hero-copy {
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 0;
  }

  .hero h1 {
    max-width: 550px;
    font-size: clamp(3.35rem, 14.5vw, 4.3rem);
    line-height: 0.98;
  }

  .hero-copy > p {
    max-width: 500px;
    margin-top: 19px;
    font-size: 1rem;
  }

  .signup-form-hero {
    margin-top: 25px;
  }

  .signup-control {
    grid-template-columns: 1fr;
    background: rgb(26 26 28 / 78%);
  }

  .signup-control button {
    width: 100%;
  }

  .form-status {
    min-height: 21px;
  }

  .hero-footer {
    margin-top: 18px;
    padding-top: 12px;
    font-size: 0.75rem;
  }

  .hero-footer p {
    max-width: 190px;
  }

  .pitch-section,
  .features-section {
    padding-top: 78px;
    padding-bottom: 72px;
  }

  .pitch-intro,
  .foundation-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 35px;
  }

  .pitch-intro h2,
  .foundation-intro h2 {
    font-size: 2.65rem;
  }

  .pitch-intro p,
  .foundation-intro p {
    font-size: 0.95rem;
  }

  .box-overview-preview figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 15px 17px;
  }

  .box-overview-preview figcaption span {
    text-align: left;
  }

  .workspace-header {
    min-height: 68px;
    padding: 13px 15px;
  }

  .workspace-count {
    max-width: 80px;
    text-align: right;
  }

  .workspace-body {
    grid-template-columns: 1fr;
  }

  .app-list {
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-list article {
    min-height: 88px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 11px 9px;
  }

  .app-list .audience {
    grid-column: auto;
    justify-self: auto;
  }

  .app-list p {
    display: none;
  }

  .app-mark {
    width: 38px;
    height: 41px;
  }

  .app-detail {
    padding: 27px 21px 24px;
  }

  .app-detail dl div {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .audience-path {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .audience-path div {
    min-height: auto;
    padding: 19px 2px;
  }

  .audience-path div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .foundation-list {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .foundation-list article {
    padding: 21px 0;
  }

  .compact-cta {
    gap: 25px;
    margin-top: 48px;
    padding: 29px 22px;
  }

  .compact-cta h2 {
    font-size: 2.35rem;
  }

  .footer-layout {
    min-height: 112px;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 21px 0;
  }

  .footer-layout > p {
    flex-basis: 100%;
    order: 3;
    margin-left: 0;
  }
}

@media (max-width: 430px) {
  .header-cta {
    max-width: 126px;
    text-align: center;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-footer a {
    max-width: 100px;
    text-align: right;
  }

  .workspace-identity span {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-list article {
    grid-template-columns: 37px minmax(0, 1fr) 67px;
    gap: 9px;
  }

  .audience {
    justify-content: center;
    padding-inline: 6px;
  }

  .app-detail-heading {
    display: block;
  }

  .runtime {
    margin-top: 12px;
  }

  .signup-form-final .signup-control {
    grid-template-columns: 1fr;
  }

  .footer-layout > div {
    gap: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
