:root {
   --primary: #2563eb;
   --primary-color: #2563eb;
   --primary-dark: #1d4ed8;
   --secondary: #10b981;
   --secondary-color: #1e40af;
   --accent-color: #3b82f6;
   --white: #ffffff;
   --light-bg: #f8fafc;
   --card-bg: #ffffff;
   --success: #10b981;
   --warning: #f59e0b;
   --danger: #ef4444;
   --info: #3b82f6;
   --purple: #8b5cf6;
   --pink: #ec4899;
   --indigo: #6366f1;
   --teal: #14b8a6;
   --orange: #f97316;
   --cyan: #06b6d4;
   --text-primary: #1e293b;
   --text-secondary: #64748b;
   --border-color: #e2e8f0;
   --shadow: 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 -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
   --radius: 8px;
}

/* h1 {
   font-size: 2.5rem;
   font-weight: 800;
   color: var(--text-primary);
   margin-bottom: 10px;
   letter-spacing: -0.5px;
} */

.subtitle-seo {
   font-size: 1.3rem;
   color: var(--text-primary) !important;
   max-width: 700px;
   /* margin: 0 auto; */
}

/* Hero Section */
.hero-seo {
   padding: 4rem 0;
   text-align: center;
   border-bottom: 1px solid var(--border-color);
   box-shadow: var(--shadow);
   background: linear-gradient(135deg, #ffffff, #fcfdff);
}

.hero-seo h1 {
   font-size: 2.2rem;
   margin-bottom: 1.5rem;
   color: var(--text-primary);
}

.hero-seo p {
   font-size: 1.1rem;
   max-width: 800px;
   margin: 0 auto 2rem;
   color: var(--text-secondary);
}

/* Banner Space - CSS movido para style.css */

.btn {
   display: inline-block;
   padding: 0.75rem 1.5rem;
   background: var(--primary);
   color: var(--white);
   border: none;
   border-radius: var(--radius);
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: background-color 0.3s, transform 0.2s;
   text-decoration: none;
   position: relative;
   overflow: hidden;
}

.btn:hover {
   background: var(--primary-dark);
   transform: translateY(-2px);
}

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

.btn-secondary:hover {
   background: #059669;
}

/* Form Styles */
.seo-form {
   background: var(--white);
   padding: 40px;
   border-radius: 16px;
   box-shadow: var(--shadow);
   border: 1px solid var(--border-color);
   margin: 3rem 0;
}

.form-group {
   margin-bottom: 25px;
}

label {
   display: block;
   font-weight: 600;
   margin-bottom: 10px;
   color: var(--text-primary);
   font-size: 1.1rem;
}

.input-container {
   position: relative;
   display: flex;
   background: white;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 0 0 1px var(--border-color);
   transition: all 0.3s;
}

.input-container:focus-within {
   box-shadow: 0 0 0 2px var(--primary-color);
}

input[type="url"] {
   flex: 1;
   padding: 18px 24px;
   border: none;
   font-size: 1.1rem;
   background: transparent;
}

input[type="url"]:focus {
   outline: none;
}

button.seo {
   background: var(--primary-color);
   color: white;
   border: none;
   padding: 18px 32px;
   font-size: 1.1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s;
   display: flex;
   align-items: center;
   gap: 10px;
}

button.seo:hover {
   background: var(--secondary-color);
}

button.processing {
   cursor: not-allowed;
   opacity: 0.8;
}

.spinner-icon {
   animation: spin 1s linear infinite;
}

@keyframes spin {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

/* Loading Section */
.loading {
   display: none;
   text-align: center;
   padding: 80px 20px;
   background: white;
   border-radius: 16px;
   box-shadow: var(--shadow);
   margin: 40px 0;
}

.spinner {
   border: 4px solid rgba(37, 99, 235, 0.1);
   border-radius: 50%;
   border-top: 4px solid var(--primary-color);
   width: 60px;
   height: 60px;
   animation: spin 1s linear infinite;
   margin: 0 auto 20px;
}

.loading p {
   font-size: 1.3rem;
   color: var(--primary-color);
   font-weight: 600;
}

/* Results Section */
.results {
   display: none;
   padding: 40px;
   background: white;
   border-radius: 16px;
   box-shadow: var(--shadow-lg);
   margin: 40px 0;
}

.results-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 40px;
   flex-wrap: wrap;
   gap: 20px;
}

.results-title {
   font-size: 1.8rem;
   font-weight: 700;
   color: var(--text-primary);
}

.seo-score {
   display: flex;
   align-items: center;
   gap: 15px;
}

.score-circle {
   width: 80px;
   height: 80px;
   border-radius: 50%;
   background: conic-gradient(var(--success) 0% 75%, #e5e7eb 75% 100%);
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
}

.score-circle::before {
   content: "";
   position: absolute;
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: white;
}

.score-value {
   position: relative;
   font-size: 1.8rem;
   font-weight: 700;
   color: var(--success);
}

.score-label {
   font-size: 1.1rem;
   color: var(--text-secondary);
   font-weight: 600;
}

/* Tabs */
.tabs {
   display: flex;
   margin-bottom: 30px;
   border-bottom: 2px solid var(--border-color);
   overflow-x: auto;
}

.tab {
   padding: 16px 24px;
   cursor: pointer;
   font-weight: 600;
   color: var(--text-secondary);
   transition: all 0.3s;
   border-bottom: 3px solid transparent;
   white-space: nowrap;
}

.tab:hover {
   color: var(--primary-color);
}

.tab.active {
   color: var(--primary-color);
   border-bottom: 3px solid var(--primary-color);
}

.tab i {
   margin-right: 8px;
}

/* Result Cards - Layout melhorado com bordas coloridas */
.tab-content {
   display: none;
}

.tab-content.active {
   display: block;
}

.result-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 30px;
}

.result-card {
   background: var(--card-bg);
   border-radius: 16px;
   padding: 30px;
   box-shadow: var(--shadow);
   border: 1px solid var(--border-color);
   transition: all 0.3s;
   position: relative;
   overflow: hidden;
}

.result-card::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   height: 100%;
   width: 5px;
}

