*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0f0f0f;
  color: #fafafa;
  line-height: 1.6;
}

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: #0f0f0f;
  border-bottom: 1px solid #1a1a1a;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo span {
  color: #6366f1;
}

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

.nav a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav a:hover {
  color: #fafafa;
}

.nav a.btn-primary {
  color: white;
}

.nav a.btn-primary:hover {
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: #6366f1;
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #5558e3;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #888;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Interactive Hero */
.hero-interactive {
  padding: 3rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  max-width: 500px;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-content .hero-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* URL Form */
.url-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.url-input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fafafa;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.url-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.url-input::placeholder {
  color: #666;
}

.btn-go {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  white-space: nowrap;
}

.btn-go svg {
  transition: transform 0.15s;
}

.btn-go:hover svg {
  transform: translateX(3px);
}

.hero-hint {
  font-size: 0.85rem;
  color: #666;
}

/* Demo Browser */
.demo-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-browser {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.demo-browser-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #252525;
  border-bottom: 1px solid #2a2a2a;
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a3a3a;
}

.demo-dots span:first-child {
  background: #ff5f57;
}

.demo-dots span:nth-child(2) {
  background: #ffbd2e;
}

.demo-dots span:last-child {
  background: #28ca41;
}

.demo-url {
  flex: 1;
  padding: 0.4rem 0.75rem;
  background: #1a1a1a;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

.demo-content {
  padding: 1.5rem 2rem;
  max-height: 380px;
  overflow-y: auto;
  background: #fafafa;
  color: #1a1a1a;
  user-select: text;
  cursor: text;
}

.demo-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.demo-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1rem;
}

.demo-article p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #333;
}

.demo-article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: #1a1a1a;
}

.demo-article ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.demo-article li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.35rem;
  color: #333;
}

