:root {
  color-scheme: dark;
  --paper: #07111f;
  --panel: rgba(12, 25, 43, 0.84);
  --ink: #f2f7fb;
  --line: rgba(165, 205, 226, 0.2);
  --muted: #91a6b8;
  --accent: #63e6c6;
  --accent-soft: rgba(99, 230, 198, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 14% 8%, rgba(43, 111, 164, 0.28), transparent 34rem),
    radial-gradient(circle at 90% 42%, rgba(40, 180, 157, 0.12), transparent 30rem),
    linear-gradient(145deg, #07111f 0%, #0a1627 48%, #07101c 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  background-image:
    linear-gradient(rgba(151, 204, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 204, 226, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.landing {
  display: grid;
  min-height: 62svh;
  place-items: center;
  position: relative;
  padding: 3rem 1.5rem;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.075em;
  line-height: 0.9;
  margin: 0;
  background: linear-gradient(105deg, #ffffff 18%, #bdebe4 62%, #7bbbd2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 2.5rem rgba(99, 230, 198, 0.12));
}

.section-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 2rem;
  color: inherit;
  display: flex;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.55rem 0.85rem;
  position: absolute;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.section-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.section-link span {
  display: inline-block;
  margin-left: 0.25rem;
}

.apps {
  background: linear-gradient(180deg, rgba(10, 23, 40, 0.3), rgba(5, 14, 26, 0.72));
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 4rem) clamp(4rem, 10vw, 8rem);
}

.section-heading,
.app-gallery,
.site-footer {
  margin-inline: auto;
  max-width: 80rem;
}

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

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

.section-heading h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.055em;
}

.app-gallery {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
}

.gallery-frame {
  aspect-ratio: 4 / 3;
  background: #dedbd2;
  border: 1px solid rgba(180, 221, 239, 0.2);
  border-radius: 1.15rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gallery-item:hover .gallery-frame {
  border-color: rgba(99, 230, 198, 0.55);
  box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, 0.34), 0 0 2.5rem rgba(99, 230, 198, 0.07);
  transform: translateY(-0.25rem);
}

.gallery-frame--binsday {
  background: #75d3ef;
}

.binsday-icon {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.binsday-screen {
  bottom: -10%;
  filter: drop-shadow(0 1.25rem 1rem rgba(0, 0, 0, 0.22));
  height: 76%;
  object-fit: contain;
  position: absolute;
  right: 5%;
  transform: rotate(2deg);
  width: auto;
}

.gallery-frame--mytagen {
  background: #0e1728;
}

.gallery-frame--mytagen img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-cta {
  align-items: center;
  backdrop-filter: blur(0.75rem);
  background: rgba(5, 17, 29, 0.82);
  border: 1px solid rgba(99, 230, 198, 0.65);
  border-radius: 999px;
  color: var(--ink);
  display: flex;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  gap: 0.7rem;
  justify-content: center;
  letter-spacing: 0.08em;
  min-width: 9.5rem;
  padding: 0.65rem 0.8rem 0.65rem 1rem;
  position: absolute;
  right: 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
  top: 1.25rem;
  z-index: 2;
}

.gallery-cta span {
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: 2.15rem;
  font-weight: 300;
  line-height: 0.75;
}

.gallery-cta::before {
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(99, 230, 198, 0.55);
  content: "";
  height: 0.45rem;
  width: 0.45rem;
}

.gallery-cta:hover {
  background: var(--accent);
  color: #06131d;
}

figcaption {
  display: flex;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  justify-content: space-between;
  letter-spacing: 0.02em;
  padding-top: 0.8rem;
}

figcaption span:last-child {
  color: var(--muted);
  text-align: right;
}

.site-footer {
  align-items: center;
  background: rgba(5, 14, 25, 0.72);
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 0.85rem;
  justify-content: space-between;
  padding: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  display: flex;
  gap: 1.25rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.text-button,
.inline-button,
.close-button {
  background: none;
  border: 0;
  padding: 0;
}

.text-button,
.inline-button {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.text-button:hover,
.inline-button:hover {
  text-decoration-thickness: 2px;
}

dialog {
  background: var(--panel);
  backdrop-filter: blur(1.5rem);
  border: 1px solid var(--line);
  color: var(--ink);
  max-height: calc(100svh - 2rem);
  max-width: min(34rem, calc(100vw - 2rem));
  padding: 0;
  width: 100%;
}

dialog::backdrop {
  background: rgba(2, 8, 16, 0.7);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.dialog-shell header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.close-button {
  font-size: 1.75rem;
  line-height: 0.75;
}

form,
form > label:not(.consent):not(.honeypot) {
  display: grid;
  gap: 0.4rem;
}

form {
  gap: 1.2rem;
}

input,
textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  padding: 0.5rem 0;
  width: 100%;
}

textarea {
  border: 1px solid var(--line);
  padding: 0.65rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

textarea:focus {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.consent {
  align-items: start;
  display: grid;
  font-size: 0.82rem;
  gap: 0.65rem;
  grid-template-columns: 1rem 1fr;
}

.consent input {
  margin-top: 0.2rem;
}

.honeypot {
  left: -10000px;
  position: absolute;
}

.form-footer {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 2.7rem;
}

#form-status {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.submit-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #06131d;
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
}

.submit-button:hover {
  background: transparent;
  color: var(--accent);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.privacy-copy p {
  max-width: 55ch;
}

.privacy-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 44rem) {
  .landing {
    min-height: 58svh;
  }

  .app-gallery {
    grid-template-columns: 1fr;
  }

  .binsday-screen {
    height: 74%;
    right: 2%;
  }

  figcaption {
    gap: 1rem;
  }

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

  .footer-meta {
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section-link span {
    animation: drift 1.8s ease-in-out infinite;
  }

  dialog[open] {
    animation: appear 160ms ease-out;
  }

  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(0.5rem);
    }
  }

  @keyframes drift {
    50% {
      transform: translateY(0.2rem);
    }
  }

  .gallery-cta::before {
    animation: beacon 1.5s ease-out infinite;
  }

  .gallery-cta {
    animation: cta-pulse 1.8s ease-in-out infinite;
  }

  @keyframes beacon {
    50% {
      box-shadow: 0 0 0 0.5rem rgba(99, 230, 198, 0);
      transform: scale(1.12);
    }
  }

  @keyframes cta-pulse {
    50% {
      box-shadow: 0 0 0 0.45rem rgba(99, 230, 198, 0.08), 0 0 1.5rem rgba(99, 230, 198, 0.18);
      transform: scale(1.035);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-frame {
    transition: none;
  }

  .gallery-cta::before {
    animation: none;
  }

  .gallery-cta {
    animation: none;
  }
}
