/* Vitrine website — monochrome chrome, SF Rounded, glassy cool glow. */

:root {
  --bg: #0b0b0c;
  --surface: #15161a;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: #1f2024;
  --accent: #f3f4f6;
  --glow: rgba(120, 180, 255, .40);
}

/* The app-icon PNG already has its rounded (squircle) corners and transparent
   surround baked in, so the frame is just a positioning box for the image. */
.icon-frame {
  position: relative;
  display: block;
}
.icon-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
               Quicksand, "Arial Rounded MT", "Arial Rounded MT Bold",
               system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- Layout ---------- */

.site-header {
  padding: 24px;
  display: flex;
  justify-content: center;
}
.site-header a {
  display: inline-block;
  text-decoration: none;
  transition: transform .15s ease;
}
.site-header a:hover { transform: scale(1.03); }
.site-header .icon-frame {
  width: 56px;
  height: 56px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

main.home {
  justify-content: center;
  padding: 48px 24px;
  gap: 56px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer .maker {
  font-weight: 500;
}
@media (min-width: 600px) {
  .site-footer .inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Home ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}
.hero .icon-frame {
  width: clamp(128px, 34vw, 168px);
  height: clamp(128px, 34vw, 168px);
  filter:
    drop-shadow(0 24px 48px rgba(0, 0, 0, .55))
    drop-shadow(0 4px 12px rgba(0, 0, 0, .35))
    drop-shadow(0 16px 64px var(--glow));
}
.hero h1 {
  margin: 36px 0 18px;
  font-size: clamp(72px, 18vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.hero p.tagline {
  margin: 0 auto;
  max-width: 11em;
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

/* ---------- CTA ---------- */

.cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  padding: 19px 38px;
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .5),
    0 10px 24px -10px rgba(243, 244, 246, .25);
  transform: translate3d(0, 0, 0) scale(1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform .26s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow .26s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.btn-primary:hover {
  transform: translate3d(0, -2px, 0) scale(1.045);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .5),
    0 18px 38px -12px rgba(243, 244, 246, .45);
}
.btn-primary:active {
  transform: translate3d(0, 0, 0) scale(0.965);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .5),
    0 4px 12px -8px rgba(243, 244, 246, .2);
  transition-duration: .07s;
  transition-timing-function: ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition-duration: .12s; transition-timing-function: ease; }
  .btn-primary:hover { transform: translate3d(0, 0, 0) scale(1.02); }
}

/* ---------- Product shot ---------- */

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}
.shot img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, .8),
    0 0 80px -40px var(--glow);
}
.shot .caption {
  margin: 0;
  max-width: 36em;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Prose (privacy / legal) ---------- */

.prose h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.prose .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}
.prose h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.prose p, .prose ul {
  margin: 0 0 14px;
}
.prose ul {
  padding-left: 22px;
}
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 600; }
.prose code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Support ---------- */

.support-card {
  text-align: center;
  padding: 32px 0;
}
.support-card h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.support-card p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}
.support-card .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: opacity .15s ease, transform .04s ease;
}
.support-card .btn:hover { opacity: .88; }
.support-card .btn:active { transform: translateY(1px); }
.support-card .fine {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
