/* SuomiSpeak Website — Dark theme matching the app */
:root {
  --bg: #0A0E1A;
  --surface: #141829;
  --card: #1A1F35;
  --border: #252B45;
  --primary-blue: #4A90D9;
  --primary-gold: #F5A623;
  --accent-green: #4CD964;
  --text-primary: #F5F5F7;
  --text-secondary: #A0A4B8;
  --text-muted: #6B6F82;
  --gradient-blue: linear-gradient(135deg, #4A90D9, #357ABD);
  --gradient-gold: linear-gradient(135deg, #F5A623, #E8961C);
}

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

html { scroll-behavior: smooth; }

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

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .flag { font-size: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gradient-blue);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.9; text-decoration: none !important; }

/* Hero */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(74, 144, 217, 0.08) 0%, transparent 60%);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(74, 144, 217, 0.12);
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { opacity: 0.9; text-decoration: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}

.btn-secondary:hover { background: var(--surface); text-decoration: none; }

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

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-gold);
}

.hero-stat .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

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

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

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon.blue { background: rgba(74, 144, 217, 0.12); }
.feature-icon.gold { background: rgba(245, 166, 35, 0.12); }
.feature-icon.green { background: rgba(76, 217, 100, 0.12); }
.feature-icon.purple { background: rgba(156, 106, 222, 0.12); }

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

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Comparison table */
.comparison-section {
  padding: 80px 24px;
  background: var(--surface);
}

.comparison-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--card);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table .highlight-row {
  background: rgba(74, 144, 217, 0.06);
}

.comparison-table .highlight-row td:first-child {
  color: var(--primary-blue);
  font-weight: 700;
}

.check { color: var(--accent-green); font-weight: 700; }
.cross { color: #FF3B30; font-weight: 700; }
.partial { color: var(--primary-gold); font-weight: 600; }

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

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover { transform: translateY(-2px); }

.pricing-card.popular {
  border-color: var(--primary-gold);
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  text-transform: uppercase;
}

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

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  margin: 16px 0 4px;
}

.pricing-price .currency { font-size: 20px; vertical-align: super; }
.pricing-price .period { font-size: 14px; color: var(--text-muted); font-weight: 400; }

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

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

.pricing-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 14px;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.pricing-btn.gold {
  background: var(--gradient-gold);
  color: #fff;
}

.pricing-btn.blue {
  background: var(--gradient-blue);
  color: #fff;
}

.pricing-btn:hover { opacity: 0.9; text-decoration: none; }

/* CTA */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  background: radial-gradient(ellipse at bottom, rgba(245, 166, 35, 0.06) 0%, transparent 60%);
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

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

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--primary-blue);
}

.legal p, .legal li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal a { color: var(--primary-gold); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 24px; }
  .comparison-table-wrap { margin: 0 -12px; border-radius: 0; }
  .section { padding: 60px 20px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
}
