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

:root {
  --bg: #fff;
  --bg-alt: #f7f8fa;
  --text: #333a4e;
  --text-secondary: #6b7280;
  --accent: #138caf;
  --cta: #c74c0a;
  --success: #16a34a;
  --danger: #dc2626;
  --border: #e5e7eb;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
img, svg { max-width: 100%; height: auto; }

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

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 56px;
}
.header-logo {
  font-size: 18px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--text-primary); text-decoration: none; line-height: 1;
}
.header-logo span { color: var(--accent); }
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--text); }
/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 4px 0; transition: all 0.3s;
}

/* Language switcher */
.lang-switch { display: flex; gap: 2px; }
.lang-btn {
  background: none; border: 1px solid transparent;
  padding: 4px 8px; font-size: 11px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  border-radius: 4px; transition: all 0.2s;
  font-family: inherit;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: var(--accent); border-color: var(--accent);
  background: rgba(19,140,175,0.06);
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px;
  font-size: 14px; font-weight: 600; border-radius: 6px;
  border: 1.5px solid transparent; cursor: pointer; transition: all 0.2s;
  text-decoration: none; text-align: center; line-height: 1.4;
  font-family: inherit;
}
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: #a83f08; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: rgba(19,140,175,0.06); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-block { width: 100%; display: block; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero-inner {
  display: flex; align-items: center; gap: 60px;
}
.hero-content { flex: 1; }
.hero-title {
  font-size: 42px; font-weight: 700; line-height: 1.2;
  color: var(--text); margin-bottom: 20px;
  text-wrap: balance;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 17px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
  text-wrap: pretty;
}
.hero-note {
  margin-top: 16px; font-size: 13px; color: var(--text-secondary);
}
.hero-image {
  flex: 1; max-width: 520px;
  border-radius: 10px; border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  background: var(--bg-alt);
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-secondary);
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Section shared */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 30px; font-weight: 700; text-align: center;
  margin-bottom: 12px; color: var(--text);
  text-wrap: balance;
}
.section-subtitle {
  font-size: 15px; color: var(--text-secondary);
  text-align: center; max-width: 600px; margin: 0 auto 48px;
  text-wrap: pretty;
}

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(19,140,175,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--accent); }
.feature-title {
  font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text);
}
.feature-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; text-wrap: pretty; }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 40px;
}
.stat-card {
  text-align: center; padding: 32px 20px;
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
}
.stat-number {
  font-size: 56px; font-weight: 800; color: var(--danger);
  line-height: 1; margin-bottom: 12px;
}
.stat-desc {
  font-size: 14px; color: var(--text); line-height: 1.5;
  margin-bottom: 12px; text-wrap: pretty;
}
.stat-source {
  font-size: 11px; color: var(--text-secondary); line-height: 1.4;
  font-style: italic;
}
.stats-conclusion {
  text-align: center; max-width: 640px; margin: 0 auto;
  font-size: 16px; color: var(--text); line-height: 1.7;
  font-weight: 500; text-wrap: pretty;
}

/* Platform */
.platform-showcase {
  display: flex; gap: 48px; align-items: center;
}
.platform-image {
  flex: 1.3; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.platform-image img { width: 100%; display: block; }
.platform-highlights {
  flex: 1; display: flex; flex-direction: column; gap: 24px;
}
.platform-item h3 {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.platform-item p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  text-wrap: pretty;
}

/* How It Works */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px;
}
.step {
  flex: 1; text-align: center; padding: 24px 16px;
  position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.step + .step::before {
  content: '';
  position: absolute; top: 42px; left: -12px;
  width: 24px; height: 2px; background: var(--border);
}

/* Security */
.security-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 700px; margin: 0 auto;
}
.security-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
}
.security-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(22,163,74,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.security-check svg { width: 12px; height: 12px; color: var(--success); }
.security-text { font-size: 14px; color: var(--text); }
.security-text strong { font-weight: 600; display: block; margin-bottom: 2px; }
.security-text span { font-size: 12px; color: var(--text-secondary); }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 32px 24px; text-align: center;
  background: var(--bg);
  transition: box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.pricing-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(19,140,175,0.12);
  position: relative;
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600; padding: 3px 12px;
  border-radius: 10px; text-transform: uppercase;
}
.pricing-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-price {
  font-size: 36px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.pricing-price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.pricing-desc {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none; text-align: left;
  margin-bottom: 28px; flex: 1;
}
.pricing-features li {
  font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
  color: var(--text);
}
.pricing-features li::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  margin-right: 8px; vertical-align: middle;
}
.pricing-note {
  text-align: center; margin-top: 32px;
  font-size: 13px; color: var(--text-secondary);
}

/* CTA section */
.cta-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 80px 0;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo {
  font-size: 16px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--text-primary); text-decoration: none; line-height: 1;
  margin-bottom: 12px; display: inline-block;
}
.footer-logo span { color: var(--accent); }
.footer-text { font-size: 12px; color: var(--text-secondary); }
.footer-text a { color: var(--accent); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  align-items: center; justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 4px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.hero-image, .platform-image { cursor: zoom-in; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center; justify-content: center;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--bg);
  border-radius: 12px;
  padding: 40px;
  width: 100%; max-width: 420px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 24px;
  color: var(--text-secondary); cursor: pointer;
  line-height: 1; padding: 4px;
}
.modal-close:hover { color: var(--text); }

/* Auth forms */
.auth-title {
  font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--text);
}
.auth-subtitle {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 24px;
}
.auth-error {
  font-size: 13px; color: var(--danger);
  margin-bottom: 12px; min-height: 0;
}
.auth-error:empty { display: none; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text); margin-bottom: 6px; margin-top: 16px;
}
.form-label:first-of-type { margin-top: 0; }
.form-input {
  width: 100%; padding: 10px 12px;
  font-size: 14px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--bg);
  color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(19,140,175,0.1);
}
/* Google Sign-In button */
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 11px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
}
.btn-google:hover {
  background: var(--bg-alt);
  border-color: #ccc;
}
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  font-size: 12px; color: var(--text-secondary);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-submit {
  margin-top: 24px;
}
.auth-switch {
  margin-top: 20px; text-align: center;
  font-size: 13px; color: var(--text-secondary);
}
.auth-switch a {
  color: var(--accent); font-weight: 500;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .header-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 12px;
  }
  .btn-sm.btn-outline, .btn-sm.btn-cta {
    display: none;
  }

  .hero { padding: 90px 0 50px; }
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-image { max-width: 100%; }

  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }

  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-number { font-size: 42px; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  .platform-showcase { flex-direction: column; gap: 24px; }

  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step + .step::before { display: none; }

  .security-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }

  .modal { margin: 16px; padding: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .btn { padding: 10px 20px; font-size: 13px; }
  .btn-lg { padding: 14px 32px; font-size: 15px; }
}
