:root {
  --bg: #f5f7fb;
  --bg-gradient:
    radial-gradient(ellipse 80% 60% at 50% 0%, #e3ecff 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, #f0e7ff 0%, transparent 60%),
    linear-gradient(180deg, #f5f7fb 0%, #eef1f8 100%);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0066cc;
  --border: #d2d2d7;
  --max-width: 640px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f1a;
    --bg-gradient:
      radial-gradient(ellipse 80% 60% at 50% 0%, #1a2547 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 100% 100%, #2a1a3e 0%, transparent 60%),
      linear-gradient(180deg, #0b0f1a 0%, #0a0d18 100%);
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --accent: #2997ff;
    --border: #2c2c2e;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

header {
  text-align: center;
  margin-bottom: 48px;
}

header h1 {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header h1 a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

header h1 a::before {
  content: "";
  width: 1.4em;
  height: 1.4em;
  background: url('/favicon.png') center/contain no-repeat;
  flex-shrink: 0;
}

header .tagline {
  margin: 0 0 24px;
  font-size: 19px;
  color: var(--text-secondary);
}

.app-store-badge {
  display: inline-block;
  margin-top: 8px;
}

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

.actions {
  text-align: center;
  margin: 24px 0;
}

.primary-button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
}

.primary-button:hover {
  text-decoration: none;
  opacity: 0.9;
}

.security-note {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

main {
  margin-bottom: 64px;
}

main h2 {
  margin: 32px 0 16px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

main h2:first-child,
main > :first-child {
  margin-top: 0;
}

main h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

main p {
  margin: 0 0 16px;
}

main p:last-child {
  margin-bottom: 0;
}

main ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

main ul li {
  margin-bottom: 8px;
}

main ul li:last-child {
  margin-bottom: 0;
}

.features li strong {
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(127, 127, 127, 0.15);
  padding: 1px 6px;
  border-radius: 5px;
}

.effective-date {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: -8px;
}

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

a:hover {
  text-decoration: underline;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

footer nav {
  margin-bottom: 12px;
}

footer nav a {
  color: var(--text-secondary);
  margin: 0 12px;
}

footer .copyright {
  margin: 0;
}

@media (max-width: 480px) {
  .container { padding: 32px 20px; }
  header h1 { font-size: 32px; }
  header .tagline { font-size: 17px; }
  main h2 { font-size: 24px; }
}
