/* LitMarks.ai — Brand colors from extension */
:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --rose: #e11d48;
  --rose-light: #ffe4e6;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-800);
  line-height: 1.6;
  background: var(--white);
}

/* Header */
.header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.brand-ai {
  color: var(--purple);
}

/* Shared content container — aligns all sections */
.content-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero — short, wide */
.hero {
  padding: 2rem 0 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 25%, var(--slate-50) 50%, #fef3c7 100%);
}

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

.hero-icon {
  display: block;
  margin: 0 auto 0.75rem auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--slate-600);
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.cta-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

/* Carousel section — below hero */
.carousel-section {
  padding: 0 0 1rem;
}

.carousel-section .content-wrap {
  padding-bottom: 0;
}

/* Sections */
section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
}

/* Carousel */
.carousel {
  position: relative;
  padding: 0 0.5rem;
}

.carousel-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.1),
    0 24px 48px -12px rgba(124, 58, 237, 0.25),
    0 8px 24px -8px rgba(0, 0, 0, 0.15);
  background: var(--white);
}

.carousel-chrome-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--slate-200);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.carousel-dot:nth-child(1) { background: #f87171; }
.carousel-dot:nth-child(2) { background: #fbbf24; }
.carousel-dot:nth-child(3) { background: #34d399; }

.carousel-title {
  margin-left: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-500);
}

.carousel-track {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  min-height: 320px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--slate-600);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--purple);
  color: var(--white);
  transform: scale(1.05);
}

.carousel-btn:active {
  transform: scale(0.98);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot-btn {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--slate-200);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.carousel-dot-btn:hover {
  background: var(--slate-400);
}

.carousel-dot-btn.active {
  width: 24px;
  border-radius: 4px;
  background: var(--purple);
}

.carousel-progress {
  height: 3px;
  background: var(--slate-200);
  overflow: hidden;
}

.carousel-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--purple), var(--purple-dark));
  transition: width 0.05s linear;
}

@media (max-width: 640px) {
  .carousel {
    padding: 0 0.25rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-track {
    min-height: 220px;
  }
}

/* Features */
.features {
  padding: 1.5rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
}

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

@media (max-width: 680px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-card:nth-child(1) {
  background: radial-gradient(ellipse 120% 100% at 0% 0%, #ede9fe, var(--white) 70%);
  border-color: #c4b5fd;
}

.feature-card:nth-child(2) {
  background: radial-gradient(ellipse 120% 100% at 100% 0%, var(--teal-light), var(--white) 70%);
  border-color: #5eead4;
}

.feature-card:nth-child(3) {
  background: radial-gradient(ellipse 120% 100% at 0% 100%, var(--amber-light), var(--white) 70%);
  border-color: #fcd34d;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card:nth-child(1) .feature-icon { color: var(--purple); }
.feature-card:nth-child(2) .feature-icon { color: var(--teal); }
.feature-card:nth-child(3) .feature-icon { color: var(--amber); }

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

.feature-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin: 0;
}

/* Upcoming features */
.upcoming {
  padding: 3rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.upcoming-header {
  text-align: center;
  margin-bottom: 2rem;
}

.upcoming-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.upcoming-header h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
}

.upcoming-intro {
  color: var(--slate-600);
  margin: 0;
  font-size: 1.0625rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

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

.upcoming-card {
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upcoming-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
}

.upcoming-card--1 {
  border-left: 4px solid var(--purple);
}

.upcoming-card--2 {
  border-left: 4px solid var(--teal);
}

.upcoming-card--3 {
  border-left: 4px solid var(--amber);
}

.upcoming-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.upcoming-card--1 .upcoming-icon {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: var(--purple);
}

.upcoming-card--2 .upcoming-icon {
  background: linear-gradient(135deg, var(--teal-light) 0%, #99f6e4 100%);
  color: var(--teal);
}

.upcoming-card--3 .upcoming-icon {
  background: linear-gradient(135deg, var(--amber-light) 0%, #fde68a 100%);
  color: var(--amber);
}

.upcoming-icon svg {
  width: 24px;
  height: 24px;
}

.upcoming-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-800);
  margin: 0 0 0.5rem 0;
}

.upcoming-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-header h2 {
    font-size: 1.5rem;
  }
}

/* How it works + Output — two columns */
.how-and-output {
  max-width: 100%;
  padding: 0;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
}

.how-and-output-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.how-and-output .content-wrap {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.how-it-works,
.output {
  max-width: none;
  padding: 0;
  margin: 0;
}

.how-it-works h2,
.output h2 {
  margin-top: 0;
}

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.steps li:last-child {
  margin-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  border-radius: 8px;
}

.steps p {
  margin: 0;
  color: var(--slate-600);
}

.steps a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}

.steps a:hover {
  text-decoration: underline;
}

/* Output format */
.output-intro {
  color: var(--slate-600);
  margin: 0 0 1rem 0;
}

.code-block {
  background: linear-gradient(145deg, #1e1b4b 0%, var(--slate-900) 100%);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.code-block code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

@media (max-width: 840px) {
  .how-and-output-inner {
    grid-template-columns: 1fr;
  }
}

/* Install */
.install-steps {
  padding-left: 1.25rem;
  color: var(--slate-600);
}

.install-steps li {
  margin-bottom: 0.75rem;
}

.install-steps code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.9em;
  background: var(--slate-100);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.install-steps a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}

.install-steps a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--slate-200);
  background: linear-gradient(180deg, var(--slate-50) 0%, #ede9fe 100%);
}

.footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--slate-500);
}

.footer a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
