/* CSS Variables */
:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--slate-900);
  line-height: 1.6;
  background-color: white;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--slate-900), var(--slate-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--slate-600);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--slate-900);
}

.btn-primary {
  background-color: var(--slate-900);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--slate-800);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 5rem 1rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--slate-50), white);
}

.badge {
  display: inline-block;
  background-color: var(--slate-100);
  color: var(--slate-700);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--slate-900), var(--slate-700), var(--slate-900));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-large.primary {
  background-color: var(--slate-900);
  color: white;
}

.btn-large.primary:hover {
  background-color: var(--slate-800);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: white;
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-300);
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--slate-900);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--slate-900);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 36rem;
  margin: 0 auto;
}

/* Demo Section */
.demo-section {
  padding: 5rem 1rem;
  background-color: white;
}

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

.demo-panel {
  background-color: white;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.panel-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.load-example-btn {
  font-size: 0.75rem;
  color: var(--slate-500);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.load-example-btn:hover {
  color: var(--slate-700);
}

#input-text {
  width: 100%;
  min-height: 300px;
  padding: 1.5rem;
  border: none;
  resize: none;
  font-size: 1rem;
  line-height: 1.7;
  font-family: inherit;
}

#input-text:focus {
  outline: none;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--slate-100);
}

.char-count {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.humanize-btn {
  background-color: var(--slate-900);
  color: white;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.humanize-btn:hover:not(:disabled) {
  background-color: var(--slate-800);
}

.humanize-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.output-box {
  min-height: 300px;
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.output-placeholder {
  color: var(--slate-400);
}

.copy-btn {
  font-size: 0.75rem;
  color: var(--slate-500);
  background: var(--slate-100);
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--slate-200);
}

.hidden {
  display: none;
}

.score-bar {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--slate-100);
}

.score-track {
  height: 0.5rem;
  background-color: var(--slate-100);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.score-fill {
  height: 100%;
  background: linear-gradient(to right, var(--slate-600), var(--slate-900));
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}

.score-label {
  font-size: 0.75rem;
  color: var(--slate-600);
  font-weight: 500;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--slate-200);
  transform: translateY(-2px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background-color: var(--slate-900);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* Features Section */
.features-section {
  padding: 5rem 1rem;
  background-color: var(--slate-50);
}

.features-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  background-color: white;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.2s;
}

.feature-box:hover {
  border-color: var(--slate-300);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.feature-box .feature-icon {
  margin: 0 0 1rem 0;
}

.feature-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: var(--slate-600);
  line-height: 1.6;
}

/* Trust Section */
.trust-section {
  margin-top: 4rem;
  padding: 3rem;
  background-color: white;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.trust-item {
  text-align: center;
}

.trust-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
}

.trust-label {
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 1rem;
  background-color: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background-color: white;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: all 0.2s;
}

.pricing-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  border: 2px solid var(--slate-900);
  transform: scale(1.02);
}

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

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-description {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1;
}

.price-period {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--slate-700);
}

.pricing-features svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--slate-900);
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 0.875rem;
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.pricing-cta.primary {
  background-color: var(--slate-900);
  color: white;
}

.pricing-cta.primary:hover {
  background-color: var(--slate-800);
  transform: translateY(-2px);
}

.pricing-cta.secondary {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.pricing-cta.secondary:hover {
  background-color: var(--slate-200);
}

/* FAQ Section */
.faq-section {
  margin-top: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--slate-900);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--slate-400);
  transition: transform 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--slate-600);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

/* Footer */
footer {
  background-color: var(--slate-900);
  color: white;
  padding: 4rem 1rem 2rem;
}

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

.footer-column h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.footer-column p {
  color: var(--slate-400);
  line-height: 1.6;
}

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

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--slate-400);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-800);
}

.footer-bottom p {
  color: var(--slate-500);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--slate-400);
  transition: color 0.2s;
}

.social-links a:hover {
  color: white;
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.popular {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-main-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 2rem;
  }

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

  nav {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stripe Button Styles */
.stripe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.stripe-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.stripe-loading {
  opacity: 0.7;
  cursor: wait;
}

/* Success/Cancel Pages */
.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.result-card {
  max-width: 480px;
  text-align: center;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 3rem;
}

.result-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon.success {
  background-color: #dcfce7;
  color: #16a34a;
}

.result-icon.cancel {
  background-color: #fef2f2;
  color: #dc2626;
}

.result-icon svg {
  width: 2rem;
  height: 2rem;
}

.result-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.result-card p {
  color: var(--slate-600);
  margin-bottom: 2rem;
}
