/* ===================================
   CSS Variables & Reset
   =================================== */

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --primary-light: #7c8ff0;
  --secondary: #764ba2;
  --accent: #48bb78;
  --accent-dark: #38a169;
  
  --success: #48bb78;
  --warning: #f6ad55;
  --danger: #fc8181;
  --info: #4299e1;
  
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #718096;
  
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  
  --container-width: 1200px;
  --section-padding: 80px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* ===================================
   Container & Layout
   =================================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.logo-icon {
  font-size: 2rem;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

.nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.nav-cta:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .nav {
    gap: 15px;
    font-size: 0.9rem;
  }
  
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l9.9-9.9h-2.828zM27.03 0L15.857 11.172 17.272 12.586l12.586-12.586H27.03z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  color: white;
  margin-bottom: 20px;
  font-size: 3.5rem;
}

.highlight {
  background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
  padding: 0 15px;
  border-radius: var(--radius-md);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 50px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ===================================
   Scan Box
   =================================== */

.scan-box {
  background: white;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  margin: 0 auto 40px;
}

.scan-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.scan-input {
  flex: 1;
  padding: 18px 20px;
  font-size: 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  transition: border-color var(--transition-base);
}

.scan-input:focus {
  outline: none;
  border-color: var(--primary);
}

.scan-button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 18px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.scan-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.scan-button:active {
  transform: translateY(0);
}

.scan-button:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.button-icon {
  font-size: 1.3rem;
}

.scan-info {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .scan-box {
    padding: 25px;
  }
  
  .scan-input-group {
    flex-direction: column;
  }
  
  .scan-button {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   Trust Indicators
   =================================== */

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
}

.trust-item {
  text-align: center;
}

.trust-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
}

.trust-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .trust-indicators {
    flex-direction: column;
    gap: 30px;
  }
  
  .trust-number {
    font-size: 2rem;
  }
}

/* ===================================
   Results Section
   =================================== */

.results-section {
  background: var(--bg-white);
  padding: 60px 0;
}

.results-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border);
}

.results-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.results-url {
  color: var(--text-medium);
  font-size: 1rem;
  word-break: break-all;
}

.score-display {
  text-align: center;
  margin: 40px 0;
}

.score-circle {
  display: inline-flex;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.score-number {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.score-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-critical { background: #fee; color: #c53030; }
.score-high { background: #fef5e7; color: #d69e2e; }
.score-medium { background: #e6fffa; color: #319795; }
.score-low { background: #f0fff4; color: #38a169; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.summary-item {
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--radius-lg);
  text-align: center;
  border-left: 4px solid;
}

.summary-item.critical { border-color: var(--danger); }
.summary-item.serious { border-color: var(--warning); }
.summary-item.moderate { border-color: var(--info); }
.summary-item.minor { border-color: var(--success); }

.summary-count {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.summary-label {
  color: var(--text-medium);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.issues-section {
  margin-top: 40px;
}

.issues-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.issue-item {
  background: var(--bg-light);
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-md);
}

.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.issue-type {
  font-weight: 600;
  color: var(--text-dark);
  text-transform: capitalize;
}

.issue-impact {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.impact-critical { background: #fee; color: #c53030; }
.impact-serious { background: #fef5e7; color: #d69e2e; }
.impact-moderate { background: #e6fffa; color: #319795; }
.impact-minor { background: #f0fff4; color: #38a169; }

.issue-message {
  color: var(--text-medium);
  line-height: 1.6;
}

.email-capture-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-top: 40px;
  text-align: center;
}

.email-capture-section h3 {
  color: white;
  margin-bottom: 10px;
}

.email-capture-section p {
  opacity: 0.95;
  margin-bottom: 25px;
}

.email-capture-section ul {
  text-align: left;
  max-width: 500px;
  margin: 20px auto 30px;
  list-style: none;
}

.email-capture-section li {
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
}

.email-capture-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.email-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.email-input:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

.email-button {
  background: white;
  color: var(--primary);
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.email-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .results-card {
    padding: 25px;
  }
  
  .score-circle {
    width: 150px;
    height: 150px;
  }
  
  .score-number {
    font-size: 3rem;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .email-button {
    width: 100%;
  }
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
  background: var(--bg-white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.step {
  text-align: center;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-lg);
}

.step h3 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.step p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===================================
   What We Check Section
   =================================== */

.what-we-check {
  background: var(--bg-light);
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.check-item {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.check-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.check-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.check-item h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.check-item p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===================================
   Legal Warning Section
   =================================== */

.legal-warning {
  background: linear-gradient(135deg, #fef5e7 0%, #fff5f5 100%);
  border-top: 4px solid var(--warning);
  border-bottom: 4px solid var(--warning);
}

.warning-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
}

.warning-icon {
  font-size: 4rem;
}

.warning-text h2 {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.warning-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
}

.warning-list {
  list-style: none;
  padding: 0;
}

.warning-list li {
  padding: 10px 0;
  color: var(--text-medium);
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .warning-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .warning-icon {
    font-size: 3rem;
  }
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-block;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 1.75rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===================================
   Footer
   =================================== */

.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 30px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-disclaimer {
  max-width: 600px;
  margin: 15px auto 0;
  font-size: 0.85rem;
}

/* ===================================
   Loading Overlay
   =================================== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-content {
  text-align: center;
  color: white;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.loading-subtext {
  font-size: 1rem;
  opacity: 0.8;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .header,
  .nav,
  .hero,
  .how-it-works,
  .what-we-check,
  .legal-warning,
  .cta-section,
  .footer,
  .loading-overlay,
  .email-capture-section {
    display: none !important;
  }
  
  .results-section {
    padding: 0;
  }
  
  body {
    background: white;
  }
}
