:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --surface: #ffffff;
  --tint: #f5f5f7;
  --accent: #ff6b3d;
  --hairline: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.47;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

/* Sticky frosted navigation */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  max-width: 1024px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.nav-cta {
  text-decoration: none;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.84;
}

/* Hero */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 76px 24px 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  line-height: 1.42;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* Download buttons */
.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 214px;
  min-height: 54px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}

.dl-btn.primary {
  background: linear-gradient(135deg, #ffc629 0%, #ff6b3d 52%, #ff2d8b 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 107, 61, 0.25);
}

.dl-btn.primary .dl-sub {
  opacity: 0.92;
}

.dl-btn.dark {
  background: var(--ink);
  color: var(--surface);
}

.dl-btn.light {
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.dl-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.dl-btn:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dl-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dl-icon {
  font-size: 18px;
  line-height: 1;
}

.dl-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.dl-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
}

.dl-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.checksum-strip {
  margin: 18px auto 0;
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.checksum-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--muted);
}

.checksum-chip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
  font-size: 11px;
}

.chip-copy {
  border: none;
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--hairline);
}

.chip-copy:hover {
  opacity: 0.8;
}

/* Minimalist device showcase */
.showcase {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(310px, 100%);
  background: var(--tint);
  border: 1px solid var(--hairline);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.08);
}

.phone-notch {
  width: 84px;
  height: 20px;
  background: var(--ink);
  border-radius: 999px;
  margin: 4px auto 12px;
}

.phone-screen {
  background: var(--surface);
  border-radius: 30px;
  padding: 18px 14px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
}

.mock-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc629, #ff5e62, #ff2d8b);
  flex-shrink: 0;
}

.mock-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mock-status {
  font-size: 11px;
  color: var(--muted);
}

.mock-card {
  background: var(--tint);
  border-radius: 16px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-card-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mock-card-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.mock-meter {
  background: linear-gradient(135deg, #ff7a45, #ff2d8b);
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.mock-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.mock-fill {
  display: block;
  width: 42%;
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
}

/* Feature Bento Section */
.section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 72px 24px 84px;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 17px;
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--tint);
  border-radius: 24px;
  padding: 32px 28px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.bento-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.bento-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 84px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--tint);
  border-radius: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item a {
  color: var(--ink);
  font-weight: 500;
}

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--tint);
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 84px;
  overflow-wrap: anywhere;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}

.legal section {
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.legal p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.legal ul {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--ink);
  font-weight: 500;
}

.legal code {
  background: var(--tint);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
}

@media (max-width: 820px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 10px 16px;
  }

  .hero {
    padding: 36px 16px 28px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .hero-sub {
    margin-bottom: 24px;
  }

  .downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dl-btn {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    gap: 8px;
  }

  .dl-btn.primary {
    grid-column: 1 / -1;
    padding: 14px 20px;
  }

  .dl-title {
    font-size: 14px;
  }

  .showcase {
    margin-top: 36px;
  }

  .section {
    padding: 48px 16px 56px;
  }

  .faq-section {
    padding: 0 16px 56px;
  }

  .legal {
    padding: 36px 16px 56px;
  }

  .footer-inner {
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 12px 16px;
  }
}
