/* ELT Companion — Carbon & Acid Lime Editorial Studio Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #09090B;
  --surface: #121215;
  --surface-raised: #18181C;
  --border: #27272A;
  --border-strong: #3F3F46;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --lime: #A3E635;
  --lime-hover: #BEF264;
  --lime-tint: rgba(163, 230, 53, 0.10);
  --lime-ink: #09090B;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bricolage Grotesque', 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.btn-sm {
  padding: 0.62rem 1rem;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 54ch;
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta svg {
  color: var(--lime);
  flex-shrink: 0;
}

/* Fanned PDF Specimen Stack — Overdrive 3D Perspective Stage */
.specimen-stage {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  --mx: 0;
  --my: 0;
}

.specimen {
  position: absolute;
  width: 64%;
  aspect-ratio: 210 / 297;
  padding: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: #ffffff;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, opacity 320ms ease;
  will-change: transform;
  cursor: pointer;
}

.specimen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 2px;
}

.specimen-left {
  transform: translate3d(calc(-30% + var(--mx) * -10px), calc(6% + var(--my) * -6px), -40px) rotate(calc(-7deg + var(--mx) * -2deg)) scale(0.88);
  z-index: 1;
  opacity: 0.86;
}

.specimen-right {
  transform: translate3d(calc(30% + var(--mx) * 10px), calc(8% + var(--my) * -6px), -30px) rotate(calc(7deg + var(--mx) * 2deg)) scale(0.88);
  z-index: 2;
  opacity: 0.9;
}

.specimen-center {
  transform: translate3d(calc(var(--mx) * 8px), calc(-2% + var(--my) * 8px), 20px) rotateX(calc(var(--my) * -4deg)) rotateY(calc(var(--mx) * 5deg));
  z-index: 3;
  border-color: var(--lime);
}

.specimen-stage:hover .specimen-left {
  transform: translate3d(calc(-36% + var(--mx) * -12px), calc(4% + var(--my) * -8px), -20px) rotate(calc(-9deg + var(--mx) * -2deg)) scale(0.91);
  opacity: 0.98;
}

.specimen-stage:hover .specimen-right {
  transform: translate3d(calc(36% + var(--mx) * 12px), calc(6% + var(--my) * -8px), -15px) rotate(calc(9deg + var(--mx) * 2deg)) scale(0.91);
  opacity: 0.98;
}

.specimen-stage:hover .specimen-center {
  transform: translate3d(calc(var(--mx) * 10px), calc(-6% + var(--my) * 10px), 40px) rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 6deg)) scale(1.03);
}

/* Sections */
.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 3rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Kling-style Flagship Pillars */
.pillars-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.pillar-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-tab {
  text-align: left;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  font: inherit;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.pillar-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.pillar-tab[aria-selected="true"] {
  background: var(--surface-raised);
  border-color: var(--lime);
  color: var(--text);
}

.pillar-tab strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pillar-tab span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pillar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.pillar-panel[hidden] {
  display: none;
}

.pillar-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pillar-panel p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.pillar-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.pillar-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.pillar-points svg {
  color: var(--lime);
  margin-top: 0.22rem;
  flex-shrink: 0;
}

.mcp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  color: var(--lime);
  overflow-x: auto;
}

.pillar-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.pillar-preview-row img {
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  padding: 0.55rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.pillar-preview-row img:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--lime);
}

/* How It Works (3-step sequence) */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.step-item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--border-strong);
}

.step-num {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 0.75rem;
}

.step-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sample Library */
.sample-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-select {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 2.2rem 0.6rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.carousel-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.carousel-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.carousel-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  text-align: center;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--lime);
  background: var(--lime);
  color: #111;
  transform: translateY(-1px);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.samples-carousel-wrap {
  position: relative;
}

.samples-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0.25rem;
  padding: 0.35rem 0.25rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.samples-grid::-webkit-scrollbar {
  display: none;
}

.sample-tile {
  flex: 0 0 clamp(260px, 28vw, 315px);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 220ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 280ms ease;
}

.sample-tile:hover {
  border-color: var(--lime);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease;
}

.carousel-dot[aria-current="true"] {
  width: 24px;
  background: var(--lime);
}

.sample-thumb {
  border: 0;
  padding: 0.85rem;
  background: #ffffff;
  cursor: pointer;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sample-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sample-tile:hover .sample-thumb img {
  transform: scale(1.025);
}

.sample-info {
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sample-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.03em;
}

.sample-info h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.sample-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.sample-actions button,
.sample-actions a {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.sample-actions button:hover,
.sample-actions a:hover {
  color: var(--lime);
}

/* Pricing (4 Tiers) */
.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.segmented {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  gap: 0.25rem;
}

.segmented button {
  background: transparent;
  color: var(--text-muted);
  border: 0;
  border-radius: 4px;
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.segmented button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--lime-ink);
}

.save-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--lime);
  margin-left: 0.35rem;
}

.segmented button[aria-pressed="true"] .save-tag {
  color: var(--lime-ink);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.tier-card.featured {
  background: var(--surface-raised);
  border-color: var(--lime);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.tier-name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tier-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 2.8em;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.tier-amount {
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tier-credits {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.25rem;
}

.tier-features {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tier-features svg {
  color: var(--lime);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: '+';
  color: var(--lime);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 66ch;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Modals (Lightbox & Early-Access) */
dialog {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: min(520px, calc(100% - 2rem));
  width: 100%;
  box-shadow: var(--shadow-soft);
}

dialog::backdrop {
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(6px);
}

.modal-body {
  padding: 1.75rem;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--text);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  caret-color: var(--lime);
}

.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--lime);
  font-weight: 600;
}

dialog.lightbox {
  max-width: min(860px, calc(100% - 2rem));
  max-height: 92vh;
  overflow-y: auto;
}

.lightbox-frame {
  padding: 1.75rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: #ffffff;
}

/* Overdrive Scroll Reveal & Pillar Transition */
@keyframes panelEnter {
  from { opacity: 0.2; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pillar-panel:not([hidden]) {
  animation: panelEnter 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-pre {
  opacity: 0.15;
  transform: translateY(18px);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .specimen, .sample-tile, .sample-thumb img, .pillar-preview-row img, .reveal {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .pillars-shell {
    grid-template-columns: 1fr;
  }
  .specimen-stage {
    min-height: 360px;
  }
  .samples-grid,
  .tiers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .steps-row,
  .samples-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
}
