:root {
  --bg: #ede8e1;
  --bg-strong: #e2ddd5;
  --paper: rgba(249, 247, 243, 0.84);
  --paper-strong: #f6f3ee;
  --line: rgba(61, 54, 47, 0.1);
  --text: #2d2925;
  --muted: #6b625b;
  --accent: #e57a31;
  --accent-deep: #c95f1c;
  --accent-soft: rgba(229, 122, 49, 0.12);
  --shadow: 0 24px 60px -34px rgba(72, 56, 42, 0.3);
  --shadow-soft: 0 14px 28px -24px rgba(72, 56, 42, 0.24);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(229, 122, 49, 0.14), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(112, 106, 100, 0.12), transparent 30%),
    linear-gradient(180deg, #f2eee7 0%, #ece7de 48%, #e6e0d7 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 0.95rem;
  border-radius: 0.7rem;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 78%, white 22%);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 0.85rem;
  background: linear-gradient(180deg, rgba(237, 232, 225, 0.94), rgba(237, 232, 225, 0.76) 76%, rgba(237, 232, 225, 0));
  backdrop-filter: blur(10px) saturate(130%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 245, 240, 0.8);
  box-shadow: 0 10px 18px -18px rgba(72, 56, 42, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.app-mark {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  align-items: end;
  justify-items: end;
  padding: 0.15rem 0.28rem 0.08rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #dfe1e4, #cfd2d7);
  color: var(--accent);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 8px 18px -12px rgba(72, 56, 42, 0.32);
}

.app-mark span {
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 0.8;
  letter-spacing: -0.12em;
}

.app-mark-small {
  width: 2.3rem;
  height: 2.3rem;
}

.app-mark-small span {
  font-size: 1.62rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-link,
.desktop-nav a,
.lang-btn,
.lightbox-hint {
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.85rem;
}

.desktop-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.24rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(61, 54, 47, 0.06);
}

.hero {
  padding: 1.2rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy,
.feature-panel,
.note-panel,
.workflow-list li {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 248, 244, 0.82), rgba(245, 240, 233, 0.72));
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: 1.3rem;
  border-radius: var(--radius-xl);
}

.eyebrow,
.section-kicker,
.step-index {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.note-panel h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.8rem);
}

.subtitle,
.section-copy,
.feature-panel p,
.note-panel p,
.workflow-list p,
.footer-brand p {
  color: var(--muted);
}

.subtitle {
  margin: 0.9rem 0 0;
  max-width: 58ch;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
}

.store-badge-link img {
  display: block;
  width: min(156px, 100%);
  height: auto;
}

.store-badge-link:hover,
.header-link:hover,
.desktop-nav a:hover,
.lightbox-hint:hover {
  transform: translateY(-1px);
}

.store-badge-link:active,
.header-link:active,
.lightbox-hint:active {
  transform: translateY(0) scale(0.98);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.3rem 0 0;
}

.stat-grid div {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(61, 54, 47, 0.08);
}

.stat-grid dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-grid dd {
  margin: 0.22rem 0 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-visual {
  display: grid;
  align-items: center;
}

.hero-screen {
  padding: 0.4rem;
  border-radius: calc(var(--radius-xl) + 0.25rem);
  background:
    radial-gradient(circle at 80% 10%, rgba(229, 122, 49, 0.16), transparent 40%),
    radial-gradient(circle at 20% 78%, rgba(80, 80, 86, 0.08), transparent 30%);
  display: grid;
  place-items: center;
}

.hero-screen img,
.shot-card img {
  width: 100%;
  height: 100%;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.hero-screen img {
  aspect-ratio: 1400 / 885;
  object-fit: contain;
}

.section {
  padding: 2.6rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
}

.section-head {
  margin-bottom: 1.15rem;
}

.section-head h2,
.note-panel h2 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
}

.section-head-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-hint {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  cursor: default;
}

.feature-layout {
  display: grid;
  gap: 0.8rem;
}

.feature-panel {
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.feature-panel h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.feature-panel p {
  margin: 0.45rem 0 0;
}

.feature-panel-large {
  background:
    radial-gradient(circle at 95% 10%, rgba(229, 122, 49, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(250, 248, 244, 0.82), rgba(245, 240, 233, 0.72));
}

.feature-panel-accent,
.note-panel-accent {
  background:
    linear-gradient(135deg, rgba(229, 122, 49, 0.12), rgba(250, 248, 244, 0.76)),
    rgba(250, 248, 244, 0.82);
}

.workflow-grid {
  display: grid;
  gap: 1rem;
}

.workflow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.workflow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.step-index {
  color: var(--accent-deep);
  font-size: 0.8rem;
  align-self: start;
  padding-top: 0.18rem;
}

.workflow-list h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.workflow-list p {
  margin: 0.3rem 0 0;
}

.shots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.shot-card {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  display: grid;
  place-items: center;
}

.shot-wide img {
  aspect-ratio: 1400 / 885;
  object-fit: contain;
}

.shot-card:not(.shot-wide) img {
  aspect-ratio: 1004 / 1100;
  object-fit: contain;
}

.note-grid {
  display: grid;
  gap: 0.8rem;
}

.note-panel {
  padding: 1.2rem;
  border-radius: var(--radius-xl);
}

.note-panel p {
  margin: 0.65rem 0 0;
}

.site-footer {
  padding: 1.3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.74);
  box-shadow: var(--shadow-soft);
}

.footer-brand {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.footer-brand strong {
  display: block;
}

.footer-brand p {
  margin: 0.2rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 15, 14, 0.84);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  width: min(calc(100% - 1rem), 90rem);
  max-height: calc(100dvh - 1rem);
  padding: 0.7rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}

.lightbox-image {
  width: 100%;
  max-height: calc(100dvh - 2rem);
  object-fit: contain;
  border-radius: 1.2rem;
}

@media (max-width: 719px) {
  .desktop-nav {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-link {
    font-size: 0.84rem;
    padding-inline: 0.65rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .store-badge-link,
  .lightbox-hint {
    width: 100%;
  }

  .section-head-inline {
    display: block;
  }

  .lightbox-hint {
    margin-top: 0.85rem;
  }
}

@media (min-width: 720px) {
  .desktop-nav {
    display: inline-flex;
  }

  .feature-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-panel-large {
    grid-column: span 2;
  }

  .workflow-grid,
  .note-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.2rem;
  }

  .hero-copy {
    padding: 1.65rem;
  }

  .workflow-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .section-head-sticky {
    position: sticky;
    top: 5.5rem;
    margin-bottom: 0;
  }

  .note-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
