/* ============================================
   SEO.com Homepage - Exact Replica
   Purple/Indigo Dominant Color Palette
   ============================================ */

:root {
  --purple-primary: #7C3AED;
  --purple-dark: #6D28D9;
  --purple-light: #8B5CF6;
  --indigo: #6366F1;
  --teal: #14B8A6;
  --cyan: #06B6D4;
  --text-dark: #1F2937;
  --text-black: #000000;
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --border-light: #E5E7EB;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* ============================================
   Header / Navbar
   ============================================ */

.main-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .header-container {
    padding: 1.5rem 0;
    gap: 1.5rem;
  }
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: clamp(50px, 8vw, 80px);
  width: auto;
  display: block;
  max-width: 100%;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--purple-primary);
}

.chevron {
  font-size: 0.7rem;
  color: var(--text-dark);
  opacity: 0.6;
}

.sparkle {
  font-size: 0.9rem;
}

.header-cta {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary {
  background: var(--purple-primary);
  color: var(--bg-white);
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  justify-self: end; /* Push icon to right side of header on mobile */
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
  z-index: 1000;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-link {
  display: block;
  padding: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-link:hover {
  background: var(--bg-light);
  color: var(--purple-primary);
}

.mobile-nav-link.btn-primary {
  background: var(--purple-primary);
  color: var(--bg-white);
  justify-content: center;
  margin-top: 0.5rem;
}

.mobile-nav-link.btn-primary:hover {
  background: var(--purple-dark);
  color: var(--bg-white);
}

/* Hide mobile nav completely on desktop to avoid double navbar */
@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: var(--bg-white);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 100%;
}

.hero-headline {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.headline-dark {
  color: var(--text-black);
}

.headline-purple {
  color: var(--purple-primary);
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-dark);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  background: #F6F2FF;
  padding: 1.5rem;
  border-radius: 16px;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .hero-form {
    flex-direction: row;
  }
}

.website-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-primary);
  background: var(--bg-white);
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
}

.website-input::placeholder {
  color: #9CA3AF;
}

.website-input:focus {
  outline: none;
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-seo-purposal {
  background: var(--purple-primary);
  color: var(--bg-white);
  padding: 1rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-seo-purposal:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-seo-purposal:active {
  transform: translateY(0);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.video-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
}

.video-gradient-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, #000000 0%, #000000 40%, var(--purple-primary) 60%, var(--teal) 80%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.people-silhouettes {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  width: 80%;
  height: 70%;
  z-index: 2;
}

.person {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px 8px 0 0;
  backdrop-filter: blur(4px);
  position: relative;
}

.person-1 {
  height: 85%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.person-2 {
  height: 95%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.person-3 {
  height: 90%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.person::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 25%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.person::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px 8px 0 0;
}

.play-button-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button-large:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button-large svg rect {
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.5));
}

/* ============================================
   Growth Section
   ============================================ */

.growth-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--bg-white);
}

.growth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .growth-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.growth-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--text-black);
}

.growth-copy .highlight-purple {
  color: var(--purple-primary);
}

.growth-copy p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

.growth-visual {
  display: flex;
  justify-content: center;
}

.growth-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
  display: block;
}

.case-card {
  position: relative;
  background: linear-gradient(180deg, #a855f7 0%, #a27cf8 100%);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
  overflow: hidden;
}

.case-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
}

.case-icon {
  font-size: 1rem;
}

.case-body {
  margin-top: 1.25rem;
  color: #fff;
}