.result-card.performance::before {
   background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.result-card.mobile::before {
   background: linear-gradient(to bottom, var(--info), var(--primary-color));
}

.result-card.content::before {
   background: linear-gradient(to bottom, var(--success), #34d399);
}

.result-card.images::before {
   background: linear-gradient(to bottom, var(--warning), #fbbf24);
}

.result-card.technical::before {
   background: linear-gradient(to bottom, var(--purple), #a78bfa);
}

.result-card.security::before {
   background: linear-gradient(to bottom, var(--danger), #f87171);
}

.result-card.metrics::before {
   background: linear-gradient(to bottom, var(--warning), #fbbf24);
}

.result-card.optimization::before {
   background: linear-gradient(to bottom, var(--success), #34d399);
}

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

.result-card h3 {
   color: var(--text-primary);
   margin-bottom: 20px;
   font-size: 1.4rem;
   font-weight: 600;
   display: flex;
   align-items: center;
   gap: 12px;
}

.result-card h3 i {
   color: var(--primary-color);
   font-size: 1.2rem;
}

.result-items {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 20px;
}

.result-item {
   display: flex;
   flex-direction: column;
   gap: 8px;
   padding: 15px;
   background: var(--light-bg);
   border-radius: 10px;
   transition: all 0.3s;
}

.result-item:hover {
   background: #f1f5f9;
   transform: translateY(-2px);
}

.result-label {
   color: var(--text-secondary);
   font-weight: 500;
   font-size: 0.95rem;
}

.result-value {
   font-weight: 600;
   font-size: 1.1rem;
}

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

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

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

.progress-container {
   background: var(--border-color);
   border-radius: 8px;
   height: 8px;
   margin-top: 12px;
   overflow: hidden;
}

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

/* Score Badge */
.score-badge {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 4px 12px;
   border-radius: 20px;
   font-weight: 600;
   font-size: 0.9rem;
   margin-left: 10px;
}

.score-badge.excellent {
   background: rgba(16, 185, 129, 0.1);
   color: var(--success);
}

.score-badge.good {
   background: rgba(59, 130, 246, 0.1);
   color: var(--primary-color);
}

.score-badge.fair {
   background: rgba(245, 158, 11, 0.1);
   color: var(--warning);
}

.score-badge.poor {
   background: rgba(239, 68, 68, 0.1);
   color: var(--danger);
}

/* Export Button */
.export-container {
   display: flex;
   gap: 10px;
   margin-top: 20px;
}

.export-btn {
   background: var(--light-bg);
   color: var(--text-primary);
   border: 1px solid var(--border-color);
   padding: 10px 16px;
   border-radius: 8px;
   font-size: 0.9rem;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.3s;
   display: flex;
   align-items: center;
   gap: 8px;
}

.export-btn:hover {
   background: var(--border-color);
}

/* Suggestions */
.suggestions {
   margin-top: 40px;
   background: #fef3c7;
   border-left: 4px solid var(--warning);
   padding: 25px;
   border-radius: 12px;
}

.suggestions h3 {
   color: var(--warning);
   margin-bottom: 20px;
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: 1.3rem;
}

.suggestions ul {
   list-style-type: none;
}

.suggestions li {
   margin-bottom: 15px;
   padding-left: 30px;
   position: relative;
   line-height: 1.6;
}

.suggestions li:before {
   content: "\f05a";
   font-family: "Font Awesome 5 Free";
   font-weight: 900;
   position: absolute;
   left: 0;
   color: var(--warning);
}

/* Images without ALT */
.images-without-alt {
   margin-top: 25px;
}

.images-without-alt h4 {
   font-size: 1.2rem;
   font-weight: 600;
   margin-bottom: 15px;
   color: var(--text-primary);
}

.image-item {
   display: flex;
   align-items: center;
   gap: 15px;
   margin-bottom: 15px;
   padding: 15px;
   background: var(--light-bg);
   border-radius: 10px;
   border-left: 3px solid var(--danger);
}

.image-preview {
   width: 60px;
   height: 60px;
   border-radius: 8px;
   object-fit: cover;
   background: var(--border-color);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-secondary);
   flex-shrink: 0;
}

.image-info {
   flex: 1;
}

.image-src {
   font-weight: 600;
   margin-bottom: 5px;
   word-break: break-all;
   font-size: 0.95rem;
}

.image-status {
   color: var(--danger);
   font-size: 0.9rem;
}

/* How It Works Section - Com bordas coloridas */
.how-it-works {
   padding: 80px 0;
}

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

.section-title {
   font-size: 2.5rem;
   font-weight: 800;
   color: var(--text-primary);
   margin-bottom: 16px;
}

.section-subtitle {
   font-size: 1.3rem;
   color: var(--text-secondary);
   max-width: 800px;
   margin: 0 auto;
   line-height: 1.7;
}

.steps {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 30px;
}

.step {
   text-align: center;
   padding: 40px 30px;
   border-radius: 20px;
   background: white;
   transition: all 0.3s;
   box-shadow: var(--shadow);
   border: 1px solid var(--border-color);
   position: relative;
   overflow: hidden;
}

.step::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 5px;
}

.step:nth-child(1)::before {
   background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.step:nth-child(2)::before {
   background: linear-gradient(90deg, var(--purple), var(--pink));
}

.step:nth-child(3)::before {
   background: linear-gradient(90deg, var(--teal), var(--info));
}

.step:nth-child(4)::before {
   background: linear-gradient(90deg, var(--warning), var(--danger));
}

.step:nth-child(5)::before {
   background: linear-gradient(90deg, var(--orange), var(--warning));
}

.step:nth-child(6)::before {
   background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.step:hover {
   transform: translateY(-10px);
   box-shadow: var(--shadow-xl);
}

.step-number {
   background: var(--primary-color);
   color: white;
   width: 60px;
   height: 60px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.8rem;
   font-weight: 700;
   margin: 0 auto 25px;
}

.step:nth-child(1) .step-number {
   background: var(--primary-color);
}

.step:nth-child(2) .step-number {
   background: var(--purple);
}

.step:nth-child(3) .step-number {
   background: var(--teal);
}

.step:nth-child(4) .step-number {
   background: var(--warning);
}

.step:nth-child(5) .step-number {
   background: var(--orange);
}

.step:nth-child(6) .step-number {
   background: var(--cyan);
}

.step-icon {
   width: 80px;
   height: 80px;
   border-radius: 20px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 32px;
   margin: 0 auto 25px;
}

.step:nth-child(1) .step-icon {
   background: rgba(37, 99, 235, 0.1);
   color: var(--primary-color);
}

.step:nth-child(2) .step-icon {
   background: rgba(139, 92, 246, 0.1);
   color: var(--purple);
}

.step:nth-child(3) .step-icon {
   background: rgba(20, 184, 166, 0.1);
   color: var(--teal);
}

.step:nth-child(4) .step-icon {
   background: rgba(245, 158, 11, 0.1);
   color: var(--warning);
}

.step:nth-child(5) .step-icon {
   background: rgba(249, 115, 22, 0.1);
   color: var(--orange);
}

.step:nth-child(6) .step-icon {
   background: rgba(6, 182, 212, 0.1);
   color: var(--cyan);
}

.step h3 {
   font-size: 1.5rem;
   font-weight: 700;
   margin-bottom: 15px;
   color: var(--text-primary);
}

.step p {
   color: var(--text-secondary);
   font-size: 1.1rem;
   line-height: 1.7;
}

/* Target Audience Section - Nova seção */
.target-audience {
   padding: 80px 0;
}

.audience-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 30px;
}

.audience-card {
   background: white;
   border-radius: 20px;
   padding: 40px 30px;
   box-shadow: var(--shadow);
   border: 1px solid var(--border-color);
   transition: all 0.3s;
   height: 100%;
   display: flex;
   flex-direction: column;
   position: relative;
   overflow: hidden;
}

.audience-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 5px;
}

.audience-card:nth-child(1)::before {
   background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.audience-card:nth-child(2)::before {
   background: linear-gradient(90deg, var(--success), #34d399);
}

.audience-card:nth-child(3)::before {
   background: linear-gradient(90deg, var(--info), var(--indigo));
}

.audience-card:nth-child(4)::before {
   background: linear-gradient(90deg, var(--purple), var(--pink));
}

.audience-card:nth-child(5)::before {
   background: linear-gradient(90deg, var(--warning), var(--danger));
}

.audience-card:nth-child(6)::before {
   background: linear-gradient(90deg, var(--teal), var(--info));
}

.audience-card:hover {
   transform: translateY(-10px);
   box-shadow: var(--shadow-xl);
}

.audience-icon {
   width: 70px;
   height: 70px;
   border-radius: 18px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 28px;
   margin-bottom: 25px;
}

.audience-card:nth-child(1) .audience-icon {
   background: rgba(37, 99, 235, 0.1);
   color: var(--primary-color);
}

.audience-card:nth-child(2) .audience-icon {
   background: rgba(16, 185, 129, 0.1);
   color: var(--success);
}

.audience-card:nth-child(3) .audience-icon {
   background: rgba(59, 130, 246, 0.1);
   color: var(--info);
}

.audience-card:nth-child(4) .audience-icon {
   background: rgba(139, 92, 246, 0.1);
   color: var(--purple);
}

.audience-card:nth-child(5) .audience-icon {
   background: rgba(245, 158, 11, 0.1);
   color: var(--warning);
}

.audience-card:nth-child(6) .audience-icon {
   background: rgba(20, 184, 166, 0.1);
   color: var(--teal);
}

.audience-card h3 {
   font-size: 1.5rem;
   font-weight: 700;
   margin-bottom: 20px;
   color: var(--text-primary);
}

.audience-card p {
   color: var(--text-secondary);
   margin-bottom: 25px;
   flex-grow: 1;
   font-size: 1.1rem;
   line-height: 1.7;
}

.audience-keywords {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
}

.audience-keyword {
   background: var(--light-bg);
   color: var(--primary-color);
   padding: 8px 16px;
   border-radius: 25px;
   font-size: 0.9rem;
   font-weight: 600;
   transition: all 0.3s;
}

.audience-keyword:hover {
   background: var(--primary-color);
   color: white;
   transform: translateY(-2px);
}

/* Benefits Section - Com bordas coloridas */
.benefits {
   padding: 80px 0;
}

.benefits-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 30px;
}

.benefit-card {
   background: white;
   border-radius: 20px;
   padding: 40px 30px;
   box-shadow: var(--shadow);
   border: 1px solid var(--border-color);
   transition: all 0.3s;
   height: 100%;
   display: flex;
   flex-direction: column;
   position: relative;
   overflow: hidden;
}

.benefit-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 5px;
}

.benefit-card:nth-child(1)::before {
   background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.benefit-card:nth-child(2)::before {
   background: linear-gradient(90deg, var(--success), #34d399);
}

.benefit-card:nth-child(3)::before {
   background: linear-gradient(90deg, var(--info), var(--indigo));
}

.benefit-card:nth-child(4)::before {
   background: linear-gradient(90deg, var(--purple), var(--pink));
}

.benefit-card:nth-child(5)::before {
   background: linear-gradient(90deg, var(--warning), var(--danger));
}

.benefit-card:nth-child(6)::before {
   background: linear-gradient(90deg, var(--teal), var(--info));
}

.benefit-card:hover {
   transform: translateY(-10px);
   box-shadow: var(--shadow-xl);
}

.benefit-icon {
   width: 70px;
   height: 70px;
   border-radius: 18px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 28px;
   margin-bottom: 25px;
}

.benefit-card:nth-child(1) .benefit-icon {
   background: rgba(37, 99, 235, 0.1);
   color: var(--primary-color);
}

.benefit-card:nth-child(2) .benefit-icon {
   background: rgba(16, 185, 129, 0.1);
   color: var(--success);
}

.benefit-card:nth-child(3) .benefit-icon {
   background: rgba(59, 130, 246, 0.1);
   color: var(--info);
}

.benefit-card:nth-child(4) .benefit-icon {
   background: rgba(139, 92, 246, 0.1);
   color: var(--purple);
}

.benefit-card:nth-child(5) .benefit-icon {
   background: rgba(245, 158, 11, 0.1);
   color: var(--warning);
}

.benefit-card:nth-child(6) .benefit-icon {
   background: rgba(20, 184, 166, 0.1);
   color: var(--teal);
}

.benefit-card h3 {
   font-size: 1.5rem;
   font-weight: 700;
   margin-bottom: 20px;
   color: var(--text-primary);
}

.benefit-card p {
   color: var(--text-secondary);
   margin-bottom: 25px;
   flex-grow: 1;
   font-size: 1.1rem;
   line-height: 1.7;
}

.benefit-keywords {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
}

.keyword {
   background: var(--light-bg);
   color: var(--primary-color);
   padding: 8px 16px;
   border-radius: 25px;
   font-size: 0.9rem;
   font-weight: 600;
   transition: all 0.3s;
}

.keyword:hover {
   background: var(--primary-color);
   color: white;
   transform: translateY(-2px);
}

/* Error Message */
.error-message {
   background: #fee2e2;
   border-left: 4px solid var(--danger);
   padding: 25px;
   border-radius: 12px;
   margin: 40px 0;
   display: none;
}

.error-message h3 {
   color: var(--danger);
   margin-bottom: 15px;
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: 1.3rem;
}

.error-message p {
   line-height: 1.6;
}

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

/* Responsive */
@media (max-width: 768px) {
   h1 {
      font-size: 2rem;
   }

   /* Banner responsive rules movidas para style.css */

   .seo-form {
      padding: 30px 20px;
   }

   .input-container {
      flex-direction: column;
   }

   input[type="url"] {
      border-radius: 12px 12px 0 0;
   }

   button .seo{
      border-radius: 0 0 12px 12px;
      justify-content: center;
   }

   .results-header {
      flex-direction: column;
      align-items: flex-start;
   }

   .tabs {
      padding-bottom: 0;
   }

   .tab {
      padding: 12px 16px;
      font-size: 0.9rem;
   }

   .result-items {
      grid-template-columns: 1fr;
   }

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

@media (min-width: 769px) and (max-width: 1024px) {
   .result-items {
      grid-template-columns: repeat(2, 1fr);
   }

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

@media (min-width: 1025px) {
   .result-items {
      grid-template-columns: repeat(3, 1fr);
   }
}