:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-border: rgba(17, 24, 39, 0.08);
  --text: #18181b;
  --muted: #5f646d;
  --accent: #18181b;
  --accent-2: #52525b;
  --card: rgba(17, 24, 39, 0.03);
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #eeeeef 44%, #c8c8cf 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--panel-border);
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.12);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 550;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 96px;
}

.hero::before {
  position: absolute;
  inset: 8% 8% auto;
  height: 62%;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 54%, rgba(24, 24, 27, 0.08), transparent 42%);
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-intro {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, #0057ff 0%, #22a7ff 48%, #007aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-title {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  letter-spacing: -0.055em;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-showcase {
  position: relative;
  width: min(100%, 1060px);
  height: clamp(540px, 56vw, 760px);
  margin: 78px auto 0;
}

.hero-phone {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: clamp(170px, 20vw, 270px);
  max-height: 92%;
  height: auto;
  border-radius: 34px;
  box-shadow:
    0 20px 60px rgba(24, 24, 27, 0.2),
    0 0 0 1px rgba(24, 24, 27, 0.1);
}

.hero-phone-main {
  z-index: 5;
  width: clamp(220px, 25vw, 340px);
  max-height: 100%;
  transform: translateX(-50%);
}

.hero-phone-left-inner {
  z-index: 4;
  transform: translateX(-98%) translateY(14px) rotate(-3deg);
}

.hero-phone-right-inner {
  z-index: 4;
  transform: translateX(-2%) translateY(18px) rotate(3deg);
}

.hero-phone-left-outer {
  z-index: 3;
  transform: translateX(-152%) translateY(56px) rotate(-7deg);
  opacity: 0.88;
}

.hero-phone-right-outer {
  z-index: 3;
  transform: translateX(52%) translateY(56px) rotate(7deg);
  opacity: 0.88;
}

.feature-grid {
  padding: 18px 0 40px;
}

.snap-section {
  padding: 36px 0 92px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfbfc 0%, #f7f7f8 100%);
}

.snap-intro {
  margin-bottom: 58px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.snap-intro h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 5.3rem);
  letter-spacing: -0.06em;
}

.snap-intro p {
  max-width: 760px;
  margin: 0;
  color: #6f737b;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.snap-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  scroll-snap-type: x mandatory;
  padding: 0 max(16px, calc((100vw - var(--max)) / 2)) 12px;
  scrollbar-width: none;
}

.snap-gallery::-webkit-scrollbar {
  display: none;
}

.snap-card {
  flex: 0 0 clamp(320px, 29vw, 420px);
  scroll-snap-align: start;
}

.snap-card-ipad {
  flex-basis: clamp(250px, 23vw, 330px);
}

.snap-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  margin-bottom: 22px;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(24, 24, 27, 0.04),
    0 18px 54px rgba(24, 24, 27, 0.08);
}

.snap-visual img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 16px 42px rgba(24, 24, 27, 0.14);
}

.snap-card-ipad .snap-visual img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

.snap-card p {
  margin: 0;
  padding: 0 10px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.018em;
}

.snap-card p strong {
  font-weight: 760;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.hero-copy,
.section,
.policy {
  padding: 28px;
}

.bento-card {
  padding: 20px;
}

.bento-hero {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-story,
.bento-selfhosted,
.bento-native,
.bento-recent {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-shot,
.bento-question,
.bento-chat {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-ipad {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 32px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(24, 24, 27, 0.08);
}

.button.primary {
  background: #18181b;
  color: white;
  border-color: transparent;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  height: 48px;
}

.app-store-badge img {
  display: block;
  width: 144px;
  height: auto;
}

.device-shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.portrait-shot {
  max-width: 290px;
}

.landscape-shot {
  max-width: 100%;
}

.mini-card {
  background: var(--card);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 16px;
}

.mini-title {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.mini-strong {
  font-weight: 700;
}

.gallery-caption {
  padding: 14px 16px;
  border-top: 1px solid var(--panel-border);
  background: var(--card);
}

.gallery-caption strong {
  display: block;
  margin-bottom: 4px;
}


.bento-story,
.bento-selfhosted,
.bento-native,
.bento-recent {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-shot,
.bento-question,
.bento-chat,
.bento-ipad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bento-story,
.bento-selfhosted,
.bento-native,
.bento-recent {
  min-height: 100%;
}

.bento-ipad {
  min-height: 100%;
}

.bento-shot,
.bento-question,
.bento-chat,
.bento-ipad {
  padding-top: 24px;
}

.bento-shot .gallery-caption,
.bento-question .gallery-caption,
.bento-chat .gallery-caption,
.bento-ipad .gallery-caption {
  width: calc(100% + 40px);
  margin: 0 -20px -20px;
}

ul,
ol {
  padding-left: 20px;
}

.muted {
  color: var(--muted);
}

.site-footer {
  padding: 18px 0 36px;
}

.policy-layout {
  padding: 52px 0;
}

.policy {
  max-width: 820px;
  margin: 0 auto;
}

.policy h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.policy h2 {
  margin-top: 34px;
  font-size: 1.4rem;
}

.policy p,
.policy li {
  color: var(--text);
}

.policy .meta {
  color: var(--muted);
  margin-bottom: 24px;
}

code {
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, monospace;
  background: var(--card);
  padding: 0.15em 0.4em;
  border-radius: 0.4em;
}

@media (max-width: 860px) {
  .hero {
    padding: 56px 0 70px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .hero-showcase {
    height: clamp(350px, 88vw, 520px);
    margin-top: 56px;
  }

  .hero-phone {
    width: clamp(150px, 40vw, 230px);
    max-height: 88%;
    border-radius: 28px;
  }

  .hero-phone-main {
    width: clamp(190px, 52vw, 280px);
    max-height: 100%;
  }

  .hero-phone-left-inner {
    transform: translateX(-88%) translateY(38px) rotate(-5deg);
  }

  .hero-phone-right-inner {
    transform: translateX(-12%) translateY(42px) rotate(5deg);
  }

  .hero-phone-left-outer,
  .hero-phone-right-outer {
    display: none;
  }

  .snap-section {
    padding: 26px 0 70px;
  }

  .snap-intro {
    margin-bottom: 36px;
  }

  .snap-intro h2 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .snap-intro p {
    font-size: clamp(1.12rem, 5vw, 1.45rem);
  }

  .snap-gallery {
    gap: 16px;
  }

  .snap-card {
    flex-basis: min(84vw, 340px);
  }

  .snap-card-ipad {
    flex-basis: min(76vw, 280px);
  }

  .snap-visual {
    height: 340px;
    padding: 18px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-hero,
  .bento-story,
  .bento-shot,
  .bento-question,
  .bento-selfhosted,
  .bento-native,
  .bento-recent,
  .bento-chat,
  .bento-ipad {
    grid-column: span 1;
    grid-row: span 1;
  }

  .site-header .wrap,
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-hero {
    padding: 20px;
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .hero-actions .button {
    width: 100%;
  }

  .hero-showcase {
    height: 390px;
  }

  .hero-phone-left-inner {
    transform: translateX(-76%) translateY(58px) rotate(-5deg);
  }

  .hero-phone-right-inner {
    transform: translateX(-24%) translateY(62px) rotate(5deg);
  }

  .snap-visual {
    height: 300px;
    border-radius: 22px;
  }

  .snap-card p {
    padding: 0 4px;
  }
}
