:root {
  color-scheme: light;
  --ink: #243033;
  --muted: #65767b;
  --line: #d9e6e3;
  --paper: #fffaf2;
  --surface: #ffffff;
  --sea: #247a82;
  --sea-dark: #14535b;
  --mint: #d9f2e8;
  --coral: #e86f57;
  --gold: #f1b94e;
  --shadow: 0 22px 70px rgba(36, 48, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 242, 232, 0.9), transparent 32rem),
    linear-gradient(180deg, #f7fbf4 0%, var(--paper) 38%, #ffffff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 230, 227, 0.78);
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(36, 48, 51, 0.18);
}

.brand span {
  overflow-wrap: anywhere;
}

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

.nav-links a {
  border-radius: 8px;
  padding: 8px 11px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--mint);
  color: var(--sea-dark);
  outline: none;
}

.hero,
.section,
.legal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  min-height: calc(100vh - 72px);
  align-items: center;
  padding: 58px 0 42px;
  gap: 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sea);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.button.primary,
.download-button.primary {
  border-color: var(--sea);
  background: var(--sea);
  color: #ffffff;
}

.button:hover,
.button:focus-visible,
.download-button:hover,
.download-button:focus-visible {
  border-color: var(--sea-dark);
  outline: none;
  transform: translateY(-1px);
}

.download-button.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.download-button.is-disabled:hover,
.download-button.is-disabled:focus-visible {
  border-color: var(--line);
  transform: none;
}

.phone-stack {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.phone-frame {
  position: absolute;
  width: min(245px, 54vw);
  overflow: hidden;
  border: 10px solid #263336;
  border-radius: 34px;
  background: #263336;
  box-shadow: var(--shadow);
}

.phone-frame:first-child {
  left: 0;
  top: 40px;
  transform: rotate(-5deg);
}

.phone-frame:last-child {
  right: 0;
  top: 6px;
  transform: rotate(5deg);
}

.phone-frame img {
  width: 100%;
  border-radius: 24px;
}

.section {
  padding: 58px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-header p,
.card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

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

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.download-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(36, 48, 51, 0.08);
}

.card,
.download-card {
  padding: 22px;
}

.card strong,
.download-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sea-dark);
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  border: 1px solid rgba(36, 122, 130, 0.24);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--mint);
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 800;
}

.url-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.url-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.url-item span {
  color: var(--muted);
  font-size: 14px;
}

.url-item a {
  color: var(--sea);
  font-weight: 900;
}

.legal-shell {
  padding: 52px 0 70px;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 22px;
}

.legal-card {
  padding: 28px;
}

.legal-card + .legal-card {
  margin-top: 18px;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.notice {
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  background: #fff4d6;
  color: #6a521a;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f8fbf7;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--sea);
  font-weight: 800;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
    gap: 34px;
  }

  .phone-stack {
    min-height: 560px;
  }

  .phone-frame:first-child {
    right: auto;
    left: 5%;
  }

  .phone-frame:last-child {
    right: 5%;
  }

  .grid,
  .download-grid,
  .url-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .legal-shell,
  .nav,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
  }

  .button,
  .download-button {
    width: 100%;
  }

  .phone-stack {
    min-height: 520px;
  }

  .phone-frame {
    width: 190px;
    border-width: 8px;
    border-radius: 28px;
  }

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

  .phone-frame:first-child {
    left: 0;
    top: 42px;
  }

  .phone-frame:last-child {
    right: 0;
  }

  .url-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
