:root {
  --bg: #f4f6f8;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --border: rgba(14, 30, 37, 0.12);
  --text: #0f1f25;
  --text-soft: #4c5d63;
  --accent: #1d7a68;
  --accent-strong: #0f6a5a;
  --accent-soft: rgba(29, 122, 104, 0.12);
  --shadow: 0 20px 60px rgba(16, 36, 43, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width: 1120px;
}

* {
  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;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 122, 104, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(60, 116, 196, 0.1), transparent 28%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell,
.legal-shell {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
}

.full-bleed-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  transition:
    background-color 0.18s ease,
    backdrop-filter 0.18s ease,
    box-shadow 0.18s ease;
}

.full-bleed-header.is-scrolled {
  background: rgba(244, 246, 248, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(16, 36, 43, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(29, 122, 104, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(15, 31, 37, 0.18);
  transform: scaleX(0.4);
  transform-origin: left;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  background: rgba(15, 31, 37, 0.4);
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 42px 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.callout-card h2,
.legal-page h1 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5vw, 5rem);
}

.hero-text,
.section-head p,
.callout-card p,
.site-footer p,
.legal-page p,
.legal-page li {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text-compact {
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.callout-actions {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  align-self: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  gap: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #2e9884, #3c74c4);
  color: white;
  box-shadow: 0 18px 40px rgba(29, 122, 104, 0.22);
}

.button-secondary {
  border: 1.5px solid rgba(14, 30, 37, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(16, 36, 43, 0.04);
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

.hero-github-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 5px;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease;
}

.store-badge-link:hover {
  transform: translateY(-1px);
}

.store-badge {
  height: 40px;
  width: auto;
  display: block;
}

.callout-actions .store-badge-link {
  width: 190px;
  justify-content: center;
}

.callout-actions .store-badge {
  width: 100%;
  height: auto;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-point,
.feature-card,
.shot-card,
.callout-card,
.legal-page section {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-point,
.feature-card {
  padding: 18px;
}

.hero-point {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72));
  box-shadow: 0 14px 34px rgba(16, 36, 43, 0.06);
}

.point-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-visual {
  position: relative;
}

.phone-frame {
  max-width: 360px;
  margin-left: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  box-shadow: 0 24px 70px rgba(16, 36, 43, 0.14);
}

.phone-frame img {
  border-radius: 28px;
}

.section-block {
  padding: 36px 0 28px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 14px;
}

.feature-grid,
.screenshot-grid {
  display: grid;
  gap: 16px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.feature-card h3,
.workflow-card h3,
.shot-card strong,
.footer-title,
.legal-page h2,
.legal-page h3 {
  letter-spacing: -0.03em;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.feature-card p {
  margin: 0;
}

.workflow-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72));
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(16, 36, 43, 0.06);
}

.workflow-step {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.workflow-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.screenshot-grid {
  column-count: 4;
  column-gap: 16px;
  display: block;
}

.shot-card {
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  padding: 12px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.shot-card:nth-child(4n + 2) {
  transform: translateY(34px);
}

.shot-card:nth-child(4n + 3) {
  transform: translateY(16px);
}

.shot-card:nth-child(4n + 4) {
  transform: translateY(52px);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 18px;
  background: #ebeff1;
}

.shot-card figcaption {
  display: grid;
  gap: 6px;
  padding: 12px 4px 2px;
}

.shot-card span {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  .shot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px rgba(16, 36, 43, 0.12);
  }

  .shot-card:nth-child(4n + 2):hover {
    transform: translateY(31px);
  }

  .shot-card:nth-child(4n + 3):hover {
    transform: translateY(13px);
  }

  .shot-card:nth-child(4n + 4):hover {
    transform: translateY(49px);
  }
}

.callout {
  padding-top: 48px;
}

.callout-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  padding: 28px;
}

.callout-actions .button-secondary {
  min-width: 190px;
  border-radius: 8px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 0 56px;
}

.site-footer-centered {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(29, 122, 104, 0.14);
}

.footer-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 0 80px;
}

.legal-page h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin-bottom: 10px;
}

.legal-updated {
  margin: 0 0 28px;
}

.legal-page section {
  margin-top: 18px;
  padding: 24px;
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.legal-page h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 2px 6px;
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .phone-frame {
    margin: 0 auto;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 1020px) {
  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .callout-card,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

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

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    column-count: 2;
  }

  .callout-actions {
    flex-wrap: wrap;
  }

  .shot-card:nth-child(4n + 2),
  .shot-card:nth-child(4n + 3),
  .shot-card:nth-child(4n + 4) {
    transform: none;
  }

  .shot-card:nth-child(2n) {
    transform: none;
  }

  .shot-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
}

@media (hover: none), (pointer: coarse) {
  .shot-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 720px) {
  .page-shell,
  .legal-shell {
    width: min(var(--max-width), calc(100vw - 40px));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 8px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 22px;
  }

  .hero-points,
  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    column-count: 1;
  }

  .shot-card {
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
    padding: 7px;
    margin-bottom: 10px;
  }

  .shot-card img {
    aspect-ratio: 9 / 14.8;
    object-fit: contain;
    object-position: top center;
  }

  .shot-card figcaption {
    padding: 8px 4px 2px;
  }

  .shot-card strong {
    font-size: 0.92rem;
  }

  .shot-card span {
    font-size: 0.85rem;
  }

  .callout-card {
    padding: 22px;
  }

  .callout-actions .button-secondary {
    min-width: 0;
    width: 274px;
    min-height: 50px;
    font-size: 0.9rem;
  }

  .store-badge {
    height: 48px;
  }

  .shot-card:nth-child(2n) {
    transform: none;
  }

  .phone-frame {
    margin: 0 auto;
  }

  .site-footer {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding-top: 28px;
  }

  .footer-logo {
    width: 34px;
    height: 34px;
  }

  .footer-title {
    margin: 0;
  }

  .legal-page section {
    padding: 20px;
  }
}

@media (max-width: 980px), (hover: none), (pointer: coarse) {
  .shot-card,
  .shot-card:nth-child(4n + 2),
  .shot-card:nth-child(4n + 3),
  .shot-card:nth-child(4n + 4),
  .shot-card:nth-child(2n),
  .shot-card:hover,
  .shot-card:nth-child(4n + 2):hover,
  .shot-card:nth-child(4n + 3):hover,
  .shot-card:nth-child(4n + 4):hover,
  .shot-card:nth-child(2n):hover {
    transform: none !important;
    box-shadow: var(--shadow) !important;
  }
}
