:root {
  color-scheme: light;
  --blue: #1d4ed8;
  --blue-dark: #153a9f;
  --blue-soft: #e8eefc;
  --gold: #b26506;
  --gold-soft: #fbf0e1;
  --ink: #101828;
  --text: #1f2937;
  --muted: #4b5565;
  --line: #e3e8f2;
  --bg: #fafbfd;
  --surface: #ffffff;
  --radius: 18px;
  --head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --body: 'Work Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.small { font-size: 0.9rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
[id] { scroll-margin-top: 84px; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 251, 253, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem var(--head); color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav nav a:hover { color: var(--blue); background: var(--blue-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid transparent; font: 600 1rem var(--body);
  text-decoration: none; cursor: pointer; background: none; color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
a.btn-primary:hover, button.btn-primary:hover { background: var(--blue-dark); }
.btn[aria-disabled='true'] { cursor: default; transform: none; }
.btn-outline { border-color: #c6d0e6; background: var(--surface); }
.btn-outline:hover, .btn-quiet:hover, .btn-icon:hover { border-color: var(--blue); color: var(--blue); }
.btn-quiet { min-height: 44px; padding: 0 16px; border-color: var(--line); }
.btn-icon { width: 46px; min-height: 46px; padding: 0; border-color: #c6d0e6; background: var(--surface); }

/* Hero */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 72px; overflow: hidden; }
.glow {
  position: absolute; width: 560px; height: 560px; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.16), rgba(29, 78, 216, 0) 65%);
  transform: translate(-200px, -120px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: #7a4403; font-weight: 600; font-size: 0.92rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
h1.follow { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.025em; cursor: default; }
.follow .word { display: inline-block; white-space: nowrap; }
.follow .letter { display: inline-block; will-change: transform; }
.follow .accent { color: var(--blue); }
.follow .letter.near { color: var(--gold); }
.follow .letter { opacity: 1; }
.follow.intro .letter { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes rise { from { opacity: 0; translate: 0 0.6em; } to { opacity: 1; translate: 0 0; } }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; margin: 24px 0 28px; }
.lead strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

.stage { position: relative; height: 600px; }
.phone { position: absolute; width: 270px; border: 9px solid #131a2b; border-radius: 38px; overflow: hidden; background: #131a2b; box-shadow: 0 30px 60px -24px rgba(16, 24, 40, 0.45); }
.phone img { width: 100%; height: auto; border-radius: 29px; }
.phone.front { right: 90px; top: 40px; z-index: 2; }
.phone.back { right: -24px; top: 0; transform: rotate(7deg) scale(0.92); }

/* Numbers */
.stats { background: var(--blue); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; text-align: center; }
.stat-grid strong { display: block; font: 700 clamp(2rem, 4vw, 2.8rem) var(--head); font-variant-numeric: tabular-nums; }
.stat-grid span { color: #dbe5ff; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.tint { background: #f1f4fb; }
.title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.015em; }
.sub { color: var(--muted); font-size: 1.15rem; margin: 12px 0 32px; max-width: 40em; }

/* Sample search */
.search { display: flex; align-items: center; gap: 12px; padding: 0 18px; background: var(--surface); border: 1.5px solid #c6d0e6; border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.search svg { color: var(--blue); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 1.1rem var(--body); color: var(--text); min-height: 60px; }
.results { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; min-height: 340px; align-content: start; }
.results li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.results h3 { font-size: 1.2rem; }
.results .full { color: var(--muted); font-size: 0.95rem; }
.results p { margin: 4px 0 8px; }
.tag { display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 2px 10px; border-radius: 8px; border: 1px solid currentColor; margin-right: 8px; text-transform: capitalize; }
.tag.beginner { color: #12603c; }
.tag.intermediate { color: #805100; }
.tag.advanced { color: #a11d14; }
.results .empty { text-align: center; color: var(--muted); border-style: dashed; }

/* Features */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color 0.2s, translate 0.2s; }
.card:hover { border-color: #b6c6f2; translate: 0 -3px; }
.card svg { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-bottom: 18px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }

/* Screenshots */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.arrows { display: flex; gap: 10px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px 4px 20px; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 36px -24px rgba(16, 24, 40, 0.5); }
.shots figcaption { text-align: center; margin-top: 12px; font-weight: 600; }

/* Categories */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 500; transition: border-color 0.2s, color 0.2s; }
.chips li:hover { border-color: var(--blue); color: var(--blue); }
.chips span { color: var(--gold); font-weight: 600; margin-left: 8px; font-variant-numeric: tabular-nums; }

/* Suggest form */
.suggest { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.suggest label { display: grid; gap: 6px; font-weight: 600; }
.suggest input, .suggest textarea { font: 400 1rem var(--body); color: var(--text); padding: 13px 14px; border: 1.5px solid #c6d0e6; border-radius: 12px; background: var(--surface); width: 100%; resize: vertical; }
.suggest .btn { justify-self: start; }

/* Company */
.company { background: var(--ink); color: #d7deea; }
.company .title { color: #fff; margin-top: 20px; }
.company a { color: #f3b869; }
.made { color: #f3b869; font-weight: 600; margin: 10px 0 0; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.details { margin: 0; }
.details div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #2b3550; }
.details dt { color: #98a4bd; }
.details dd { margin: 0; color: #fff; overflow-wrap: anywhere; }

/* Footer */
.footer { background: #0a0f1c; color: #aab4c8; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer a { color: #fff; margin-right: 18px; display: inline-block; padding: 10px 0; }
.details a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.footer p { margin: 18px 0; }

/* Legal pages */
.legal { max-width: 760px; padding: 48px 0 72px; }
.legal h1 { font-size: 2.4rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 40; max-width: calc(100% - 32px); }

/* Entrance on scroll; content is visible if scripts do not run. */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity 0.45s ease-out, translate 0.45s ease-out; }
.js .reveal.shown { opacity: 1; translate: 0 0; }
.js .card.reveal.shown { transition: opacity 0.45s ease-out, translate 0.2s ease-out, border-color 0.2s; }
.js .card.reveal.shown:hover { translate: 0 -3px; }

@media (max-width: 980px) {
  .nav nav { display: none; }
  .hero-grid, .company-grid { grid-template-columns: 1fr; }
  .stage { height: 560px; max-width: 420px; width: 100%; margin-inline: auto; }
  .phone { width: 250px; }
  .phone.front { right: auto; left: 8%; }
  .phone.back { right: 2%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .arrows { display: none; }
  .shots { grid-auto-columns: 72%; }
  .stage { height: 420px; }
  .phone { width: 200px; }
  .phone.front { left: 4%; }
  .phone.back { right: 0; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .actions .btn { width: 100%; }
  .brand { font-size: 1.05rem; }
  .suggest { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .glow { display: none; }
}
