:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --bg-panel: #0b0b0b;
  --line: rgba(243, 237, 229, 0.11);
  --line-strong: rgba(243, 237, 229, 0.24);
  --text: #f3ede5;
  --text-muted: #beb3a4;
  --text-soft: #81786f;
  --accent: #ddd0be;
  --accent-soft: rgba(221, 208, 190, 0.08);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content-width: min(1180px, calc(100vw - 3rem));
  --sans: "Atkinson Hyperlegible", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

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

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

.page-shell {
  overflow: clip;
}

.site-header,
.section,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.96rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.8rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.nav-cta {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

.section {
  padding: 6.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 8vw, 6.6rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.hero-text,
.feature-copy p,
.showcase-card p,
.statement-grid p,
.founder-card p,
.contact-panel p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  line-height: 1.8;
}

.hero-text {
  max-width: 42rem;
  margin: 1.7rem 0 0;
}

.hero-actions,
.contact-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.96rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.button-primary {
  background: linear-gradient(180deg, #dfbe90 0%, #c89c63 100%);
  color: #140f0a;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.hero-notes li {
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.hero-frame,
.demo-panel,
.showcase-card,
.feature-visual,
.cta-panel,
.founder-card,
.contact-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.hero-frame {
  padding: 1.1rem;
}

.device-frame {
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.editor-mockup {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  min-height: 38rem;
}

.editor-screenshot-frame {
  position: relative;
  min-height: 38rem;
  background: #080808;
  overflow: hidden;
}

.editor-screenshot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.5), rgba(8, 8, 8, 0.24)),
    url("img/hero-editor-screenshot.png") center center / cover no-repeat;
  transform: scale(1.08);
  filter: blur(18px) saturate(0.75) brightness(0.7);
  pointer-events: none;
}

.editor-screenshot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0) 72%, rgba(8, 8, 8, 0.22) 84%, rgba(8, 8, 8, 0.62) 93%, #080808 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 237, 229, 0.04);
  pointer-events: none;
}

.editor-screenshot {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: auto;
  height: 100%;
  max-width: none;
  filter: saturate(0.94) brightness(0.96) contrast(0.98);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 76%, rgba(0, 0, 0, 0.72) 89%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 76%, rgba(0, 0, 0, 0.72) 89%, transparent 100%);
}

.mockup-sidebar,
.mockup-editor {
  padding: 1.4rem;
}

.mockup-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background: #0b0b0b;
}

.mockup-label,
.surface-title,
.curve-legend,
.editor-head span,
.feature-visual-privacy span {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

.tree-item {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding: 0.95rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.015);
}

.tree-item-active {
  border-color: var(--line);
  background: var(--accent-soft);
}

