/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #00B42A;
  --color-primary-dark: #009A22;
  --color-accent: #F53F3F;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F8FA;
  --color-text: #1D2129;
  --color-text-secondary: #4E5969;
  --color-text-muted: #86909C;
  --color-border: #E5E6EB;
  --max-width: 1100px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.nav-logo img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  background: linear-gradient(135deg, #E8F9EC 0%, #F0FDF4 50%, #ECFDF5 100%);
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0, 180, 42, 0.2);
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-badge {
  font-size: 12px;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.06);
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

/* ===== Section ===== */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ===== Features ===== */
.features {
  background: var(--color-bg-alt);
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.icon-green {
  background: #E8F9EC;
  color: var(--color-primary);
}

.icon-blue {
  background: #E8F2FF;
  color: #4080FF;
}

.icon-orange {
  background: #FFF3E8;
  color: #FF7D00;
}

.icon-red {
  background: #FFE8E8;
  color: var(--color-accent);
}

.icon-purple {
  background: #F3E8FF;
  color: #7B61FF;
}

.icon-teal {
  background: #E8FFF3;
  color: #00B8A9;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Screenshots ===== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screenshot-item {
  text-align: center;
}

.screenshot-item img {
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
}

.screenshot-item p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: #1D2129;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer p {
  font-size: 13px;
  margin-bottom: 6px;
}

/* ===== Document Pages (privacy & terms) ===== */
.doc-page {
  padding: 100px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.doc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.doc-nav a {
  color: var(--color-text-muted);
}

.doc-nav a:hover {
  color: var(--color-primary);
}

.doc-page h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-page .doc-meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.doc-page h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.doc-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}

.doc-page h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

.doc-page p {
  margin-bottom: 14px;
  color: var(--color-text-secondary);
}

.doc-page ul,
.doc-page ol {
  margin-bottom: 14px;
  padding-left: 24px;
  color: var(--color-text-secondary);
}

.doc-page li {
  margin-bottom: 6px;
}

.doc-page strong {
  color: var(--color-text);
}

.doc-page hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

.doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.doc-page th,
.doc-page td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}

.doc-page th {
  background: var(--color-bg-alt);
  font-weight: 600;
}

.doc-page td {
  color: var(--color-text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero .tagline {
    font-size: 16px;
  }

  .features-grid,
  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .doc-page {
    padding: 80px 16px 40px;
  }

  .doc-page h1 {
    font-size: 24px;
  }
}
