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

:root {
  /* Deep navy + teal — trust, authority, data */
  --color-primary: #0f2b5b;
  --color-primary-light: #1a3f7a;
  --color-accent: #0d9488;
  --color-accent-light: #14b8a6;
  --color-text: #1e293b;
  --color-text-light: #475569;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafb;
  --color-bg-dark: #0b1929;
  --color-border: #e2e8f0;
  --color-success: #0d9488;
  --color-warning: #d97706;
  --max-width: 1140px;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-heading); }

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

/* Header */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

/* Language Switcher */
.lang-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 4px 0;
}

.lang-bar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.lang-bar a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-bar a:hover {
  color: var(--color-primary);
  background: var(--color-border);
}

.lang-bar a.active {
  color: var(--color-bg);
  background: var(--color-accent);
  font-weight: 600;
}

nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--color-primary); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-light); }
.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-secondary:hover { background: var(--color-primary-light); }
.btn-outline { border: 2px solid var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-outline-light { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-large { padding: 14px 36px; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #eef5f4 0%, var(--color-bg) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-primary);
  letter-spacing: -1px;
}

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

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto 32px;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 2rem; color: var(--color-accent); font-weight: 800; }
.hero-stat span { font-size: 0.9rem; color: var(--color-text-light); }

.hero-summary {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  text-align: left;
}

/* Sections */
section { padding: 72px 0; }
section:nth-child(even) { background: var(--color-bg-alt); }

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  background: #fff;
  border-left: 4px solid var(--color-warning);
  border-radius: 0 8px 8px 0;
  padding: 24px;
}

.problem-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.problem-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* Solution Card */
.solution-card {
  background: #fff;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 24px;
}

.solution-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.solution-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  background: #ecfdf5;
  color: var(--color-accent);
  font-weight: 700;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

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

.feature-card ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}
.feature-card ul li { margin-bottom: 4px; }

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.steps h3 { margin-bottom: 8px; font-size: 1.1rem; }
.steps p { color: var(--color-text-light); font-size: 0.9rem; }

/* Comparison Table */
.comparison-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.comparison-table th, .comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.comparison-table thead th:first-child { border-radius: 8px 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 8px 0 0; }
.comparison-table tbody tr:hover { background: #f0faf9; }

.check { color: var(--color-success); font-weight: 700; }
.no { color: #94a3b8; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--color-primary); }
.pricing-card .pricing-desc { color: var(--color-text-light); font-size: 0.9rem; min-height: 44px; }

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 16px 0 4px;
}

.pricing-amount span { font-size: 1rem; font-weight: 400; color: var(--color-text-light); }

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.pricing-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card ul li::before {
  content: "\2713\00a0";
  color: var(--color-success);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; }

/* API Pricing */
.api-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  max-width: 800px;
  margin: 0 auto;
}

.api-pricing-table th, .api-pricing-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.api-pricing-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.api-pricing-table thead th:first-child { border-radius: 8px 0 0 0; }
.api-pricing-table thead th:last-child { border-radius: 0 8px 0 0; }
.api-pricing-table tbody tr:hover { background: #f0faf9; }

.api-pricing-table .free-tag {
  background: #ecfdf5;
  color: var(--color-accent);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Developer Section */
.dev-section {
  background: var(--color-bg-dark);
  color: #fff;
}

.dev-section .section-header h2 { color: #fff; }
.dev-section .section-header p { color: #94a3b8; }

.code-block {
  background: #162033;
  border: 1px solid #1e3050;
  border-radius: 8px;
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  text-align: left;
}

.code-block .comment { color: #64748b; }
.code-block .keyword { color: var(--color-accent-light); }
.code-block .string { color: #fbbf24; }

.dev-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.dev-feature {
  text-align: center;
  padding: 24px;
}

.dev-feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.dev-feature p { color: #94a3b8; font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.faq-item p { color: var(--color-text-light); font-size: 0.95rem; }

/* CTA Section */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.cta-section h2 { font-size: 2rem; margin-bottom: 16px; font-weight: 800; }
.cta-section p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer {
  background: var(--color-bg-dark);
  color: #94a3b8;
  padding: 40px 0 24px;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .logo { font-size: 1.3rem; color: #fff; }
.footer-brand .logo span { color: var(--color-accent); }
.footer-brand p { margin-top: 8px; font-size: 0.85rem; max-width: 300px; }

.footer-links h4 { color: #e2e8f0; font-size: 0.9rem; margin-bottom: 12px; }
.footer-links a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  nav { gap: 12px; }
  .header-inner { justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .dev-features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
