:root {
  --ink: #111214;
  --muted: #66686d;
  --line: #e8e8e8;
  --paper: #fafafa;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header, footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { min-height: 5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.wordmark-name { font-size: 1rem; font-weight: 750; letter-spacing: -.035em; text-transform: uppercase; }
.wordmark-label { border-left: 1px solid #cfd0d2; padding-left: .85rem; color: #77797e; font-size: .68rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.site-header nav, footer nav { display: flex; gap: 2.2rem; }
.site-header nav a, footer nav a { text-decoration: none; color: #505257; font-size: .98rem; }
.site-header nav a:hover, footer nav a:hover { color: var(--ink); }

.apps-stage {
  min-height: 27rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 5rem 1.5rem 4rem;
}
.icon-row { display: flex; align-items: center; justify-content: center; }
.app-icon {
  appearance: none;
  border: 0;
  padding: 0;
  width: 5.8rem;
  height: 5.8rem;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), z-index 0s;
}
.app-icon + .app-icon { margin-left: -.7rem; }
.app-icon img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 22%; box-shadow: 0 14px 30px rgba(0,0,0,.13), inset 0 0 0 1px rgba(0,0,0,.06); }
.app-icon:hover, .app-icon:focus-visible { transform: translateY(-10px) scale(1.08); z-index: 2; outline: none; }
.stage-hint { margin: 2.5rem 0 0; color: #888a8e; font-size: .84rem; letter-spacing: .02em; }

.contact { text-align: center; min-height: 22rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1.5rem; }
.eyebrow, .dialog-kicker { margin: 0 0 .7rem; color: #77797e; font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.45rem); letter-spacing: -.045em; }
.contact > p:not(.eyebrow) { margin: 1rem 0 2rem; color: var(--muted); font-size: 1rem; }
.button { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #dadbdd; border-radius: .65rem; padding: .9rem 1.15rem; text-decoration: none; background: var(--white); transition: transform .18s, box-shadow .18s; }
.button[hidden] { display: none; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.button.dark { background: var(--ink); color: white; border-color: var(--ink); }
.contact-trigger { color: inherit; font: inherit; cursor: pointer; }

footer { border-top: 1px solid var(--line); min-height: 8rem; color: #595b60; }
footer p { margin: 0; }

.app-dialog {
  width: min(64rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 1.5rem;
  padding: 0;
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
  background: var(--white);
}
.app-dialog::backdrop { background: rgba(12,13,15,.55); backdrop-filter: blur(8px); }
.contact-dialog {
  width: min(38rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 1.5rem;
  padding: 0;
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
  background: var(--white);
}
.contact-dialog::backdrop { background: rgba(12,13,15,.55); backdrop-filter: blur(8px); }
.contact-dialog-content { padding: 2.8rem; }
.contact-dialog-content h2 { margin: 0; font-size: clamp(1.65rem, 5vw, 2.15rem); letter-spacing: -.045em; }
.contact-dialog-intro { margin: .8rem 0 1.8rem; color: var(--muted); line-height: 1.55; }
.contact-options { display: grid; gap: .65rem; }
.contact-options a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: .9rem; padding: 1rem 1.1rem; text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.contact-options a:hover { border-color: #bbbcc0; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.05); }
.contact-options span { display: grid; gap: .2rem; }
.contact-options strong { font-size: .98rem; }
.contact-options small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.contact-options b { color: #8a8c91; font-weight: 500; }
.contact-options .hire-option { background: var(--ink); border-color: var(--ink); color: white; }
.contact-options .hire-option small, .contact-options .hire-option b { color: #bfc0c3; }
.dialog-content { padding: 3.5rem; }
.dialog-close { position: sticky; float: right; right: .9rem; top: .9rem; z-index: 5; width: 2.25rem; height: 2.25rem; margin-bottom: -2.25rem; border: 0; border-radius: 50%; background: rgba(240,240,241,.94); font-size: 1.55rem; line-height: 1; cursor: pointer; color: #4f5155; backdrop-filter: blur(8px); }
.app-case-header { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: start; gap: 1.8rem; max-width: 49rem; }
.dialog-icon { width: 7rem; height: 7rem; border-radius: 22%; box-shadow: 0 15px 30px rgba(0,0,0,.14); }
.dialog-kicker { margin-bottom: .5rem; }
.dialog-content h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.055em; }
.dialog-description { color: var(--muted); line-height: 1.65; margin: .8rem 0 1.35rem; max-width: 38rem; }
.app-showcase { margin: 3rem -3.5rem 0; overflow: hidden; background: linear-gradient(145deg, #f4f4f5, #e9e9eb); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.screenshot-track { display: grid; grid-template-columns: repeat(3, minmax(0, 12.5rem)); justify-content: center; align-items: center; gap: 2.2rem; max-width: 52rem; margin: 0 auto; padding: 3rem 2.5rem; }
.screenshot-card { position: relative; margin: 0; min-width: 0; padding: .42rem; border: 1px solid #2d2d30; border-radius: 2rem; background: #111113; box-shadow: 0 22px 45px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.1); }
.screenshot-card::before { content: ""; position: absolute; z-index: 1; top: .72rem; left: 50%; width: 32%; height: .45rem; border-radius: 999px; background: #080809; transform: translateX(-50%); }
.screenshot-card img { display: block; width: 100%; height: auto; border-radius: 1.58rem; }
.app-case-details { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; padding: 3.25rem 0; }
.section-label { margin: 0 0 .8rem; color: #85878c; font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.app-case-summary h3 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.04em; }
.app-case-summary > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.app-case-features ul { list-style: none; margin: 0; padding: 0; display: grid; }
.app-case-features li { padding: .9rem 0; border-top: 1px solid var(--line); line-height: 1.5; }
.app-case-features li:first-child { padding-top: 0; border-top: 0; }
.app-case-features strong { display: block; margin-bottom: .2rem; font-size: .96rem; }
.app-case-features span { color: var(--muted); font-size: .9rem; }
.app-case-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.app-case-footer > p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.5; max-width: 35rem; }
.dialog-legal { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .9rem 1.25rem; flex: 0 0 auto; }
.dialog-legal a { color: #65676c; font-size: .85rem; }
.legal-view { max-width: 47rem; margin: 0 auto; }
.legal-back { border: 0; padding: .5rem 0; background: transparent; color: #5d5f64; font: inherit; font-size: .9rem; cursor: pointer; }
.legal-back:hover { color: var(--ink); }
.legal-document { padding: 2.3rem 0 1rem; }
.legal-document header { margin-bottom: 2.4rem; }
.legal-document .kicker, .legal-document .eyebrow { margin: 0 0 .65rem; color: #77797e; font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.legal-document h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.05; letter-spacing: -.055em; }
.legal-document h2 { margin: 2.2rem 0 .65rem; font-size: 1.12rem; letter-spacing: -.02em; }
.legal-document p, .legal-document li, .legal-document small { color: #595b60; font-size: .95rem; line-height: 1.72; }
.legal-document p { margin: 0 0 1rem; }
.legal-document ul { padding-left: 1.25rem; }
.legal-document a { color: var(--ink); }
.legal-document .legal-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.legal-loading { color: var(--muted); padding: 4rem 0; text-align: center; }

@media (max-width: 620px) {
  .site-header { padding: 1.25rem; }
  .wordmark { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .wordmark-name { font-size: .82rem; }
  .wordmark-label { border-left: 0; padding-left: 0; font-size: .58rem; }
  .site-header nav { gap: 1.1rem; }
  .site-header nav a { font-size: .9rem; }
  .apps-stage { min-height: 25rem; }
  .app-icon { width: 4.5rem; height: 4.5rem; }
  .app-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); border-radius: 1.15rem; }
  .dialog-content { padding: 2.8rem 1.25rem 1.5rem; }
  .app-case-header { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; }
  .dialog-icon { width: 4.5rem; height: 4.5rem; }
  .dialog-description, .app-case-copy .button { grid-column: 1 / -1; }
  .app-case-copy { display: contents; }
  .dialog-description { margin-top: .3rem; }
  .app-showcase { margin: 2rem -1.25rem 0; overflow-x: auto; }
  .screenshot-track { width: max-content; grid-template-columns: repeat(3, 10.5rem); justify-content: start; gap: 1rem; padding: 2rem 1.25rem; }
  .screenshot-card { border-radius: 1.65rem; }
  .screenshot-card img { border-radius: 1.3rem; }
  .app-case-details { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0; }
  .app-case-footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .dialog-legal { justify-content: flex-start; }
  .contact-dialog-content { padding: 2.6rem 1.25rem 1.4rem; }
  footer { align-items: flex-start; gap: 1.5rem; flex-direction: column; padding: 2rem 1.25rem; }
  footer nav { gap: 1.3rem; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