.demo-highlight {
  padding: 0.1em 0;
  border-radius: 2px;
  transition: opacity 0.15s;
  outline: 3px solid var(--demo-color, #ffff00) !important;
  outline-offset: 2px;
  background-color: color-mix(in srgb, var(--demo-color, #ffff00) 30%, transparent) !important;
  cursor: pointer;
  position: relative;
}

.demo-highlight:hover {
  opacity: 0.8;
}

.demo-hover {
  outline: 2px dashed var(--demo-hover-color, #ffff00) !important;
  outline-offset: 2px;
  cursor: pointer;
}

.demo-has-note::after {
  content: '💬';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 12px;
  pointer-events: none;
}

/* Demo Popup */
.demo-popup {
  position: absolute;
  z-index: 999999;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  min-width: 260px;
  max-width: 360px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.demo-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.demo-popup-title {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-popup-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}

.demo-popup-close:hover {
  color: #fff;
}

.demo-popup-textarea {
  width: 100%;
  min-height: 70px;
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px;
  color: #fff;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.demo-popup-textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.demo-popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}

.demo-popup-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.demo-popup-btn-save {
  background: #6366f1;
  color: white;
}

.demo-popup-btn-save:hover {
  background: #5558e3;
}

.demo-popup-btn-delete {
  background: #dc2626;
  color: white;
}

.demo-popup-btn-delete:hover {
  background: #b91c1c;
}

/* Demo Toolbar */
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}

.demo-toolbar-label {
  font-size: 0.8rem;
  color: #888;
}

.demo-colors {
  display: flex;
  gap: 0.35rem;
}

.demo-color {
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
}

.demo-color:hover {
  transform: scale(1.1);
}

.demo-color.active {
  border-color: #fafafa;
}

.demo-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: #888;
}

/* Features */
.features {
  padding: 6rem 3rem;
  background: #1a1a1a;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  padding: 2rem;
  background: #0f0f0f;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #6366f1;
}

.feature p {
  color: #888;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  padding: 2rem 3rem;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
  border-top: 1px solid #1a1a1a;
}

/* Page Content */
.page-content {
  flex: 1;
}

.page-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.125rem;
  color: #888;
}

/* Features Page */
.features-section {
  padding: 2rem 3rem 4rem;
}

.features-grid-large {
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.feature-large {
  padding: 2.5rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-large h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-large p {
  font-size: 1rem;
  line-height: 1.7;
}

.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #1a1a1a;
}

.cta-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Pricing Page */
.pricing-section {
  padding: 2rem 3rem 4rem;
}

.pricing-section-alt {
  background: #0f0f0f;
}

/* Pricing Toggle */
.pricing-toggle-container {
  display: flex;
  justify-content: center;
  padding: 0 2rem 3rem;
}

.pricing-toggle {
  position: relative;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
}

.pricing-toggle-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.pricing-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.1);
}

.pricing-toggle-btn.active {
  background: transparent;
}

.pricing-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #2a2a2a;
  border-radius: 12px;
  color: #888;
  transition: all 0.3s ease;
}

.pricing-toggle-btn.active .pricing-toggle-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.pricing-toggle-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-toggle-title {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  transition: color 0.3s ease;
}

.pricing-toggle-btn.active .pricing-toggle-title {
  color: #fafafa;
}

.pricing-toggle-desc {
  font-size: 0.8rem;
  color: #555;
  transition: color 0.3s ease;
}

.pricing-toggle-btn.active .pricing-toggle-desc {
  color: #888;
}

.pricing-toggle-slider {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  height: calc(100% - 1rem);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Pricing Panels */
.pricing-panels {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pricing-panel {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

.pricing-panel.active {
  display: block;
}

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

.pricing-panel-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.pricing-category {
  max-width: 1200px;
  margin: 0 auto;
}

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

.pricing-category-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  color: white;
}

.pricing-category-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #fafafa;
}

.pricing-category-header p {
  font-size: 1rem;
  color: #888;
  max-width: 500px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-grid-two {
  max-width: 700px;
  margin: 0 auto;
}

.pricing-grid-one {
  max-width: 450px;
  margin: 0 auto;
}

.pricing-card-wide {
  max-width: 100%;
}

.pricing-grid-four {
  max-width: 1100px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .pricing-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pricing-grid-four {
    grid-template-columns: 1fr;
  }
  
  .pricing-toggle {
    flex-direction: column;
  }
  
  .pricing-toggle-slider {
    display: none;
  }
  
  .pricing-toggle-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
  }
}

.pricing-card {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  border-color: #6366f1;
  background: linear-gradient(180deg, #1a1a2e 0%, #1a1a1a 100%);
}

.pricing-card-premium {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #1a1a1a 0%, #1f1a10 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #6366f1;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-badge-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pricing-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2a2a2a;
}

.pricing-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #fafafa;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.pricing-price .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fafafa;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: #888;
}

.pricing-description {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: #aaa;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: "✓";
  color: #6366f1;
  font-weight: 600;
}

.pricing-features li.feature-highlight {
  color: #fafafa;
  font-weight: 500;
}

/* How it works */
.how-it-works {
  padding: 4rem 3rem;
  background: #0f0f0f;
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
}

.step h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fafafa;
}

.step p {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.5;
}

.btn-secondary {
  background: #2a2a2a;
  color: #fafafa;
  border: 1px solid #3a3a3a;
}

.btn-secondary:hover {
  background: #3a3a3a;
}

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
}

/* FAQ Accordion */
.faq-section {
  padding: 5rem 3rem;
  background: #0f0f0f;
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #fafafa;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #3a3a3a;
}

.faq-item[open] {
  border-color: #6366f1;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fafafa;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(99, 102, 241, 0.05);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  animation: faqSlideDown 0.3s ease;
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.7;
}

.faq-answer strong {
  color: #fafafa;
}

/* Trust Band */
.trust-band {
  padding: 3rem 2rem;
  margin-top: 4rem;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  flex-shrink: 0;
  color: #6366f1;
}

.trust-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fafafa;
}

.trust-desc {
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 900px) {
  .trust-items {
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .trust-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 280px;
  }
}

/* Legacy FAQ grid (keep for other pages) */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-grid .faq-item {
  background: transparent;
  border: none;
  border-radius: 0;
}

.faq-grid .faq-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fafafa;
}

.faq-grid .faq-item p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-interactive {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 2rem 3rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .url-form {
    max-width: 500px;
    margin: 0 auto 1rem;
  }

  .demo-content {
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .nav {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-interactive {
    padding: 1.5rem 1.5rem 2.5rem;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .url-form {
    flex-direction: column;
  }

  .btn-go {
    justify-content: center;
  }

  .demo-content {
    padding: 1.25rem 1.5rem;
    max-height: 280px;
  }

  .demo-article h2 {
    font-size: 1.25rem;
  }

  .features {
    padding: 4rem 1.5rem;
  }
}
