:root {
  --color-primary: #FF6B6B;
  --color-secondary: #8B5CF6;
  --color-gold: #F59E0B;
  --color-blue: #3B82F6;
  --bg-white: #FFFFFF;
  --text-dark: #111827;
  --text-gray: #6B7280;
  --border-gray: #E5E7EB;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  padding: 1rem 0;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #FF6B6B 0%, #8B5CF6 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.btn-primary {
  background: white;
  color: var(--color-primary);
}

.btn-secondary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
}

/* Calculators */
.calculators {
  padding: 4rem 0;
}

.calculators h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.calculator-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Tablet */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .calculator-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile menu */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: opacity 0.2s, visibility 0.2s;
  }
  
  .nav-menu.hidden {
    display: none;
  }
}


/* Calculator Pages */
.calculator-page {
  padding: 3rem 0;
  min-height: 70vh;
}

.calculator-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.social-proof {
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero .social-proof {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.calculator-card {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-gray);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.result-card {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.result-score {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.result-names {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin: 1rem 0;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn-share {
  flex: 1;
  padding: 0.75rem 1rem;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp {
  background: #25D366;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
}

.btn-twitter {
  background: #000000;
}

.btn-twitter:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .calculator-page h1 {
    font-size: 3rem;
  }
}

.btn-example {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--border-gray);
  border-radius: 20px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-example:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 1s ease-out;
  border-radius: 10px;
}

/* Legal Pages */
.legal-page {
  padding: 2rem 0;
  max-width: 800px;
}

.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .legal-page {
    padding: 3rem 0;
  }
  
  .legal-page h1 {
    font-size: 2.5rem;
  }
  
  .legal-page h2 {
    font-size: 1.5rem;
  }
}

/* Blog Article Styling */
.legal-page article {
  max-width: 800px;
  margin: 0 auto;
}

.legal-page article h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FF6B6B 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page article h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-gray);
  padding-bottom: 0.5rem;
}

.legal-page article h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.legal-page article h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.legal-page article p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.legal-page article em {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.legal-page article ul,
.legal-page article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.8;
}

.legal-page article li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.legal-page article strong {
  color: var(--color-primary);
  font-weight: 600;
}

.legal-page article a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.legal-page article a:hover {
  border-bottom-color: var(--color-primary);
}

.legal-page article > div {
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .legal-page article h1 {
    font-size: 2.5rem;
  }
  
  .legal-page article h2 {
    font-size: 1.75rem;
  }
}
