:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --ink: #111111;
  --muted: #6b6b68;
  --line: #e5e5e2;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; margin-left: 28px; transition: color .15s; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: 110px 0 90px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  max-width: 14ch;
}
.hero p { margin-top: 24px; max-width: 52ch; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.btn {
  display: inline-block; margin-top: 36px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .88; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 10px; }

/* Sections */
section { padding: 70px 0; }
section.soft { background: var(--bg-soft); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; line-height: 1.15; margin-top: 10px; }
.lead { color: var(--muted); margin-top: 14px; max-width: 56ch; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 44px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 14px 40px rgba(0,0,0,.07); transform: translateY(-2px); }
.card .icon {
  position: relative;
  width: 68px; height: 68px; border-radius: 16px; background: var(--bg-soft); color: var(--ink);
  display: grid; place-items: center; font-size: 28px; font-weight: 700; overflow: hidden;
}
.card .icon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); pointer-events: none;
}
.card .icon img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 21px; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.store {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  transition: opacity .15s;
}
.store:hover { opacity: .85; }
.store svg { width: 17px; height: 17px; fill: currentColor; }

/* About grid */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 44px; }
.values h3 { font-size: 18px; margin-bottom: 8px; }
.values p { color: var(--muted); font-size: 15px; }

/* Text pages */
.page { padding: 80px 0 60px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; line-height: 1.1; }
.page .updated { color: var(--muted); margin-top: 12px; font-size: 14px; }
.prose { max-width: 720px; margin-top: 40px; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -.015em; }
.prose p, .prose li { color: #333; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.contact-box {
  margin-top: 40px; max-width: 560px; padding: 36px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.contact-box a.mail { font-size: clamp(22px, 4vw, 30px); font-weight: 700; letter-spacing: -.02em; text-decoration: none; border-bottom: 2px solid var(--ink); }
.contact-box p { color: var(--muted); margin-top: 16px; font-size: 15px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer.site nav a { margin: 0 0 0 22px; font-size: 14px; }

@media (max-width: 640px) {
  nav a { margin-left: 18px; font-size: 14px; }
  .hero { padding: 70px 0 50px; }
  .btn.ghost { margin-left: 0; margin-top: 12px; }
  footer.site nav a { margin: 0 18px 0 0; }
}
