:root {
  color-scheme: dark;
  --ink: #fcf5ef;
  --ink-soft: rgba(252, 245, 239, 0.72);
  --ink-muted: rgba(252, 245, 239, 0.52);
  --paper: #0a0a0a;
  --panel: #171717;
  --panel-2: #212121;
  --line: rgba(252, 245, 239, 0.16);
  --bronze: #e8ba90;
  --bronze-strong: #ff7b1a;
  --sage: #a8b9a0;
  --blue: #8fb3c9;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body::selection {
  background: var(--bronze);
  color: #1e1e1e;
}

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

p,
li {
  color: var(--ink-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(10, 10, 10, 0.68);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.brand img,
.site-footer img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--ink-soft);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--bronze);
}

.header-cta,
.button,
.store-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.header-cta {
  padding: 10px 14px;
  color: #1f1712;
  background: var(--bronze);
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero picture,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero picture {
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.46) 54%, rgba(10, 10, 10, 0.16)),
    linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 142px 0 86px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(54px, 9vw, 116px);
}

h2 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 66px);
}

h3 {
  font-size: clamp(22px, 3vw, 30px);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
}

.button.primary {
  color: #21140d;
  background: var(--bronze);
  border-color: transparent;
}

.button.secondary {
  background: rgba(252, 245, 239, 0.08);
}

.band,
.showcase,
.security,
.app-preview {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 4vw, 48px);
}

.band {
  background: #111;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.intro-grid,
.showcase,
.split,
.security-grid,
.preview-stage,
.site-footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 14px;
}

.section-heading.narrow {
  max-width: 760px;
  text-align: center;
}

.section-heading.narrow p {
  margin-inline: auto;
}

.intro-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-grid article,
.security-grid article {
  min-height: 270px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--panel);
}

.number {
  display: block;
  margin-bottom: 58px;
  color: var(--bronze);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.showcase {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(42px, 7vw, 86px);
  align-items: center;
}

.showcase-copy p:not(.eyebrow),
.text-panel p,
.preview-copy p,
.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 22px;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
}

.phone {
  width: min(290px, 42vw);
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  border: 1px solid rgba(252, 245, 239, 0.22);
  border-radius: 34px;
  background: #050505;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.phone.tall {
  transform: translateY(-28px);
}

.phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: top center;
}

.phone picture,
.screen-phone picture,
.media-panel picture {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
}

.phone-screen span {
  color: rgba(252, 245, 239, 0.7);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.phone-screen strong {
  max-width: 100%;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 500;
}

.screen-daynotes {
  background-image: linear-gradient(0deg, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.16)), image-set(url("./assets/daynotes-background.webp") type("image/webp"), url("./assets/daynotes-background.png") type("image/png"));
}

.screen-vault {
  background-image: linear-gradient(0deg, rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.22)), image-set(url("./assets/vault.webp") type("image/webp"), url("./assets/vault.jpeg") type("image/jpeg"));
}

.screen-lastmatters {
  background-image: linear-gradient(0deg, rgba(10, 10, 10, 0.84), rgba(10, 10, 10, 0.12)), image-set(url("./assets/blurry-background.webp") type("image/webp"), url("./assets/blurry-background.png") type("image/png"));
}

.split {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.media-panel {
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 999px;
  background: var(--sage);
}

.security {
  background: #0d0d0d;
}

.security-grid article:nth-child(2) {
  background: #191919;
}

.app-preview {
  padding-top: 40px;
}

.screens-section {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 4vw, 48px);
  background: #0a0a0a;
}

.screens-grid {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin: 54px auto 0;
}

.screen-feature {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  min-height: 360px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.screen-feature.large {
  grid-row: span 2;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 738px;
  background:
    linear-gradient(145deg, rgba(232, 186, 144, 0.11), rgba(23, 23, 23, 0.96) 46%),
    var(--panel);
}

.screen-phone {
  width: min(245px, 100%);
  aspect-ratio: 1500 / 3248;
  padding: 8px;
  border: 1px solid rgba(252, 245, 239, 0.18);
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.38);
}

.screen-phone.small {
  width: 180px;
}

.screen-phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
  object-position: top center;
}

.screen-feature h3 {
  max-width: 360px;
}

.screen-feature p:not(.eyebrow) {
  max-width: 400px;
  margin-top: 14px;
}

.preview-stage {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.landscape-card {
  width: min(320px, 100%);
  margin-inline: auto;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-row span {
  min-width: 142px;
  padding: 13px 18px;
  text-align: center;
  background: #080808;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 36px clamp(18px, 4vw, 48px) 46px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

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

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-inner {
    padding-top: 88px;
  }

  .band,
  .showcase,
  .security,
  .app-preview,
  .screens-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .intro-grid,
  .security-grid,
  .showcase,
  .split,
  .preview-stage,
  .screens-grid,
  .screen-feature,
  .screen-feature.large {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .security-grid {
    margin-top: 32px;
  }

  .intro-grid article,
  .security-grid article {
    min-height: 0;
    padding: 26px 32px;
  }

  .number {
    margin-bottom: 28px;
  }

  .showcase {
    padding-inline: 18px;
    gap: 32px;
  }

  .phone-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .phone {
    flex: 0 0 250px;
    width: 250px;
  }

  .phone.tall {
    transform: none;
  }

  .media-panel,
  .media-panel img {
    min-height: 360px;
  }

  .split {
    gap: 30px;
  }

  .check-list {
    margin-top: 24px;
  }

  .screens-grid {
    gap: 14px;
    margin-top: 32px;
  }

  .screen-feature,
  .screen-feature.large {
    min-height: auto;
    gap: 20px;
    padding: 22px;
  }

  .screens-section {
    padding-bottom: 24px;
  }

  .app-preview {
    padding-top: 24px;
  }

  .screen-phone,
  .screen-phone.small {
    width: min(260px, 100%);
    margin-inline: auto;
  }

  .preview-stage {
    gap: 28px;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .header-cta {
    padding-inline: 12px;
  }

  .hero-actions,
  .store-row {
    flex-direction: column;
  }

  .button,
  .store-row span {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
