/* Nivalo Landing Page — Shared Stylesheet
   Design tokens match the Flutter app theme (app_theme.dart):
   - Primary gradient: #E91E63 → #9C27B0
   - Font: Poppins
   - Radii: 12-16px
   - Soft shadows
*/

:root {
  --pink: #E91E63;
  --purple: #9C27B0;
  --pink-light: #F8BBD0;
  --purple-light: #E1BEE7;
  --bg-light: #F8F5F5;
  --bg-dark: #121212;
  --card-dark: #1E1E1E;
  --text-primary: #1A1A1A;
  --text-secondary: #555;
  --text-muted: #888;
  --white: #FFFFFF;
  --green: #4CAF50;
  --red: #EF5350;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-hero: 0 8px 32px rgba(233, 30, 99, 0.15);
  --gradient-primary: linear-gradient(135deg, #E91E63 0%, #9C27B0 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.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(248, 245, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-card);
}

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

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

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

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

.nav-lang {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-lang button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-lang button.active {
  color: var(--white);
  background: var(--gradient-primary);
}

/* === Hero === */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.08) 0%, transparent 60%);
  z-index: -1;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 400;
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-hero);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(233, 30, 99, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(0, 0, 0, 0.12);
}

.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* === Trust badges === */
.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: var(--radius-full, 999px);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* === CTA section === */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: var(--gradient-subtle);
  border-radius: var(--radius-xl);
  margin: 40px 24px;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* === Footer === */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  margin-top: 80px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--pink-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

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

.legal-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content a {
  color: var(--pink);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero {
    padding: 120px 0 60px;
  }

  .trust-badges {
    gap: 12px;
  }

  .trust-badge {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* === Hidden by default (language toggle) === */
[lang]:not(:root) {
  display: none;
}

html[lang="de"] [data-lang="de"] {
  display: block;
}

html[lang="en"] [data-lang="en"] {
  display: block;
}

html[lang="de"] [data-lang="en"] {
  display: none;
}

html[lang="en"] [data-lang="de"] {
  display: none;
}

/* Inline elements for language toggle */
html[lang="de"] span[data-lang="de"],
html[lang="en"] span[data-lang="en"] {
  display: inline;
}

/* Early Access Form */
.early-access-form {
  margin-top: 32px;
}

.early-access-form .form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.early-access-form .form-row input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.early-access-form .form-row input:focus {
  border-color: var(--pink);
}

@media (max-width: 600px) {
  .early-access-form .form-row {
    flex-direction: column;
  }
}

/* Google Account hint — prominent box below the form */
.google-account-hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.08) 0%, rgba(156, 39, 176, 0.08) 100%);
  border: 1px solid rgba(233, 30, 99, 0.2);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}

.google-account-hint svg {
  color: var(--pink);
  flex-shrink: 0;
}

/* SEO Text Section */
.seo-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.seo-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* FAQ Section */
.faq-list {
  margin-top: 32px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.share-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-twitter { background: #000000; }
.share-facebook { background: #1877F2; }
.share-email { background: var(--text-secondary); }

@media (max-width: 600px) {
  .share-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }
}