.tree-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.editor-head p {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.editor-page {
  max-width: 36rem;
  margin-top: 2rem;
  color: #d6c9b9;
  font-size: 1.1rem;
  line-height: 1.95;
}

.editor-page p + p {
  margin-top: 1.4rem;
}

.editor-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.editor-metrics > div,
.showcase-surface,
.feature-visual {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
}

.editor-metrics > div {
  padding: 1rem;
}

.curve,
.feature-visual-curve::before,
.feature-visual-curve::after {
  height: 4.7rem;
  margin-top: 0.9rem;
  border-radius: 1rem;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.curve-main,
.feature-visual-curve::before {
  background-image:
    linear-gradient(180deg, transparent, rgba(221, 208, 190, 0.04)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath d='M8 88 C58 92 72 48 122 46 S202 112 234 78 S304 20 392 32' fill='none' stroke='%23ddd0be' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.curve-alt,
.feature-visual-curve::after {
  background-image:
    linear-gradient(180deg, transparent, rgba(221, 208, 190, 0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath d='M12 74 C62 34 94 102 142 86 S214 34 262 50 S322 96 390 64' fill='none' stroke='%23766e66' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.4rem;
  max-width: 44rem;
}

.demo-panel,
.cta-panel,
.contact-panel {
  padding: 1.2rem;
}

.demo-screen {
  min-height: 34rem;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, #111111 0%, #090909 100%);
}

.demo-overlay {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  min-height: inherit;
  padding: 2rem;
  text-align: center;
}

.play-button {
  width: 5.75rem;
  height: 5.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.play-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
  border-left: 1.2rem solid var(--text);
  transform: translate(-35%, -50%);
}

.demo-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  font-weight: 700;
}

.demo-copy {
  max-width: 34rem;
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.showcase-card {
  padding: 1.2rem;
}

.showcase-card-wide {
  grid-column: 1 / -1;
}

.showcase-card h3 {
  margin-top: 0.8rem;
}

.showcase-card p {
  margin: 0.7rem 0 0;
}

.showcase-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.showcase-card:has(.showcase-pair) .showcase-surface {
  min-height: auto;
}

.showcase-surface {
  min-height: 20rem;
  padding: 1.2rem;
}

.showcase-shot {
  padding: 0.75rem;
  overflow: hidden;
  background: #0a0a0a;
}

.showcase-pair > div {
  min-height: auto;
  min-width: 0;
}

.showcase-shot img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  transform: none;
  border-radius: calc(var(--radius-md) - 8px);
  filter: brightness(0.94) saturate(0.92);
  background: #111111;
}

.showcase-shot-character img {
  width: 96%;
  margin: 0 auto 0 0;
}

.showcase-shot-places img {
  width: 100%;
  margin: 0;
}

.showcase-shot-progress img {
  min-height: 20rem;
  object-position: center center;
  transform: scale(1.02);
  filter: brightness(0.98) saturate(0.9);
  background: #151515;
}

.showcase-shot-journal img {
  object-position: center top;
  transform: scale(1.01);
  filter: brightness(0.98) saturate(0.88);
  background: #151515;
}

.showcase-pair-rituals {
  align-items: stretch;
}

.showcase-pair-rituals > div {
  border-radius: calc(var(--radius-md) - 8px);
  overflow: hidden;
  background: #111111;
}

.showcase-shot-journal img,
.showcase-shot-mood img {
  width: 100%;
}

.showcase-shot-mood img {
  object-position: center center;
  transform: scale(1);
  filter: brightness(0.98) saturate(0.88);
  background: #151515;
}

.surface-title {
  margin-bottom: 1.15rem;
}

.surface-list {
  display: grid;
  gap: 0.8rem;
}

.surface-list span,
.privacy-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: #ded4c8;
}

.surface-list span:nth-child(2),
.surface-list span:nth-child(3) {
  margin-left: 1.2rem;
}

.surface-list span:nth-child(4),
.surface-list span:nth-child(5) {
  margin-left: 2.4rem;
}

.scene-bars {
  display: grid;
  gap: 0.9rem;
  align-content: end;
  min-height: 14rem;
}

.scene-bars span {
  display: block;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(221, 208, 190, 0.82), rgba(221, 208, 190, 0.16));
}

.scene-bars span:nth-child(1) { width: 62%; }
.scene-bars span:nth-child(2) { width: 85%; }
.scene-bars span:nth-child(3) { width: 48%; }
.scene-bars span:nth-child(4) { width: 93%; }
.scene-bars span:nth-child(5) { width: 70%; }
.scene-bars span:nth-child(6) { width: 56%; }

.privacy-stack {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.showcase-tree {
  background: rgba(255, 255, 255, 0.01);
}

.showcase-scenes {
  background: rgba(255, 255, 255, 0.01);
}

.showcase-privacy {
  background: rgba(255, 255, 255, 0.01);
}

.feature-stack {
  display: grid;
  gap: 1.25rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.feature-row-reverse {
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 0.9fr);
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-row-reverse .feature-visual {
  order: 1;
}

.feature-copy,
.statement-grid,
.founder-card,
.contact-panel,
.cta-panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #080808;
}

.feature-copy p {
  margin: 1rem 0 0;
}

.feature-visual {
  min-height: 18rem;
  padding: 1.4rem;
}

.feature-visual-tree {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0.12rem, transparent 0.12rem) 2.4rem 1.4rem / 4.2rem 3.1rem no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0.12rem, transparent 0.12rem) 2.4rem 4.4rem / 0.12rem 7.5rem no-repeat,
    radial-gradient(circle at 4rem 5.1rem, rgba(221, 208, 190, 0.84) 0 0.55rem, transparent 0.58rem),
    radial-gradient(circle at 8.2rem 8.2rem, rgba(255, 255, 255, 0.5) 0 0.42rem, transparent 0.45rem),
    radial-gradient(circle at 8.2rem 11.3rem, rgba(255, 255, 255, 0.5) 0 0.42rem, transparent 0.45rem),
    rgba(255, 255, 255, 0.01);
}

.feature-visual-scenes {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent) 8% 16% / 86% 1px no-repeat,
    linear-gradient(90deg, rgba(221, 208, 190, 0.94) 0 32%, rgba(255, 255, 255, 0.06) 32% 100%) 8% 28% / 84% 2.4rem no-repeat,
    linear-gradient(90deg, rgba(221, 208, 190, 0.72) 0 18%, rgba(255, 255, 255, 0.06) 18% 100%) 8% 46% / 84% 2.4rem no-repeat,
    linear-gradient(90deg, rgba(221, 208, 190, 0.84) 0 52%, rgba(255, 255, 255, 0.06) 52% 100%) 8% 64% / 84% 2.4rem no-repeat,
    linear-gradient(90deg, rgba(221, 208, 190, 0.62) 0 27%, rgba(255, 255, 255, 0.06) 27% 100%) 8% 82% / 84% 2.4rem no-repeat,
    rgba(255, 255, 255, 0.01);
}

.feature-visual-curve {
  display: grid;
  align-content: end;
}

.feature-visual-curve::before,
.feature-visual-curve::after {
  content: "";
}

.feature-visual-curve::after {
  height: 3.6rem;
}

.feature-visual-privacy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
}

