/* 99Pages — Apple-inspired Light Theme */

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

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --transition: all 0.2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

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

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: var(--transition);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Buttons ===== */
.btn-ghost {
  padding: 7px 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-ghost:hover { color: var(--text); background: var(--bg-secondary); }

.btn-primary {
  display: inline-block;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  padding: 9px 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-secondary); }

.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 10px; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ===== Section Helpers ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat { text-align: left; }
.stat-value { display: block; font-size: 24px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.hero-visual {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ===== Products ===== */
.products {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(37,99,235,0.03) 0%, rgba(37,99,235,0) 100%);
}

.product-icon {
  margin-bottom: 16px;
}

.product-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.product-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  margin-bottom: 12px;
}

.product-tag {
  padding: 3px 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.product-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.step-card {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Featured Article ===== */
.featured-article {
  padding: 80px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.featured-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.featured-content .section-tag { margin-bottom: 12px; }

.featured-content h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.featured-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ===== Articles ===== */
.articles {
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-image {
  height: 180px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 20px;
}

.article-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.article-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-date {
  font-size: 11px;
  color: var(--text-muted);
}

.article-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.articles-more {
  text-align: center;
  margin-top: 32px;
}

/* ===== Tools ===== */
.tools {
  padding: 80px 0;
}

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

.tool-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tool-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.tool-rating {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.tool-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tags span {
  padding: 3px 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.tools-more {
  text-align: center;
  margin-top: 32px;
}

/* ===== AEO Section ===== */
.aeo-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
}

.aeo-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.aeo-card .section-tag { margin-bottom: 12px; }

.aeo-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.aeo-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.aeo-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 12px;
}

.aeo-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.aeo-input:focus { outline: none; border-color: var(--primary); }

.aeo-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Community ===== */
.community {
  padding: 80px 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.community-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.community-image {
  height: 200px;
  overflow: hidden;
}

.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-body {
  padding: 24px;
}

.community-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.community-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.community-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.community-stat { text-align: center; }
.community-stat .stat-value { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.community-stat .stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ===== Pricing ===== */
.pricing {
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.pricing-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 12px;
}

.price-amount {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 8px;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .featured-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-stats { flex-wrap: wrap; gap: 24px; }
  .nav { display: none; }
  .section-header h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}