:root {
  --primary: #185FA5;
  --primary-dark: #124b84;
  --primary-light: #e8f1fa;
  --text: #1c2733;
  --text-muted: #5b6b7a;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --border: #e2e8ef;
  --radius: 14px;
  --max-width: 1120px;
  --shadow: 0 10px 30px rgba(24, 95, 165, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

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

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

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button.active {
  background: var(--primary);
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, #ffffff 100%);
  padding: 80px 0 64px;
  text-align: center;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: #111827;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.store-btn.disabled {
  background: #f1f4f8;
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px dashed var(--border);
}

.store-btn.disabled:hover { transform: none; box-shadow: none; }

.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Sections */
section { padding: 72px 0; }

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

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

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0 4px;
}

.pricing-card .price span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card .price-unit {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: inline-block;
}

.pricing-list li {
  padding: 8px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover { background: var(--primary-dark); }

/* Footer */
.site-footer {
  background: #101828;
  color: #cbd5e1;
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1f2a3a;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8896a8;
  text-align: center;
}

/* Privacy page */
.policy {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.policy h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.policy .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.policy h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--primary);
}

.policy p, .policy li {
  color: var(--text);
  font-size: 0.98rem;
}

.policy ul { padding-left: 20px; }

.policy .toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 40px;
}

.policy .toc h2 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--text);
}

.policy .toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}

.policy .toc li { margin-bottom: 6px; }

.policy .toc a { color: var(--primary); }

.policy section { padding: 0; margin-top: 36px; scroll-margin-top: 96px; }

.policy section:first-of-type { margin-top: 0; }

@media (max-width: 560px) {
  .policy .toc ol { columns: 1; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.05rem; }
  section { padding: 56px 0; }
  .footer-grid { flex-direction: column; }
}