.case-stat {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.case-perc {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.case-sub {
  font-size: 1.05rem;
  line-height: 1.3;
}

.chart-area {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 25%),
    linear-gradient(180deg, #c18bff 0%, #b27bff 100%);
  background-size: 100% 100%, 50px 100%, 100% 40px, 100% 100%;
  margin: 0.75rem 0 1rem;
  overflow: hidden;
}

.chart-area::after {
  content: '';
  position: absolute;
  inset: 0 0 0 0;
  background-image: url("data:image/svg+xml;utf8,<svg width='600' height='220' viewBox='0 0 600 220' xmlns='http://www.w3.org/2000/svg'><polyline fill='none' stroke='%23ffffff' stroke-width='4' points='0,200 80,180 140,150 200,165 260,110 320,130 380,90 440,140 500,75 560,120 600,60'/><polyline fill='rgba(255,255,255,0.12)' stroke='none' points='0,220 0,200 80,180 140,150 200,165 260,110 320,130 380,90 440,140 500,75 560,120 600,60 600,220' /></svg>");
  background-size: cover;
  opacity: 0.9;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  background: #5c21cf;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.case-image {
  position: absolute;
  bottom: -20px;
  right: -50px;
  width: 340px;
  max-width: 80%;
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Partner strip image section */
.partners-strip {
  padding: 2.5rem 0;
  background: #f9fafb;
  overflow: hidden;
  width: 100%;
}

.partners-strip .container {
  overflow: hidden;
}

.partners-strip-inner {
  display: inline-flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  animation: partners-marquee 12s linear infinite;
  white-space: nowrap;
  padding-right: 4rem;
}

.partner-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.finalist-logo {
  height: 52px;
}

.partner-card {
  height: 52px;
}

@keyframes partners-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   Stats Cards Section
   ============================================ */

.stats-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  position: relative;
  background: #1b0f4a;
  border-radius: 26px;
  padding: 3rem 2rem 2.5rem;
  color: #ecfeff;
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.stat-card-inner {
  position: relative;
  z-index: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.stat-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: #e9d5ff;
  border-bottom-left-radius: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: #22f0c9;
  margin-bottom: 1.25rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.stat-meta {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #c7d2fe;
}

.stat-card:hover .stat-corner {
  opacity: 1;
}

.stat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(229, 212, 255, 0.98);
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(25%, -25%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.stat-overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.stat-overlay p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.stat-card:hover .stat-overlay {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   Future-Proofs Copy Section
   ============================================ */

.future-section {
  padding: clamp(3rem, 8vw, 5rem) 0 1.5rem;
  background: #ffffff;
}

.future-heading {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 1.5rem;
}

.future-highlight {
  color: var(--purple-primary);
}

.future-text {
  max-width: 900px;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.8;
  color: #4b5563;
  margin: 0;
}

/* ============================================
   Services Explainer Section
   ============================================ */

.services-explainer {
  padding: clamp(3rem, 8vw, 5rem) 0 4rem;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 3rem;
  }
}

.services-nav {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.services-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.4rem 1.8rem;
  border-radius: 26px;
  border: none;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
  font-size: 1.25rem;
  font-weight: 600;
  color: #7c3aed;
  cursor: default;
}

.services-icon {
  font-size: 1.6rem;
}

.services-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 0.3rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  text-align: left;
}

.services-item:hover {
  color: var(--purple-primary);
}

.services-content {
  background: #ffffff;
  border-radius: 30px;
  padding: 2.5rem 2.5rem 2.75rem;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.services-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #111827;
  margin: 0 0 1.5rem;
}

.services-content p:last-child {
  margin-bottom: 0;
}

.services-content strong {
  font-weight: 700;
}

/* ============================================
   #1 Choice / Ranking CTA Section
   ============================================ */

.ranking-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0 3rem;
  background: #ffffff;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
  background: #f6f2ff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 26px 80px rgba(79, 70, 229, 0.18);
  min-height: auto;
}

@media (min-width: 768px) {
  .ranking-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 3rem;
    padding: 2.25rem 2.75rem;
    min-height: 360px;
    border-radius: 32px;
  }
}

.ranking-heading {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 1rem;
}

.ranking-highlight {
  color: var(--purple-primary);
}

.ranking-text {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 520px;
  line-height: 1.8;
  margin: 0 0 2rem;
}

.ranking-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn-ranking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 16px;
  border: none;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.35);
  min-height: 52px;
}

.btn-ranking:hover {
  background: #6d28d9;
}

.ranking-card {
  background: #1f1148;
  border-radius: 20px;
  padding: 1.5rem;
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

@media (min-width: 768px) {
  .ranking-card {
    border-radius: 26px;
    padding: 2rem;
    height: 100%;
    min-height: 360px;
  }
}

.ranking-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ranking-graphic {
  max-width: 46%;
  height: auto;
  display: block;
}

.ranking-main-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ranking-main-number {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 900;
  color: #f5f3ff;
}

.ranking-main-label {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: lowercase;
}

.ranking-sub {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #d1d5db;
}

.ranking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
}

.ranking-webfx-logo {
  height: 40px;
  width: auto;
  display: block;
}

.ranking-trophy-wrap {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
}

.ranking-trophy {
  width: 40px;
  height: auto;
  display: block;
}

/* ============================================
   Video Stories Section
   ============================================ */

.video-stories {
  padding: clamp(3rem, 8vw, 5rem) 0 4rem;
  background: #ffffff;
}

.video-stories-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 2.5rem;
}

