:root {
  color-scheme: light;
  --ink: #111418;
  --muted: #5a6675;
  --paper: #f3f7fb;
  --surface: #ffffff;
  --line: #d7e1ea;
  --amber: #f0b43c;
  --amber-dark: #9a5c00;
  --green: #2d6a4f;
  --blue: #255f85;
  --red: #b9443a;
  --shadow: 0 20px 60px rgba(27, 30, 34, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 247, 251, 0.92);
  border-bottom: 1px solid rgba(17, 20, 24, 0.08);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand img { width: 42px; height: 42px; border-radius: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a { text-decoration: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--ink);
  box-shadow: 0 8px 20px rgba(17, 20, 24, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #242a31;
  border-color: #242a31;
  box-shadow: 0 14px 30px rgba(17, 20, 24, 0.18);
}

.button:focus-visible {
  outline: 3px solid rgba(37, 95, 133, 0.35);
  outline-offset: 3px;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(17, 20, 24, 0.2);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 20, 24, 0.34);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(17, 20, 24, 0.08);
}

.button.app-store {
  background: #050607;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.button.app-store:hover {
  background: #1b1f24;
  border-color: #1b1f24;
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.88), rgba(255,255,255,0.32)),
    linear-gradient(135deg, #f3f7fb 0%, #e8f0f7 46%, #dcece7 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 56px;
  align-items: start;
  padding: 12px 0 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.06; letter-spacing: 0; }

h1 {
  margin: 0;
  max-width: 790px;
  font-size: clamp(44px, 7vw, 82px);
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #35404b;
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.proof > span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 800;
  color: #394552;
}

.rating-pill { gap: 8px; }

.stars {
  color: var(--amber-dark);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1;
}

.phone-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  min-height: 0;
  padding-top: 108px;
}

.app-icon {
  position: absolute;
  top: 2px;
  right: 26px;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.phone-shot {
  position: static;
  width: 100%;
  max-width: 210px;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(25, 30, 35, 0.2);
  background: transparent;
}

.phone-shot.one { justify-self: start; transform: rotate(-4deg); }
.phone-shot.two { justify-self: end; transform: rotate(4deg); }

main section {
  padding: 60px 0;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head h2,
.article h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
}

.section-head p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.download-panel {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: #1c2025;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-panel img { width: 120px; height: 120px; border-radius: 22px; }
.download-panel p { color: #cbd4df; margin: 8px 0 0; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.metric strong { display: block; font-size: 24px; }
.metric span { color: var(--muted); font-weight: 700; font-size: 14px; }

.metric .metric-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric .metric-rating span {
  color: var(--ink);
  font-size: inherit;
  font-weight: 900;
}

.metric .stars {
  color: var(--amber-dark);
  font-size: 15px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 0;
  background: transparent;
}

.screenshot-grid figure { margin: 0; min-width: 190px; background: transparent; }
.screenshot-grid img {
  border-radius: 18px;
}

.steps,
.guide-grid,
.faq-grid,
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step,
.guide-card,
.faq-item,
.reference-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--amber);
  font-weight: 900;
  margin-bottom: 16px;
}

.step h3,
.guide-card h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.step p,
.guide-card p,
.faq-item p,
.reference-card p {
  color: var(--muted);
  margin: 0 0 14px;
}

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

.reference-card p {
  color: #333d47;
  font-size: 20px;
}

.lens-feature {
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #15181c;
  box-shadow: var(--shadow);
}

.lens-feature img {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: 56% center;
}

.camera-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 24px;
}

.camera-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: #394552;
  font-size: 13px;
  font-weight: 800;
}

.camera-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.camera-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.camera-group:hover {
  border-color: rgba(37, 95, 133, 0.28);
  background: var(--surface);
}

.camera-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  color: #202832;
}

.camera-group summary::-webkit-details-marker {
  display: none;
}

.camera-group summary::after {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(37, 95, 133, 0.18);
  background-color: rgba(255, 255, 255, 0.84);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7.25L9 11.75L13.5 7.25' stroke='%23255f85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: rotate(0deg);
  transition: transform 180ms ease, border-color 160ms ease, background-color 160ms ease;
}

.camera-group[open] {
  border-color: rgba(45, 106, 79, 0.32);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(25, 30, 35, 0.08);
}

.camera-group[open] summary {
  border-bottom: 1px solid var(--line);
}

.camera-group[open] summary::after {
  border-color: rgba(45, 106, 79, 0.24);
  transform: rotate(180deg);
}

.camera-models {
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease;
}

.camera-group[open] .camera-models {
  max-height: none;
}

.camera-models p {
  margin: 0;
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 15px;
}

.camera-note {
  max-width: 760px;
  margin: 22px 0 0;
  color: #46515d;
  font-weight: 700;
}

.guide-card a,
.faq-item a,
.reference-card a,
.article a:not(.button) {
  color: var(--blue);
  font-weight: 800;
}

.article .button {
  color: #fff;
}

.use-cases {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.case-list div {
  border-left: 5px solid var(--green);
  background: rgba(255, 255, 255, 0.68);
  padding: 16px;
}

.case-list strong { display: block; }
.case-list span { color: var(--muted); font-size: 14px; }

.cta {
  text-align: center;
  background: #20252a;
  color: #fff;
}

.cta p {
  color: #cfd6de;
  max-width: 640px;
  margin: 14px auto 28px;
  font-size: 18px;
}

.site-footer {
  background: #111418;
  color: #c9d0d8;
  padding: 34px 0;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner a { color: #fff; }

.article {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.article p,
.article li { color: #46515d; font-size: 18px; }

.article h2 { margin-top: 42px; font-size: 32px; }
.article .lede { font-size: 21px; color: #333d47; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }

@media (max-width: 900px) {
  .hero-inner,
  .use-cases,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .phone-stage {
    display: none;
  }

  .screenshot-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 0;
    scroll-snap-type: x proximity;
  }

  .screenshot-grid figure {
    flex: 0 0 190px;
    min-width: 0;
  }

  .screenshot-grid img { scroll-snap-align: start; }

  .metrics,
  .steps,
  .guide-grid,
  .faq-grid,
  .reference-grid,
  .case-list {
    grid-template-columns: 1fr 1fr;
  }

  .download-panel { text-align: left; }

  .lens-feature img {
    aspect-ratio: 1.55 / 1;
  }
}

@media (max-width: 640px) {
  .nav { min-height: 64px; }
  .nav-links a:not(.button) { display: none; }
  .hero-inner { padding-top: 10px; gap: 20px; }
  .hero-copy { font-size: 18px; }
  main section { padding: 44px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .screenshot-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 0;
    scroll-snap-type: x proximity;
  }
  .screenshot-grid figure {
    flex: 0 0 min(72vw, 230px);
  }
  .screenshot-grid img {
    width: 100%;
    margin: 0;
    scroll-snap-align: start;
  }
  .metrics,
  .steps,
  .guide-grid,
  .faq-grid,
  .reference-grid,
  .case-list {
    grid-template-columns: 1fr;
  }
  .camera-summary {
    margin-top: 0;
  }
  .camera-group summary {
    min-height: 54px;
    padding: 14px 15px;
  }
  .camera-models p {
    padding: 14px 15px 16px;
    font-size: 14px;
  }
  .lens-feature {
    margin-top: 24px;
  }
  .lens-feature img {
    aspect-ratio: 1.15 / 1;
    object-position: 58% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .camera-group,
  .camera-group summary::after,
  .camera-models {
    transition: none;
  }
}
