/* RankYourPlugin - HTML/CSS/JS version */
/* Variables (from Tailwind theme) */
:root {
  --background: 210 20% 98%;
  --foreground: 220 30% 12%;
  --card: 0 0% 100%;
  --card-foreground: 220 30% 12%;
  --primary: 220 70% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 25% 95%;
  --secondary-foreground: 220 30% 12%;
  --muted: 210 20% 96%;
  --muted-foreground: 220 10% 46%;
  --accent: 170 75% 42%;
  --accent-foreground: 0 0% 100%;
  --border: 214 20% 90%;
  --ring: 220 70% 45%;
  --radius: 0.625rem;
  --hero-gradient: linear-gradient(135deg, hsl(220 70% 45%) 0%, hsl(170 75% 42%) 100%);
}

* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn-sm { height: 2.25rem; padding: 0 0.75rem; }
.btn-lg { height: 2.75rem; padding: 0 2rem; font-size: 1rem; }

.btn-hero {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.25);
  font-weight: 600;
  padding: 10px;
}
.btn-hero:hover {
  background: hsl(220 70% 40%);
}

.btn-hero-outline {
  padding: 10px;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background: transparent;
  font-weight: 600;
}
.btn-hero-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: 0 10px 15px -3px hsl(var(--accent) / 0.25);
  font-weight: 600;
}
.btn-accent:hover {
  background: hsl(170 75% 38%);
}

.w-full { width: 100%; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.logo-accent { color: hsl(var(--primary)); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.nav-desktop a:hover { color: hsl(var(--foreground)); }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem;
  padding-bottom: 1rem;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  animation: fadeIn 0.3s ease-out;
}

.nav-mobile.is-open { display: flex; }

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.nav-mobile a:hover { color: hsl(var(--foreground)); }
.nav-mobile .btn { margin-top: 0.5rem; }
a.btn.btn-hero.btn-sm {
  color: #fff;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero */
.hero {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero { padding-top: 9rem; padding-bottom: 7rem; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.05), hsl(var(--background)), hsl(var(--accent) / 0.05));
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.05);
  filter: blur(80px);
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.05);
  filter: blur(80px);
  z-index: -1;
}

.hero-content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) { .hero-content h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-content h1 { font-size: 3.75rem; } }

.gradient-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) { .hero-sub { font-size: 1.25rem; } }

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; }
}

.hero-image {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-image-wrap {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 0 25px 50px -12px hsl(var(--primary) / 0.1);
  overflow: hidden;
}

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

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-up.delay-2 { animation-delay: 0.2s; }

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

/* Social Proof */
.social-proof {
  padding: 3.5rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.5);
}

.social-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) { .audience-list { gap: 3.5rem; } }

.audience-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.audience-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section common */
.section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section { padding: 7rem 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
}

@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }

.section-header p {
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  position: relative;
  text-align: center;
}

.step-num {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 2.75rem;
  font-weight: 700;
  color: hsl(var(--primary) / 0.2);
  font-family: 'Space Grotesk', sans-serif;
  user-select: none;
}

@media (min-width: 640px) {
  .step-num { left: auto; right: 0; top: -0.75rem; }
}

@media (min-width: 1024px) {
  .step-num { right: -0.5rem; }
}

.step-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background 0.2s, color 0.2s;
}

.step-card:hover .step-icon {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Features */
.features {
  background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--secondary) / 0.3));
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.05);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s, color 0.2s;
}

.feature-card:hover .feature-icon {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* Platforms */
.platforms-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .platforms-row { flex-direction: row; }
}

.platform-card {
  flex: 1;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.platform-card:hover {
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.05);
}

.platform-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1.5rem;
}

.platform-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.platform-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.check-icon {
  color: hsl(var(--accent));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Pricing */
.pricing {
  background: linear-gradient(to bottom, hsl(var(--secondary) / 0.3), hsl(var(--background)));
}

.pricing-sub { margin-bottom: 1.5rem !important; }

.platform-toggle {
  display: inline-flex;
  border-radius: 0.5rem;
  background: hsl(var(--secondary));
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.toggle-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.toggle-btn:hover { color: hsl(var(--foreground)); }

.toggle-btn.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.billing-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.billing-label.active { color: hsl(var(--foreground)); }

.billing-label .save {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--accent));
  font-style: normal;
  margin-left: 0.25rem;
}

.billing-switch {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: hsl(var(--border));
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.billing-switch[aria-pressed="true"] {
  background: hsl(var(--accent));
}

.billing-knob {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.billing-switch[aria-pressed="true"] .billing-knob {
  transform: translateX(1.5rem);
}

.pricing-grid { max-width: 56rem; margin: 0 auto; }

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pricing-cards.hidden { display: none; }

@media (min-width: 640px) { .pricing-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-cards { grid-template-columns: repeat(4, 1fr); } }

.plan-card {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.plan-card.popular {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.1);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.plan-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem;
}

.plan-price {
  margin-bottom: 0.25rem;
}

.plan-price .price-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.plan-price .price-period {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.plan-save {
  font-size: 0.75rem;
  color: hsl(var(--accent));
  font-weight: 600;
  margin: 0 0 1rem;
}

.plan-save[hidden] { display: none !important; }
.plan-free .plan-save { display: none !important; }

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

.why-item {
  display: flex;
  gap: 1rem;
}

.why-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem;
}

.why-item p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--secondary) / 0.3));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }

.testimonial-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 2rem;
}

.stars {
  color: hsl(var(--accent));
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: hsl(var(--foreground));
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.testimonial-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 42rem;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--foreground));
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-trigger:hover { color: hsl(var(--primary)); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: hsl(var(--muted-foreground));
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease-out;
}

.faq-item.is-open .faq-content {
  max-height: 500px;
}

.faq-content p {
  padding: 0 0 1rem;
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.1), hsl(var(--background)), hsl(var(--accent) / 0.1));
  z-index: -1;
}

.final-cta .container { position: relative;     text-align: center;}

.final-cta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
}

@media (min-width: 640px) { .final-cta h2 { font-size: 2.25rem; } }

.final-cta p {
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.final-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .final-cta-btns { flex-direction: row; }
}

/* Footer */
.footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
}

.footer h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
}

.footer p, .footer ul {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

.footer ul {
  list-style: none;
  padding: 0;
}

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

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover { color: hsl(var(--foreground)); }

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
