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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: #0b0316;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.8s ease-out;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo {
  font-size: 1.5rem;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.cta-button-small {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  background: radial-gradient(
    ellipse at center,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

.arrow {
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.hero-badge:hover .arrow {
  transform: translateX(4px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
  flex-wrap: wrap;
}

.cta-button-primary,
.cta-button-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-button-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.cta-button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button-primary:hover,
.cta-button-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.cta-button-primary::before,
.cta-button-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button-primary:hover::before,
.cta-button-secondary:hover::before {
  left: 100%;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 0.8s ease-out 1s both;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Floating Elements */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Allow pointer events for easter eggs */
.floating-element.easter-egg {
  pointer-events: auto;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: float var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
}
.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
}
.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
}
.floating-element:nth-child(4) {
  top: 40%;
  right: 25%;
}
.floating-element:nth-child(5) {
  bottom: 20%;
  right: 10%;
}

/* Easter Egg Elements */
.floating-element.easter-egg {
  cursor: pointer !important;
  transition: all 0.3s ease;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

.floating-element.easter-egg:hover {
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.floating-element.easter-egg:nth-child(6) {
  top: 30%;
  left: 15%;
  animation-delay: 3s;
  animation-duration: 15s;
}

.floating-element.easter-egg:nth-child(7) {
  top: 70%;
  right: 20%;
  animation-delay: 5s;
  animation-duration: 13s;
}

/* Browser Support Section */
.browser-support {
  padding: 4rem 0;
}

.support-text {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.browser-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.browser-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.browser-item:hover {
  transform: translateY(-5px);
}

.browser-icon {
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.browser-item:hover .browser-icon {
  transform: scale(1.1);
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

/* Features Section */
.features {
  padding: 8rem 0;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.5),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Demo Section */
.demo-section {
  position: relative;
  padding: 6rem 0;
  background: radial-gradient(
    ellipse at center,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: 100vh;
}

.demo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.demo-text {
  max-width: 600px;
  text-align: center;
  color: white;
}

.demo-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.demo-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.demo-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.demo-feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: white;
  font-weight: 500;
}

/** --- EXTENSION REPLICA --- **/
.demo-extension {
  width: 300px;
  height: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.extension-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.extension-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.extension-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.extension-title.easter-egg-logo {
  cursor: pointer;
  transition: all 0.3s ease;
}

.extension-title.easter-egg-logo:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
}

.extension-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Search */
.extension-search {
  padding: 1rem 1.5rem;
}

.extension-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.extension-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.extension-search-input:focus {
  background: rgba(255, 255, 255, 0.15);
}

/* Tabs */
.extension-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem 1rem 1.5rem;
}

.extension-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
}

.extension-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.extension-tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.extension-tab.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.extension-tab.locked:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* Content */
.extension-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.extension-tab-content {
  display: none;
}

.extension-tab-content.active {
  display: block;
}

/* Locked Content */
.extension-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.extension-locked-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.extension-locked-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.extension-locked-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.extension-download-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.extension-download-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Tools Grid - EXACTLY LIKE ORIGINAL */
.extension-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.extension-tool-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.extension-tool-card:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.extension-tool-card.active {
  background: white;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.extension-tool-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.extension-tool-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.extension-tool-desc {
  font-size: 10px;
  color: #666;
  line-height: 1.3;
}

/* Footer */
.extension-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.extension-footer .mobile-text {
  display: none;
}

.extension-footer .desktop-text {
  display: block;
}

/** --- PREVIEW AREA --- **/
/* Demo Workspace */
.demo-workspace {
  max-width: 2200px;
  margin: 0 auto;
  position: relative;
  padding: 0 2rem;
}

/* Demo Results Container */
.demo-results-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 600px;
  max-width: 1800px;
  margin: 0 auto;
  transform: scale(0.85);
  transform-origin: center top;
  margin-top: -2rem;
  margin-bottom: -2rem;
}

/* Demo Extension */
.demo-extension {
  width: 400px;
  height: 600px;
  z-index: 20;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.demo-results-container.has-content .demo-extension {
  z-index: 15;
}

.demo-extension:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Demo Panels */
.demo-panel {
  position: absolute;
  width: 800px;
  height: 500px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-100%) scale(0.8);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 25;
}

.demo-panel.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 25;
}

.demo-markdown-panel {
  left: -450px;
  top: 120px;
  width: 500px;
  transform: translateX(-100%) scale(0.6);
}

.demo-preview-panel {
  right: -800px;
  top: 120px;
  transform: translateX(100%) scale(0.8);
}

.demo-markdown-panel.visible {
  left: -450px;
  top: 50px;
  width: 500px;
  transform: translateX(0) scale(0.9);
}

.demo-preview-panel.visible {
  right: -700px;
  top: 50px;
  transform: translateX(0) scale(0.8);
}

.demo-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  color: #c9d1d9;
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-panel-content {
  padding: 1.5rem;
  height: 450px;
  overflow-y: auto;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Adjust extension container for new layout */
.demo-extension .extension-container {
  height: 600px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 1rem 0;
  background: transparent;
}

/* Markdown Panel Specific */
.demo-markdown-panel .demo-panel-content {
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-word;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

/* Preview Panel Specific */
.demo-preview-panel {
  background: #121215;
  border: 1px solid #2e1736;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.demo-preview-panel .demo-panel-header {
  background: #121215;
  border-bottom: 1px solid #2e1736;
  color: #ffffff;
}

.demo-preview-panel .demo-panel-content {
  color: #ffffff;
  background: #121215;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  border-radius: 0 0 8px 8px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  overflow-x: hidden;
  word-wrap: break-word;
}

.demo-preview-panel .demo-panel-content h1,
.demo-preview-panel .demo-panel-content h2,
.demo-preview-panel .demo-panel-content h3 {
  color: #ffffff;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.demo-preview-panel .demo-panel-content h1 {
  font-size: 2rem;
}

.demo-preview-panel .demo-panel-content h2 {
  font-size: 1.5rem;
}

.demo-preview-panel .demo-panel-content h3 {
  font-size: 1.25rem;
}

.demo-preview-panel .demo-panel-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e4e8;
}

.demo-preview-panel .demo-panel-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  table-layout: fixed;
  word-wrap: break-word;
}

.demo-preview-panel .demo-panel-content th,
.demo-preview-panel .demo-panel-content td {
  padding: 0.75rem;
  border: 1px solid #d0d7de;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 0;
}

.demo-preview-panel .demo-panel-content th {
  background: #f6f8fa;
  font-weight: 600;
}

.demo-markdown,
.demo-preview {
  flex: 1;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  min-height: 500px;
}

.demo-preview {
  flex: 1.2;
  background: #ffffff;
  border: 1px solid #e1e4e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.demo-markdown-header,
.demo-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f6f8fa;
  border-bottom: 1px solid #e1e4e8;
  color: #24292f;
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-markdown-content,
.demo-preview-content {
  padding: 1.5rem;
  height: 450px;
  overflow-y: auto;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.demo-markdown-content {
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-word;
}

.demo-preview-content {
  color: #24292f;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  border-radius: 0 0 8px 8px;
  transition: all 0.4s ease;
}

.demo-preview-content h1,
.demo-preview-content h2,
.demo-preview-content h3 {
  color: #ffffff;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.demo-preview-content h1 {
  font-size: 2rem;
}
.demo-preview-content h2 {
  font-size: 1.5rem;
}
.demo-preview-content h3 {
  font-size: 1.25rem;
}

.demo-preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e4e8;
}

.demo-preview-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.demo-preview-content th,
.demo-preview-content td {
  padding: 0.75rem;
  border: 1px solid #d0d7de;
  text-align: left;
}

.demo-preview-content th {
  background: #f6f8fa;
  font-weight: 600;
}

/* Empty State */
.demo-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #efefef;
  text-align: center;
}

.demo-empty-state-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.demo-empty-state-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Demo Results Container States */
.demo-results-container:not(.has-content) .demo-panel {
  display: none;
}

.demo-results-container.has-content .demo-panel {
  display: block;
}

/** --- RESPONSIVE --- **/
@media (max-width: 1200px) {
  .demo-results-container {
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    transform: scale(0.9);
    margin-top: -1rem;
    margin-bottom: -1rem;
    min-height: 800px;
  }

  .demo-extension {
    width: 400px;
    height: 600px;
    margin: 0 auto;
    position: relative;
  }

  .extension-footer .mobile-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
  }

  .extension-footer .desktop-text {
    display: none;
  }

  .demo-panel {
    position: relative;
    width: 100%;
    height: 400px;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 1rem;
  }

  .demo-panel-content {
    height: 350px;
  }

  .demo-markdown-panel,
  .demo-preview-panel {
    left: auto;
    right: auto;
    top: auto;
    transform: translateY(100%) scale(0.8);
  }

  .demo-markdown-panel.visible,
  .demo-preview-panel.visible {
    left: auto;
    right: auto;
    top: auto;
    transform: translateY(0) scale(1);
  }

  .demo-markdown-panel {
    transform: translateY(-100%);
  }

  .demo-preview-panel {
    transform: translateY(100%);
  }
}

@media (max-width: 768px) {
  .demo-results-container {
    transform: scale(0.95);
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
    gap: 1rem;
    min-height: 700px;
  }

  .demo-extension {
    width: 350px;
    height: 550px;
  }

  .extension-footer .mobile-text {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    padding: 0 0.5rem;
  }

  .extension-footer .desktop-text {
    display: none;
  }

  .extension-container {
    height: 550px;
  }

  .demo-panel {
    height: 350px;
  }

  .demo-panel-content {
    height: 300px;
  }

  .demo-title {
    font-size: 2rem;
  }

  .demo-features {
    flex-direction: column;
    align-items: center;
  }

  .demo-workspace {
    padding: 0 1rem;
    max-width: 100%;
  }
}

/* Download Section */
.download {
  padding: 8rem 0;
  background: radial-gradient(
    ellipse at center,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
}

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

.download-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.download-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.download-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
}

.download-card:hover::before {
  opacity: 1;
}

.download-header {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.download-icon {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
}

.download-card:hover .download-icon {
  transform: scale(1.1);
}

.download-info {
  text-align: left;
}

.download-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.download-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.download-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-badge {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
}

.download-button {
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.button-arrow {
  transition: transform 0.3s ease;
}

.download-button:hover .button-arrow {
  transform: translateX(4px);
}

.download-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 4rem 0 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-item .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.stats-disclaimer {
  text-align: center;
  color: #ffffff;
  font-size: 1.2rem;
  margin-top: 2rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

@media (max-width: 768px) {
  .download-stats {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }

  .stat-item .stat-number {
    font-size: 2.8rem;
  }

  .stats-disclaimer {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* Support Section */
.support {
  padding: 6rem 0;
  background: radial-gradient(
    ellipse at center,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
}

.support-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.support-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.support-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
}

.support-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.support-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.support-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.support-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.support-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.support-link:hover {
  color: #764ba2;
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-30px) rotate(3deg);
  }
}

/* AOS Animation Classes */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 6rem 1rem 4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 2rem;
  }

  .browser-logos {
    gap: 2rem;
  }

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

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

  .download-options {
    grid-template-columns: 1fr;
  }

  .download-stats {
    gap: 2rem;
  }

  .support {
    padding: 4rem 0;
  }

  .support-card {
    padding: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .demo-results-container {
    transform: scale(1);
    margin-top: 0;
    margin-bottom: 0;
    gap: 0.5rem;
    min-height: 600px;
  }

  .demo-extension {
    width: 320px;
    height: 500px;
  }

  .extension-footer .mobile-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    padding: 0 0.25rem;
  }

  .extension-footer .desktop-text {
    display: none;
  }

  .extension-container {
    height: 500px;
  }

  .demo-panel {
    height: 300px;
  }

  .demo-panel-content {
    height: 250px;
  }

  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .download-title {
    font-size: 1.8rem;
  }

  .cta-button-primary,
  .cta-button-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

.demo-preview {
  margin-top: 3rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.preview-container {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-tabs {
  display: flex;
  gap: 0.25rem;
}

.preview-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.preview-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.preview-tab.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.preview-tab-icon {
  opacity: 0.8;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

#html-preview td img {
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

/* Coming Soon Styles */
.download-card.coming-soon {
  opacity: 0.8;
  cursor: not-allowed;
}

.download-card.coming-soon:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff6b6b, #ff8787);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
  z-index: 2;
}

.download-card.coming-soon .download-button {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  opacity: 0.7;
}

.download-card.coming-soon .download-button:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.1);
}

.download-card.coming-soon .feature-badge {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.download-card a {
  text-decoration: none;
  display: block;
  width: 100%;
}
