/* ============================================================
   WebPZ Lite Landing Page — Styles
   Design: Refined Editorial — Clean, warm, elegant
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg: #faf8f5;
  --bg-alt: #f3f0eb;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #5c5c5c;
  --text-muted: #999;
  --accent: #e04a3a;
  --accent-hover: #c73a2c;
  --accent-soft: rgba(224, 74, 58, 0.08);
  --border: #e5e0da;
  --border-light: #f0ece6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.05), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-serif: 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 960px;
  --nav-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

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

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

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo svg { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

.nav-lang-switch {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.nav-lang-switch:hover { color: var(--text); border-color: #ccc; }

/* --- Hero --- */
.hero {
  padding: 140px 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  background: var(--surface);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-title-line {
  display: block;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.2;
  border-radius: 2px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

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

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: #ccc;
  background: #fafafa;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent, #e04a3a) 8%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transition: background 0.3s;
}

.feature-card:hover .feature-icon {
  background: color-mix(in srgb, var(--accent, #e04a3a) 14%, transparent);
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover .feature-icon::after { opacity: 1; }

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Steps --- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 auto 20px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* --- Privacy --- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.privacy-content .section-title {
  text-align: left;
  margin-bottom: 32px;
}

.privacy-content .section-label { margin-bottom: 12px; }

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.privacy-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.privacy-visual {
  display: flex;
  justify-content: center;
}

.privacy-shield {
  width: 160px;
  height: auto;
  opacity: 0.85;
}

/* --- Advanced Grid --- */
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advanced-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.advanced-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.advanced-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.advanced-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.advanced-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card-pro {
  border-color: var(--text);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
}

.pricing-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.pricing-amount {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #10b981;
}

.pricing-features li strong {
  font-weight: 500;
  color: var(--text);
}

.pricing-feature-muted {
  color: var(--text-muted) !important;
  padding-left: 26px;
}

/* --- Use Cases --- */
.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.usecase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: all 0.3s ease;
}

.usecase-card:hover {
  box-shadow: var(--shadow-md);
}

.usecase-reverse .usecase-visual {
  order: 1;
}
.usecase-reverse .usecase-body {
  order: 0;
}

.usecase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.usecase-illustration {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--uc-color, #e04a3a) 6%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.usecase-illustration::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--uc-color, #e04a3a) 15%, transparent);
}

.usecase-illustration svg {
  width: 120px;
  height: 120px;
}

.usecase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uc-color, var(--accent));
  background: color-mix(in srgb, var(--uc-color, #e04a3a) 10%, transparent);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.usecase-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 14px;
}

.usecase-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 400;
}

.usecase-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.usecase-desc strong {
  color: var(--text);
  font-weight: 500;
}

/* --- CTA --- */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cta-version {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a { color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-sep { color: var(--border); }

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

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.00s; }
.feature-card:nth-child(2) { animation-delay: 0.06s; }
.feature-card:nth-child(3) { animation-delay: 0.12s; }
.feature-card:nth-child(4) { animation-delay: 0.18s; }
.feature-card:nth-child(5) { animation-delay: 0.08s; }
.feature-card:nth-child(6) { animation-delay: 0.14s; }
.feature-card:nth-child(7) { animation-delay: 0.20s; }
.feature-card:nth-child(8) { animation-delay: 0.26s; }

.advanced-card:nth-child(1) { animation-delay: 0.0s; }
.advanced-card:nth-child(2) { animation-delay: 0.06s; }
.advanced-card:nth-child(3) { animation-delay: 0.12s; }
.advanced-card:nth-child(4) { animation-delay: 0.10s; }
.advanced-card:nth-child(5) { animation-delay: 0.16s; }
.advanced-card:nth-child(6) { animation-delay: 0.22s; }

.usecase-card:nth-child(1) { animation-delay: 0.00s; }
.usecase-card:nth-child(2) { animation-delay: 0.10s; }
.usecase-card:nth-child(3) { animation-delay: 0.20s; }
.usecase-card:nth-child(4) { animation-delay: 0.15s; }
.usecase-card:nth-child(5) { animation-delay: 0.25s; }
.usecase-card:nth-child(6) { animation-delay: 0.30s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 120px 0 72px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section { padding: 72px 0; }
  .section-title { font-size: 26px; }
  .section-header { margin-bottom: 40px; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 24px 20px; }

  .steps { flex-direction: column; align-items: center; gap: 12px; }
  .step-connector { width: 2px; height: 32px; margin: 0; }

  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .privacy-shield { width: 120px; }

  .advanced-grid { grid-template-columns: 1fr; gap: 12px; }

  .usecase-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
  .usecase-reverse .usecase-visual { order: 0; }
  .usecase-illustration { width: 140px; height: 140px; }
  .usecase-illustration svg { width: 90px; height: 90px; }
  .usecase-title { font-size: 20px; }

  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  .pricing-card { padding: 32px 24px; }

  .cta-title { font-size: 26px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-section { padding: 72px 0; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }

  .nav-links { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .advanced-grid { grid-template-columns: repeat(2, 1fr); }
  .usecase-card { gap: 32px; padding: 36px 28px; }
  .usecase-illustration { width: 150px; height: 150px; }
  .usecase-illustration svg { width: 100px; height: 100px; }
}
