/* X Unfollower Modern SASS-Inspired Styles */

:root {
  /* Main color palette */
  --primary: #1D9BF0;
  --primary-light: #7CC0FB;
  --primary-dark: #0D7BBF;
  --primary-gradient: linear-gradient(135deg, #1DA1F2 0%, #0D7BBF 100%);
  --accent: #FF9500;
  --success: #00BA7C;
  --warning: #FFCF50;
  --danger: #F91880;
  
  /* Text colors */
  --text-primary: #0F1419;
  --text-secondary: #536471;
  --text-tertiary: #8899A6;
  --text-inverse: #FFFFFF;
  
  /* Background colors */
  --bg-primary: #FFFFFF;
  --bg-primary-rgb: 255, 255, 255;
  --bg-secondary: #F7F9FA;
  --bg-tertiary: #EFF3F4;
  --card-bg: #FFFFFF;
  
  /* Border colors */
  --border-light: #EFF3F4;
  --border-medium: #CFD9DE;
  --border-focus: rgba(29, 155, 240, 0.4);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 20, 25, 0.05);
  --shadow-md: 0 8px 20px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 20, 25, 0.12);
  --shadow-focus: 0 0 0 4px rgba(29, 155, 240, 0.3);
  
  /* Animation speed */
  --transition-fast: 0.15s;
  --transition-normal: 0.25s;
  --transition-slow: 0.4s;
  
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  
  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* Dark mode variables */
.dark {
  --primary: #1D9BF0;
  --primary-light: #1A8CD8;
  --primary-dark: #0D7BBF;
  --primary-gradient: linear-gradient(135deg, #1D9BF0 0%, #0D7BBF 100%);
  
  /* Text colors */
  --text-primary: #E7E9EA;
  --text-secondary: #A9B9C9;
  --text-tertiary: #71767B;
  --text-inverse: #0F1419;
  
  /* Background colors */
  --bg-primary: #15202B;
  --bg-primary-rgb: 21, 32, 43;
  --bg-secondary: #1E2732;
  --bg-tertiary: #263340;
  --card-bg: #192734;
  
  /* Border colors */
  --border-light: #38444D;
  --border-medium: #536471;
  --border-focus: rgba(29, 155, 240, 0.4);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

section {
  position: relative;
  padding: var(--space-16) var(--space-6);
}

@media (min-width: 768px) {
  section {
    padding: var(--space-24) var(--space-12);
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--space-4);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
}

p {
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }
  
  h2 {
    font-size: var(--text-4xl);
  }
  
  h3 {
    font-size: var(--text-3xl);
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-inverse);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
}

/* Browser-specific buttons */
.btn-chrome, .btn-edge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  color: var(--text-inverse);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 8px;
  position: relative;
  overflow: hidden;
}

.btn-chrome::before, .btn-edge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-chrome:hover::before, .btn-edge:hover::before {
  opacity: 1;
}

.btn-chrome svg, .btn-edge svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.btn-chrome {
  background-color: #4285F4;
  border: none;
  padding-left: 20px;
}

.btn-chrome:hover {
  background-color: #3367D6;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(66, 133, 244, 0.4);
}

.btn-edge {
  background-color: #0078D7;
  border: none;
  padding-left: 20px;
}

.btn-edge:hover {
  background-color: #006CC1;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 120, 215, 0.4);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Nav Styles */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(var(--bg-primary-rgb), 0.8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-background::before,
.hero-background::after,
.hero-background .blob {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.25;
  animation: pulse 15s infinite alternate ease-in-out;
}

.hero-background::before {
  top: -50px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1DA1F2 0%, rgba(29, 161, 242, 0.3) 50%, transparent 70%);
  animation-delay: -5s;
  z-index: 2;
}

.hero-background::after {
  bottom: -50px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #7356BF 0%, rgba(115, 86, 191, 0.3) 50%, transparent 70%);
  z-index: 1;
}

/* Additional gradient blob for more color variation */
.hero-background .blob-1 {
  top: 20%;
  left: 25%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #00C6FF 0%, rgba(0, 198, 255, 0.2) 50%, transparent 70%);
  animation-delay: -3s;
  z-index: 1;
}

.hero-background .blob-2 {
  bottom: 10%;
  right: 20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #0072FF 0%, rgba(0, 114, 255, 0.2) 50%, transparent 70%);
  animation-delay: -8s;
  z-index: 1;
}

/* Hero buttons styling */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero-buttons a {
  min-width: 180px;
  text-align: center;
}

.dark .logo {
  color: #fff;
}

.light .hero-background::before,
.light .hero-background::after,
.light .hero-background .blob {
  opacity: 0.2;
  mix-blend-mode: multiply;
}

.dark .hero-background::before,
.dark .hero-background::after,
.dark .hero-background .blob {
  opacity: 0.4;
  mix-blend-mode: color-dodge;
}

@keyframes pulse {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(10px, 10px);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

.hero-title {
  max-width: 600px;
}

.hero-subtitle {
  max-width: 500px;
  margin-bottom: var(--space-8);
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  font-size: 1.5rem;
}

.feature-title {
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.feature-description {
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Comparison Table */
.table-container {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 800px;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.comparison-table th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.comparison-table th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.comparison-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg);
}

.comparison-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.plan-highlight {
  position: relative;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-highlight i {
  margin-right: var(--space-2);
}

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

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin: 0 auto;
  max-width: 1200px;
}

.testimonial-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--warning);
  margin-bottom: var(--space-4);
}

.testimonial-content {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6);
  margin: var(--space-16) auto;
  max-width: 1000px;
}

.cta-title {
  color: white;
  margin-bottom: var(--space-6);
}

.cta-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-8) auto;
}

.btn-cta {
  background-color: white;
  color: var(--primary);
  font-weight: 700;
}

.btn-cta:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Utility classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bg-gradient {
  background: var(--primary-gradient);
}

.shadow-hover {
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.border-gradient {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.border-gradient-content {
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--bg-primary);
  height: 100%;
}
