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

:root {
  --primary: #1a1f3a;
  --primary-light: #2a2d5a;
  --secondary: #06c4ee;
  --accent: #0af764;
  --bg-light: #f8f9fb;
  --text-dark: #1a1f3a;
  --text-light: #666;
  --border: #e0e4e8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
  line-height: 1.6;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Hero Section with Tool */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1f3a 0%, #16213e 50%, #0f3a6d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  background: radial-gradient(circle at 20% 50%, rgba(6, 196, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(10, 247, 100, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.tool-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(6, 196, 238, 0.2);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(6, 196, 238, 0.4);
}

.tool-content h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.tool-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.url-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.url-form input {
  flex: 1;
  padding: 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
}

.url-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 196, 238, 0.2);
}

.url-form button {
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #08a646 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.url-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(10, 247, 100, 0.4);
}

.url-form button:active {
  transform: translateY(0);
}

.form-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 4rem 1rem;
  border-top: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(6, 196, 238, 0.05), rgba(10, 247, 100, 0.05));
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Ad Section */
.ad-section {
  padding: 2rem 1rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ad-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.ad-footer {
  padding: 1rem;
  border-top: 2px solid var(--border);
}

/* Benefits Section */
.benefits-section {
  padding: 4rem 1rem;
  background: white;
}

.benefits-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fb, white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.benefit-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(6, 196, 238, 0.05), rgba(10, 247, 100, 0.05));
}

.how-it-works h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  padding: 2rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  position: relative;
}

.step-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(6, 196, 238, 0.15);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.step-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Content Section */
.content-section {
  padding: 4rem 1rem;
  background: white;
}

.content-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.content-section h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.content-section p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-section code {
  background: var(--bg-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--danger);
  font-family: monospace;
}

.content-section ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-section ul li {
  margin-bottom: 0.8rem;
  color: var(--text-light);
  line-height: 1.7;
}

.factor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.factor-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fb, white);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 4px solid var(--secondary);
}

.factor-card h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.factor-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(6, 196, 238, 0.03), rgba(10, 247, 100, 0.03));
}

.faq-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.faq-container {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: white;
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(6, 196, 238, 0.1);
}

.faq-item summary {
  padding: 1.3rem;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.05), rgba(6, 196, 238, 0.05));
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary:hover {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.1), rgba(6, 196, 238, 0.1));
}

.faq-item[open] summary {
  background: linear-gradient(135deg, rgba(6, 196, 238, 0.1), rgba(10, 247, 100, 0.1));
}

.faq-item p {
  padding: 1.3rem;
  color: var(--text-light);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  margin: 0;
}

.no-faqs {
  padding: 3rem;
}

/* CTA Section */
.cta-section {
  padding: 4rem 1rem;
  background: white;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cta-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-card p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-button {
  background: var(--accent);
  color: var(--text-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(10, 247, 100, 0.3);
}

/* Results */
.results {
  margin-top: 2rem;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}

.score-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.score-circle.good {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(10, 247, 100, 0.2));
  color: var(--success);
}

.score-circle.average {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.2));
  color: var(--warning);
}

.score-circle.bad {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.2));
  color: var(--danger);
}

.score-info h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.score-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-badge.good {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.status-badge.average {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.status-badge.bad {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.issues-list {
  margin-top: 1.5rem;
}

.issue {
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.issue-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.issue.good {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success);
}

.issue.good .issue-icon {
  color: var(--success);
}

.issue.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning);
}

.issue.warning .issue-icon {
  color: var(--warning);
}

.issue.bad {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: var(--danger);
}

.issue.bad .issue-icon {
  color: var(--danger);
}

.issue p {
  margin: 0;
  color: var(--text-dark);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--danger);
  margin-top: 1rem;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.navbar-brand a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--secondary);
  text-decoration: none;
}

.nav-login {
  background: rgba(6, 196, 238, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(6, 196, 238, 0.5);
}

.nav-login:hover {
  background: rgba(6, 196, 238, 0.3);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tool-content h1 {
    font-size: 2.2rem;
  }

  .score-section {
    gap: 1.5rem;
  }

  .score-circle {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
  }

  .benefits-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tool-content h1 {
    font-size: 1.8rem;
  }

  .tool-content p {
    font-size: 1rem;
  }

  .url-form {
    flex-direction: column;
  }

  .url-form button {
    width: 100%;
  }

  .score-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .score-circle {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .score-info h2 {
    font-size: 1.4rem;
  }

  .navbar-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .navbar-content {
    flex-wrap: wrap;
    width: 100%;
  }

  .navbar-menu {
    width: 100%;
    margin-top: 1rem;
  }

  .content-section,
  .benefits-section,
  .how-it-works,
  .faq-section,
  .cta-section {
    padding: 2rem 1rem;
  }

  .content-section h2,
  .benefits-section h2,
  .how-it-works h2,
  .faq-section h2 {
    font-size: 1.6rem;
  }

  .content-section h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }

  .benefits-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .factor-cards {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card h2 {
    font-size: 1.5rem;
  }

  .footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tool-content h1 {
    font-size: 1.4rem;
  }

  .url-form input {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .url-form button {
    padding: 0.8rem 1.5rem;
  }

  .result-card {
    padding: 1rem;
  }

  .score-circle {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
  }

  .navbar {
    position: relative;
  }

  .navbar-content {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-menu {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .content-section h2,
  .benefits-section h2,
  .how-it-works h2,
  .faq-section h2 {
    font-size: 1.3rem;
  }

  .content-section h3 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}

/* Additional Polish */
input[type="url"]::placeholder,
input[type="text"]::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

button {
  transition: all 0.3s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--secondary);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
