/* Mindlanterns landing — static, follows the Suite design system tokens
   (Mindlanterns Design System/tokens). Suite violet, cool ink chassis,
   lantern light pooling in the corners behind content. */

:root {
  --ink-0: #ffffff;
  --ink-50: #f7f8fb;
  --ink-100: #eef0f6;
  --ink-200: #dde0ec;
  --ink-300: #c7cbdd;
  --ink-600: #6a7090;
  --ink-700: #4c5170;
  --ink-800: #33374f;
  --ink-900: #1d2036;

  --accent: #7c5cfc;
  --accent-strong: #6a45f0;
  --accent-soft: #efeaff;
  --accent-glow: #9a7dff;
  --accent-ring: #7c5cfc59;
  --atmo-warm: #ffb9a8;
  --atmo-rose: #ffaad4;
  --atmo-cool: #b9c4ff;

  --bg: #fbfaf7;
  --surface: color-mix(in oklab, var(--ink-0) 82%, transparent);
  --surface-solid: var(--ink-0);
  --border: color-mix(in oklab, var(--ink-300) 60%, transparent);
  --heading: var(--ink-900);
  --body: var(--ink-800);
  --muted: var(--ink-600);
  --hero-image: url('/assets/lantern-hero.webp');
  --scene-image: url('/assets/scene-light.webp');
  --hero-fade: #fbfaf7;
  --shadow: 0 1px 2px #1d203614, 0 12px 32px -12px #1d203626;

  --font-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d16;
    --surface: color-mix(in oklab, #1c1f30 82%, transparent);
    --surface-solid: #161827;
    --border: color-mix(in oklab, #3c4268 70%, transparent);
    --heading: #f1f2fa;
    --body: #d4d7e8;
    --muted: #9ba0bd;
    --accent: #9a7dff;
    --accent-strong: #b8a3ff;
    --accent-soft: #2a2350;
    --hero-image: url('/assets/lantern-hero-dark.webp');
    --scene-image: url('/assets/scene-dark.webp');
    --hero-fade: #0c0d16;
    --shadow: 0 1px 2px #00000040, 0 16px 40px -16px #00000080;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

/* ---- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav a:not(.button):hover {
  color: var(--heading);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #8a6dfd, #6a45f0);
  box-shadow:
    0 1px 0 #ffffff33 inset,
    0 8px 20px -8px #6a45f0aa;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 #ffffff33 inset,
    0 12px 26px -10px #6a45f0cc;
}

.button.secondary {
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(720px, 88vh);
  display: flex;
  align-items: center;
  margin-top: -68px;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image) right center / auto 100% no-repeat;
}

/* The artwork fades into the page on its left and bottom edges, so text never sits on it. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--hero-fade) 38%, color-mix(in oklab, var(--hero-fade) 70%, transparent) 48%, transparent 66%),
    linear-gradient(0deg, var(--hero-fade) 0%, transparent 22%);
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  background: var(--accent-soft);
}

h1,
h2,
h3 {
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 750;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #8a6dfd, #e08ab8 70%, #f2a27a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 22px 0 32px;
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  max-width: 29em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Sections ---------------------------------------------------------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Apps grid */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.app {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.app:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.app img {
  flex: none;
  width: 44px;
  height: 44px;
}

.app h3 {
  margin: 2px 0 4px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.app p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* Spotlight */

.spotlight {
  position: relative;
  isolation: isolate;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 28px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.spotlight-copy {
  padding: clamp(28px, 5vw, 56px);
}

.spotlight-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.6vw, 40px);
}

.spotlight-copy > p {
  margin: 0 0 26px;
  color: var(--muted);
}

.spotlight-art {
  min-height: 320px;
  background: var(--scene-image) center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.point-icon {
  width: 40px;
  height: 40px;
}

.points strong {
  display: block;
  color: var(--heading);
  font-weight: 650;
}

.points span {
  font-size: 15px;
  color: var(--muted);
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.principle {
  padding-top: 20px;
  border-top: 2px solid var(--accent-soft);
}

.principle h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Closing call to action */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 96px 0 104px;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 50% 100%, color-mix(in oklab, var(--accent-glow) 34%, transparent), transparent 70%),
    radial-gradient(30% 40% at 30% 90%, color-mix(in oklab, var(--atmo-warm) 30%, transparent), transparent 70%),
    radial-gradient(30% 40% at 70% 90%, color-mix(in oklab, var(--atmo-rose) 26%, transparent), transparent 70%);
}

.closing h2 {
  margin: 0 auto 14px;
  max-width: 18em;
  font-size: clamp(30px, 4vw, 44px);
}

.closing p {
  margin: 0 auto 30px;
  max-width: 32em;
  color: var(--muted);
}

.closing .actions {
  justify-content: center;
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--heading);
}

/* ---- Document pages (privacy) ----------------------------------------- */

.doc {
  position: relative;
  isolation: isolate;
  padding: 56px 0 96px;
}

.doc::before {
  content: '';
  position: absolute;
  inset: -68px 0 auto;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 100% 0%, color-mix(in oklab, var(--accent-glow) 30%, transparent), transparent 70%),
    radial-gradient(40% 60% at 85% 10%, color-mix(in oklab, var(--atmo-warm) 26%, transparent), transparent 70%);
}

.doc article {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 50px);
  margin-bottom: 10px;
}

.doc .updated {
  margin: 0 0 40px;
  color: var(--muted);
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 650;
}

.doc p,
.doc li {
  color: var(--body);
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 8px;
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 860px) {
  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-art {
    order: -1;
    min-height: 200px;
    mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav a:not(.button) {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 108px 0 56px;
    align-items: flex-start;
  }

  /* On phones the artwork sits above the text and is dimmed. */
  .hero::before {
    background-size: 160% auto;
    background-position: 70% 0;
    opacity: 0.55;
  }

  .hero::after {
    background: linear-gradient(0deg, var(--hero-fade) 52%, color-mix(in oklab, var(--hero-fade) 30%, transparent) 100%);
  }

  .hero-copy {
    padding-top: 120px;
  }

  section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .app {
    transition: none;
  }
}
