:root {
  /* Type — Literata (serif display) + IBM Plex Sans (UI/body), from 0001.myelinos.com */
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-ui: "IBM Plex Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Palette from 0001.myelinos.com (background forced to white) */
  --ink: #181716;          /* text primary */
  --muted: #6e6965;        /* text secondary */
  --border: #ddd8d3;
  --accent: #d95c82;
  --accent-live: #ea5b91;
  --accent-hover: #b94168;
  --accent-soft: #f8e8ed;
  --wine: #b94168;         /* deep-rose stamp */
  --page: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 27px 44px 22px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-os {
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: .03em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  margin-right: 4px;
  font-size: 1.24rem;
  font-weight: 600;
}

.top-nav a,
.top-nav .nav-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.top-nav .nav-status { cursor: default; }

.top-nav svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: currentColor;
}

.content-shell {
  width: min(83.4vw, 1708px);
  margin-inline: auto;
}

.hero {
  padding-top: 104px;
}

.hero h1 {
  max-width: 1450px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 4.3vw, 5.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.05em;
}

.hero-copy {
  margin: 31px 0 0;
  max-width: 1230px;
  color: var(--muted);
  font-size: clamp(1.38rem, 1.68vw, 2.15rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 47px;
  min-height: 58px;
  padding: 0 22px;
  border: 2px solid var(--accent);
  border-radius: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.cta:hover {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 8rem);
  margin-top: 133px;
}

.features h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.82vw, 2.36rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.features p {
  margin: 41px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.22vw, 1.55rem);
  line-height: 1.55;
}

.features p a {
  color: var(--accent);
  white-space: nowrap;
}

.art-stage {
  position: relative;
  width: 100vw;
  height: clamp(650px, 38vw, 790px);
  margin-top: 85px;
  overflow: hidden;
}

.figure {
  position: absolute;
  bottom: -1px;
  display: block;
  height: auto;
  user-select: none;
}

.figure-man {
  left: 0;
  width: min(32.3vw, 660px);
}

.figure-dog {
  left: 34.2vw;
  width: min(32.3vw, 660px);
}

.origin-note {
  position: absolute;
  left: 67.3vw;
  top: 25.5%;
  margin: 0;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.25vw, 1.62rem);
  line-height: 1.75;
}

@media (max-width: 1050px) {
  .site-header { padding-inline: 24px; }
  .top-nav { gap: 24px; font-size: 1rem; }
  .content-shell { width: min(88vw, 900px); }
  .desktop-break { display: none; }
  .features { gap: 36px; }
  .features h2 { font-size: 1.55rem; }
  .features p { font-size: 1rem; }
  .art-stage { height: 560px; }
  .origin-note { top: 18%; }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 82px;
    align-items: flex-start;
    padding: 20px;
  }

  .brand-name { font-size: 1.55rem; }
  .brand-os { font-size: 1.2rem; }
  .top-nav { gap: 14px; }
  .top-nav .nav-status > span { display: none; }
  .top-nav a,
  .top-nav .nav-status { gap: 6px; }
  .top-nav svg { width: 18px; height: 18px; }

  .content-shell { width: calc(100% - 40px); }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.4rem); }
  .hero-copy { margin-top: 24px; font-size: 1.15rem; }
  .cta { margin-top: 32px; min-height: 50px; font-size: 1.1rem; }

  .features {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-top: 90px;
  }

  .features h2 { font-size: 1.8rem; }
  .features p { margin-top: 22px; font-size: 1.08rem; }

  .art-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    height: 420px;
    margin-top: 60px;
  }

  .figure {
    position: relative;
    left: auto;
    bottom: -1px;
    width: 118%;
    max-width: none;
  }

  .figure-man { justify-self: end; transform: translateX(-10%); }
  .figure-dog { justify-self: start; transform: translateX(-12%); }
  .origin-note { display: none; }
}

/* ---- Apply for early access modal (glass) ---- */
body.modal-open { overflow: hidden; }

.apply-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.apply-overlay[hidden] { display: none; }

.apply-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  animation: apply-fade .22s ease both;
}

.apply-dialog {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  padding: clamp(40px, 6vw, 76px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 40px 100px rgba(24, 23, 22, 0.16);
  backdrop-filter: blur(44px) saturate(160%);
  -webkit-backdrop-filter: blur(44px) saturate(160%);
  animation: apply-rise .28s cubic-bezier(.2, .8, .24, 1) both;
}

.apply-close {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease;
}

.apply-close:hover { color: var(--ink); }

.apply-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.apply-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.apply-input {
  display: block;
  width: 100%;
  margin-top: 18px;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(24, 23, 22, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.apply-input:first-of-type { margin-top: 34px; }

.apply-input::placeholder { color: #8b8782; }

.apply-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.apply-turnstile {
  margin-top: 22px;
  min-height: 65px;
}

.apply-error {
  margin: 18px 0 0;
  color: var(--accent-hover);
  font-size: .92rem;
  line-height: 1.45;
}

.apply-error[hidden] { display: none; }

/* Same outlined-accent style as the "Apply for early access" CTA, with square corners */
.apply-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  min-height: 58px;
  padding: 0 22px;
  border: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.apply-submit:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-1px);
}

.apply-submit:disabled { opacity: .6; cursor: default; transform: none; }

.apply-success[hidden] { display: none; }

@keyframes apply-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes apply-rise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
