:root {
  --ink: #121816;
  --paper: #f3f6f4;
  --coral: #ff4d2e;
  --sage: #c8d9d0;
  --mint: #e8eeeb;
  --line: #cdd6d1;
  --muted: #5a6861;
  --blue: #7f9fd8;
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.eyebrow {
  margin: 0 0 16px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-ai {
  color: var(--coral);
  margin-left: 1px;
}
.links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.links > a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.04em;
  padding: 7px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.lang-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}
.nav-cta {
  padding: 10px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* —— Hero: full-bleed illustration + brand-first copy —— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--mint);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 24, 22, 0.08) 0%, rgba(18, 24, 22, 0.55) 72%, rgba(18, 24, 22, 0.78) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 8vw, 96px) clamp(20px, 6vw, 80px) clamp(48px, 7vw, 88px);
  max-width: 720px;
  color: #f7f9f8;
}
.brand-lockup {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.92;
  color: #fff;
}
.brand-lockup::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.12em;
  border-radius: 2px;
  background: var(--coral);
  vertical-align: 0.18em;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.lead {
  margin: 20px 0 28px;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(247, 249, 248, 0.88);
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.button.light {
  background: var(--coral);
  color: #fff;
}

/* —— Belief —— */
.belief {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 80px);
  background: var(--sage);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.belief h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 16ch;
}
.belief-art {
  justify-self: end;
  width: min(100%, 360px);
  border-radius: 28px;
  border: 3px solid var(--ink);
  background: var(--mint);
  animation: float-soft 7s ease-in-out infinite;
}

/* —— Work —— */
.work {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 72px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 40px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.05em;
}
.section-head > p {
  max-width: 280px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.project {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  min-height: 620px;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 56px);
  background: linear-gradient(145deg, #8eb0ef 0%, #7a9fdc 100%);
  border: 3px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.project-info { position: relative; z-index: 1; }
.app-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(18, 24, 22, 0.18);
}
.app-mark img { width: 100%; height: 100%; object-fit: cover; }
.project-kicker {
  margin: 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project h3 {
  margin: 12px 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}
.project-description {
  margin: 0;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.65;
}
.project ul {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  max-width: 360px;
  border-top: 1.5px solid rgba(18, 24, 22, 0.28);
}
.project li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1.5px solid rgba(18, 24, 22, 0.28);
  font-size: 14px;
  font-weight: 700;
}
.project li > span:first-child {
  font: 500 12px/1.4 var(--mono);
  opacity: 0.7;
  flex-shrink: 0;
}
.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
}
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

/* Dual-platform download: buttons + one QR (points at get.html) */
.download-block {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
  margin-top: 4px;
}
.download-actions {
  display: grid;
  gap: 10px;
  flex: 1 1 200px;
  min-width: min(100%, 200px);
}
.store-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 3px 3px 0 rgba(18, 24, 22, 0.12);
}
.store-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 4px 5px 0 rgba(18, 24, 22, 0.14);
}
.store-btn-logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}
.store-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.store-btn-kicker {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.store-btn-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.store-btn-ios { border-color: var(--ink); }
.store-btn-android {
  background: var(--ink);
  color: var(--paper);
}
.store-btn-android:hover {
  background: #1c2420;
  color: var(--paper);
}
.store-btn-android .store-btn-kicker { color: #9aaba3; opacity: 1; }

.download-qr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  min-width: 128px;
  background: rgba(255, 255, 255, 0.65);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 rgba(18, 24, 22, 0.12);
}
.download-qr img {
  width: 104px;
  height: 104px;
  border-radius: 6px;
  background: var(--paper);
}
.download-qr p {
  margin: 0;
  font: 500 10px/1.2 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  opacity: 0.75;
}
.project-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}
.shot {
  position: absolute;
  width: min(220px, 46%);
  height: auto;
  border-radius: 22px;
  box-shadow: 10px 16px 0 rgba(18, 24, 22, 0.16);
  background: #eef5fb;
}
.shot-a {
  left: 2%;
  top: 12%;
  transform: rotate(-10deg);
  z-index: 1;
}
.shot-b {
  left: 50%;
  top: 4%;
  transform: translateX(-50%) rotate(2deg);
  width: min(240px, 52%);
  z-index: 3;
  animation: phone-tilt 8s ease-in-out infinite;
}
.shot-c {
  right: 2%;
  top: 18%;
  transform: rotate(9deg);
  z-index: 2;
}
.shot-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.shot-strip img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: #eef5fb;
  box-shadow: 4px 6px 0 rgba(18, 24, 22, 0.1);
}

/* —— Product grid —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(26px, 4vw, 40px);
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 6px 8px 0 rgba(18, 24, 22, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 8px 12px 0 rgba(18, 24, 22, 0.14);
}
.product-card .app-mark {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  margin-bottom: 14px;
}
.product-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.product-card > p:not(.project-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.product-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

/* —— Next —— */
.next {
  text-align: center;
  padding: clamp(80px, 11vw, 130px) 24px;
  border-top: 1px solid var(--line);
}
.next h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.next-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3db86a;
  box-shadow: 0 0 0 0 rgba(61, 184, 106, 0.5);
  animation: pulse 2s ease-out infinite;
}

/* —— About —— */
.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 80px);
  background: var(--ink);
  color: var(--paper);
}
.about .eyebrow { color: #9aaba3; }
.about-art {
  width: 100%;
  border-radius: 28px;
  border: 3px solid #2a3531;
  background: #1a2220;
}
.about h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.about-copy > p:not(.eyebrow) {
  max-width: 460px;
  margin: 22px 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: #d5ddd8;
}

/* —— Footer —— */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: #b8c4bd;
  border-top: 1px solid #2a3531;
  font-size: 13px;
}
footer .brand-word { font-size: 18px; color: #f3f6f4; }
footer .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
footer a { text-decoration: none; }
footer p { margin: 0; }

/* —— Motion —— */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes phone-tilt {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(5.5deg) translateY(-8px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 184, 106, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(61, 184, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 184, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .belief-art,
  .shot-b,
  .pulse { animation: none; }
}

@media (max-width: 900px) {
  .belief,
  .about,
  .project { grid-template-columns: 1fr; }
  .belief-art { justify-self: start; width: min(280px, 70vw); }
  .section-head { flex-direction: column; align-items: start; }
  .project-visual { min-height: 420px; margin-top: 8px; }
  .shot { width: min(180px, 42%); }
  .shot-b { width: min(200px, 48%); }
  .shot-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .shot-strip img:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav { height: 64px; }
  .links > a:not(.nav-cta) { display: none; }
  .links { gap: 12px; }
  .lang-btn { padding: 7px 8px; }
  .hero { min-height: 78vh; }
  .hero-copy { padding-bottom: 40px; }
  .project { min-height: auto; padding: 28px 22px 40px; }
  .download-block { flex-direction: column; }
  .download-qr { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 14px; }
  .download-qr img { width: 72px; height: 72px; }
}