.feature-visual-privacy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.statement-section {
  text-align: left;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.statement-grid p,
.founder-card p,
.contact-panel p {
  margin: 0;
}

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.founder-card {
  max-width: 54rem;
}

.founder-card p + p {
  margin-top: 1rem;
}

.founder-signoff {
  color: var(--accent);
}

.contact-panel a[href^="mailto:"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(214, 177, 123, 0.45);
  text-underline-offset: 0.18em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.4rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-meta a {
  color: var(--text-muted);
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--text);
}

.legal-page {
  min-height: calc(100vh - 10rem);
}

.legal-card {
  max-width: 52rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #080808;
  box-shadow: var(--shadow);
}

.legal-copy {
  margin-top: 1.8rem;
}

.legal-copy h2 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.legal-copy p {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.8;
}

@media (max-width: 1080px) {
  .hero,
  .feature-row,
  .feature-row-reverse,
  .statement-grid,
  .cta-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .feature-visual {
    order: initial;
  }

  .cta-panel,
  .site-footer {
    display: grid;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .editor-mockup {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .editor-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --content-width: min(100vw - 1.4rem, 1180px);
    --radius-lg: 24px;
    --radius-md: 18px;
  }

  .section {
    padding: 4.8rem 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero-text,
  .feature-copy p,
  .showcase-card p,
  .statement-grid p,
  .founder-card p,
  .contact-panel p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.88rem;
  }

  .feature-copy,
  .statement-grid,
  .founder-card,
  .contact-panel,
  .cta-panel,
  .showcase-card,
  .demo-panel,
  .hero-frame {
    padding: 1rem;
  }

  .mockup-sidebar,
  .mockup-editor,
  .feature-visual {
    padding: 1rem;
  }

  .demo-screen {
    min-height: 24rem;
  }

  .showcase-pair {
    grid-template-columns: 1fr;
  }
}