.video-stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.video-story-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-thumb img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.video-story-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.video-story-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #4b5563;
  margin: 0;
  max-width: 520px;
}

@media (min-width: 900px) {
  .video-stories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================
   OmniSEO / What's New in SEO Section
   ============================================ */

.omniseo-section {
  padding: clamp(3rem, 8vw, 5rem) 0 5rem;
  background: #f7f3ff;
}

.omniseo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .omniseo-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 3rem;
  }
}

.omniseo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.omniseo-icon {
  font-size: 1.6rem;
}

.omniseo-heading {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.omniseo-brand {
  color: var(--purple-primary);
}

.omniseo-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #111827;
  max-width: 620px;
  margin: 0 0 1.2rem;
}

.omniseo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-omniseo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-omniseo.primary {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(124, 58, 237, 0.35);
}

.btn-omniseo.ghost {
  background: transparent;
  color: #111827;
  border-color: #e5e7eb;
}

.omniseo-video-card {
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.16);
  padding: 1.1rem;
}

.omniseo-video-card iframe {
  width: 100%;
  height: min(360px, 55vw);
  border-radius: 22px;
}

.omniseo-thumb {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}

/* Omniseo responsive handled above */

/* ============================================
   AI Overviews Banner
   ============================================ */

.ai-banner {
  padding: 3rem 0 4rem;
  background: #ffffff;
}

.ai-banner-inner {
  background: linear-gradient(90deg, #20126a 0%, #2a0a7a 60%, #140032 100%);
  border-radius: 20px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 24px 80px rgba(30, 64, 175, 0.45);
  text-align: center;
}

@media (min-width: 768px) {
  .ai-banner-inner {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1.75rem 2.5rem;
    border-radius: 28px;
    text-align: left;
  }
}

.ai-banner-logos {
  max-height: 64px;
  width: auto;
  display: block;
}

.ai-banner-heading {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #f9fafb;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.ai-banner-heading span {
  color: #c4b5fd;
}

.ai-banner-text {
  margin: 0;
  font-size: 1rem;
  color: #d1d5db;
}

.ai-banner-left {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .ai-banner-left {
    justify-content: flex-start;
  }
}

/* ============================================
   Case Studies Carousel (visual only)
   ============================================ */

.cases-section {
  padding: 3rem 0 4.5rem;
  background: #ffffff;
}

.cases-inner {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .cases-inner {
    gap: 1.75rem;
  }
}

.cases-arrow {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.cases-arrow:active {
  transform: scale(0.95);
}

@media (min-width: 992px) {
  .cases-arrow {
    display: flex;
  }
}

.cases-arrow-left {
  justify-self: start;
}

.cases-arrow-right {
  justify-self: end;
}

.cases-viewport {
  flex: 1;
  overflow: hidden;
}

.cases-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
}

.case-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.14);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .case-card {
    padding: 2.25rem 2.5rem 2.5rem;
    border-radius: 30px;
  }
}

.case-label {
  position: absolute;
  top: 0;
  left: 0;
  background: #3b0b86;
  color: #f9fafb;
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom-right-radius: 18px;
}

.case-body {
  margin-top: 3rem;
}

.case-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
}

.case-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #4b5563;
  margin: 0 0 1.75rem;
  max-width: 560px;
}

.case-subheading {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.case-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.02rem;
  color: #111827;
  margin-bottom: 0.6rem;
}

.case-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.9rem;
  color: #7c3aed;
}

.case-metric {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}

.case-metric-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #7c3aed;
}

.case-metric-label {
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5563;
  margin-top: 0.25rem;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
}

.case-link-arrow {
  font-size: 1.1rem;
}

/* Carousel arrows visible on larger screens only */
@media (max-width: 991px) {
  .cases-viewport {
    margin: 0 -1rem;
    padding: 0 1rem;
  }
}

/* ============================================
   About WebFX / Who is SEO.com Section
   ============================================ */

.about-section {
  padding: clamp(3rem, 8vw, 5rem) 0 4.5rem;
  background: #faf5ff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 3rem;
  }
}

.about-heading {
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 1.5rem;
}

.about-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #111827;
  margin: 0 0 1.1rem;
  max-width: 700px;
}

.about-link-like {
  color: #7c3aed;
  font-weight: 700;
}

.about-image-wrap {
  display: flex;
  justify-content: center;
}

.about-image {
  width: 100%;
  max-width: 620px;
  border-radius: 28px;
  display: block;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.18);
}

.about-image-wrap {
  order: -1;
}

@media (min-width: 768px) {
  .about-image-wrap {
    order: 0;
  }
}

