:root {
  color-scheme: light dark;

  --nav-bg: rgba(253, 245, 237, 0.8);
  --background: #fdf5ed;
  --background-02: #ffefdf;
  --background-02-translucent: rgba(255, 235, 214, 0.6);
  --background-03: #e6d7c9;
  --background-yellow: #fdf2c4;
  --background-red: #ffcccc;
  --background-blue: #ddf4e7;

  --foreground: #542e71;
  --foreground-02: #999999;
  --foreground-04: #542e71;
  --foreground-yellow: #998238;
  --foreground-red: #96313d;
  --foreground-blue: #1e6499;

  --border-01: #e3dcd5;
  --border-02: #2a2d3d;
  --separator: #dddddd;
  --separator-02: rgba(0, 0, 0, 0.05);
  --link: #146c94;
  --circle-track: rgba(215, 195, 177, 0.6);
  --circle-progress: #8f0177;

  --intense: #be3144;

  --black-01: #000000;
  --gray-01: #4c4c4c;

  --yellow-01: #ffdb4f;
  --yellow-02: #f9ce28;
  --yellow-03: #f8d18d;

  --pink-01: #d1146f;

  --blue-01: #155e95;

  --shadow: 0 20px 60px rgba(46, 34, 24, 0.12);

  --radius: 20px;
  --content-width: 1100px;
}

@supports selector(:has(*)) {
  :root:has(#theme-light:checked) {
    color-scheme: light;
  }

  :root:has(#theme-dark:checked) {
    color-scheme: dark;

    --nav-bg: rgba(42, 45, 61, 0.8);
    --background: #2a2d3d;
    --background-02: #3f4250;
    --background-02-translucent: rgba(77, 80, 93, 0.6);
    --background-03: #525562;
    --background-yellow: #40360b;
    --background-red: #431210;
    --background-blue: #041c2e;

    --foreground: #fdf5ed;
    --foreground-02: #696c77;
    --foreground-04: #a888b5;
    --foreground-yellow: #f8d648;
    --foreground-red: #eb4b42;
    --foreground-blue: #7ebcdf;

    --border-01: #3f4250;
    --border-02: #b1b1b1;
    --separator: #3f4250;
    --separator-02: rgba(255, 255, 255, 0.1);
    --link: #f7db6a;
    --circle-track: rgba(77, 80, 93, 0.6);
    --circle-progress: #def9c4;

    --intense: #ffdb4f;

    --black-01: #ffffff;
    --gray-01: #bebebe;

    --yellow-01: #ffdb4f;
    --yellow-02: #f9ce28;
    --yellow-03: #937834;

    --pink-01: #d1146f;

    --blue-01: #5b8eb4;

    --shadow: 0 24px 80px rgba(5, 6, 8, 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Avenir Next", sans-serif;
}

body {
  margin: 0;
  color: var(--black-01);
  background: var(--background);
  min-height: 100vh;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 50vh;
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--foreground-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

main {
  padding: 0 1.5rem 6rem;
}

.showcase {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--foreground-blue);
}

.showcase-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.subhead {
  margin: 0;
  color: var(--gray-01);
  font-size: 1.05rem;
}

.shot-stack {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 2;
}

.shot-scatter {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(0.5rem, 1vw, 1.5rem);
  position: relative;
  z-index: 1;
}

.shot-card {
  flex: 1 1 120px;
  max-width: 180px;
  width: min(180px, 20vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  border: 1px solid var(--border-01);
  object-fit: cover;
  background: var(--background-02);
  transform: translateY(var(--y, 0px)) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
}

.shot {
  width: min(300px, 70vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  border: 1px solid var(--border-01);
  object-fit: cover;
  box-shadow: var(--shadow);
  background: var(--background-02);
}

.shot-center {
  position: relative;
  z-index: 3;
}

.shot-left,
.shot-right {
  position: absolute;
  top: 120px;
  z-index: 1;
}

.shot-left {
  left: 6%;
  transform: translateY(-80px) rotate(-8deg);
}

.shot-right {
  right: 6%;
  transform:  translateY(-80px) rotate(8deg);
  z-index: 2;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
}

.feature-list li {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border-01);
  background: var(--background-02);
  color: var(--black-01);
}

.legal {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.legal-body {
  display: grid;
  gap: 1.5rem;
}

.legal-section {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-01);
  background: var(--background-02);
  box-shadow: var(--shadow);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.legal-section p {
  margin: 0.5rem 0 0;
  color: var(--gray-01);
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--gray-01);
}

.legal-section li + li {
  margin-top: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--black-01);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
}

.nav-button.ghost {
  color: var(--text);
}

.nav-button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.app-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-mark {
  height: 24px;
  width: auto;
  display: block;
  color: var(--black-01);
  transform: translateY(2px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--background-02);
  border: 1px solid var(--border-01);
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.theme-toggle label {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-01);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.theme-toggle input:checked + label {
  background: var(--foreground);
  color: var(--background);
}

.theme-toggle input:focus-visible + label {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .shot-stack {
    min-height: 460px;
  }

  .shot-scatter {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .shot-card {
    width: min(180px, 46vw);
  }

  .shot {
    width: min(240px, 72vw);
  }

  .shot-left {
    left: 0;
    top: 140px;
  }

  .shot-right {
    right: 0;
    top: 150px;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-button {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }

  .theme-toggle {
    gap: 0.15rem;
  }

  .theme-toggle label {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .legal {
    padding-top: 3rem;
  }
}