/* ============================================
   Final CTA Form Section
   ============================================ */

.cta-section {
  padding: clamp(3rem, 8vw, 5rem) 0 4rem;
  background: #f5f3ff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .cta-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
    gap: 3rem;
  }
}

.cta-form-card {
  background: #26006a;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 28px 90px rgba(55, 48, 163, 0.6);
  color: #f9fafb;
}

@media (min-width: 768px) {
  .cta-form-card {
    padding: 2.5rem 2.75rem 2.75rem;
    border-radius: 32px;
  }
}

.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cta-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }
}

.cta-field.span-2 {
  grid-column: 1 / -1;
}

.cta-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #e5e7eb;
}

.cta-input,
.cta-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.85rem 1rem;
  font-size: 0.96rem;
  font-family: inherit;
  color: #111827;
}

.cta-input::placeholder,
.cta-textarea::placeholder {
  color: #9ca3af;
}

.cta-input:focus,
.cta-textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.45);
}

.cta-textarea {
  resize: vertical;
  min-height: 120px;
}

.cta-submit {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.3rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 1.02rem;
  color: #ffffff;
  background: #7c3aed;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.55);
}

.cta-submit:hover {
  background: #6d28d9;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1rem;
}

.cta-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #111827;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cta-logo span {
  background: #2563eb;
  color: #ffffff;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.35rem;
}

.cta-heading {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
  color: #111827;
}

.cta-highlight {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 1.6rem;
}

.cta-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 480px) {
  .cta-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 2.4rem;
  }
}

.cta-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.cta-stat-label {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.cta-copy {
  order: -1;
  padding-right: 0;
}

@media (min-width: 768px) {
  .cta-copy {
    order: 0;
    padding-right: 1rem;
  }
}

.stat-card:hover .stat-card-inner {
  opacity: 0;
  transform: translateY(4px);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Ensure stats cards don't overflow */
.stat-card {
  min-width: 0;
  width: 100%;
}

/* ============================================
   Footer
   ============================================ */

/* ============================================
   Footer
   ============================================ */

.main-footer {
  background: #4C1D95; /* Dark purple background */
  color: #ffffff;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-seo {
  background: #ffffff;
  color: #1F2937;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

.logo-seo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3B82F6; /* Darker blue stripe above */
}

.logo-seo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #60A5FA; /* Light blue stripe below */
}

.logo-com {
  background: var(--purple-primary);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.2rem;
}

.footer-tagline {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.tagline-highlight {
  color: #60A5FA; /* Light blue for "Authority" */
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-col a {
  display: block;
  color: #E5E7EB; /* Light gray for links */
  font-size: 0.9rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-partners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partners-label {
  font-size: 0.85rem;
  color: #E5E7EB;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.partner-logo-item {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.copyright {
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #1F2937;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  width: fit-content;
}

.language-selector:hover {
  background: #F3F4F6;
}

.flag-icon {
  font-size: 1.2rem;
}

.arrow-icon {
  font-size: 1rem;
}

/* Compact footer adjustments on very small screens */
@media (max-width: 480px) {
  .main-footer {
    padding: 2.5rem 0 1.25rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-tagline {
    font-size: 1.5rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-col a {
    padding: 0.35rem 0;
  }

  .footer-bottom-content {
    gap: 1.25rem;
  }
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    justify-content: center;
  }

  .header-cta {
    display: flex;
    justify-content: flex-end;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    margin: 0;
  }

  /* Growth grid responsive handled above */

  .footer-content {
    grid-template-columns: 1.2fr 2fr;
    gap: 4rem;
  }

  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-legal {
    align-items: flex-end;
    text-align: right;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .header-container {
    padding: 1.25rem 0;
  }

  .hero {
    padding: 5rem 0;
  }

  .hero-headline {
    font-size: 4rem;
  }

  .footer-content {
    grid-template-columns: 1fr 2.5fr;
  }

  .brands-container {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
  }

  .brand-badge {
    min-width: auto;
    max-width: 100%;
  }
}

/* Large Desktop: 1200px+ */
@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }

  .hero-container {
    gap: 5rem;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
  .hero-form {
    padding: 1rem;
  }

  .stat-card {
    padding: 2rem 1.5rem 2rem;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .services-content {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .case-card {
    padding: 1.25rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--purple-primary);
  outline-offset: 2px;
}

/* Improve button touch targets */
button,
a.btn-primary,
.btn-seo-purposal,
.btn-ranking,
.cta-submit {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
