/* ===== KARSA Landing — design-taste: dark tech, asymmetric, non-generic ===== */

:root {
  --lp-bg: #080a10;
  --lp-surface: #0f1219;
  --lp-surface-2: #151a24;
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-text: #eef1f7;
  --lp-muted: #8b94a8;
  --lp-accent: #7c5cff;
  --lp-accent-2: #22d3ee;
  --lp-grad: linear-gradient(135deg, #7c5cff 0%, #5b8def 45%, #22d3ee 100%);
  --lp-font: 'Inter', system-ui, sans-serif;
  --lp-display: 'Syne', var(--lp-font);
  --lp-mono: 'JetBrains Mono', monospace;
  --lp-radius: 16px;
  --lp-radius-sm: 10px;
  --lp-max: 1180px;
  --lp-nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.lp {
  font-family: var(--lp-font);
  background: var(--lp-bg);
  color: var(--lp-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.lp-wrap {
  width: min(var(--lp-max), calc(100% - 40px));
  margin-inline: auto;
}

/* ——— Nav ——— */
.lp-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--lp-nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.lp-nav.is-scrolled {
  background: rgba(8, 10, 16, 0.82);
  border-color: var(--lp-border);
  backdrop-filter: blur(14px);
}
.lp-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lp-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.lp-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--lp-grad);
  display: grid;
  place-items: center;
}
.lp-brand-mark svg { width: 16px; height: 16px; fill: white; }
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  color: var(--lp-muted);
}
.lp-nav-links a:hover { color: var(--lp-text); }
.lp-nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lp-btn:active { transform: scale(0.98); }
.lp-btn-ghost {
  background: transparent;
  border-color: var(--lp-border);
  color: var(--lp-text);
}
.lp-btn-ghost:hover { background: var(--lp-surface-2); }
.lp-btn-primary {
  background: var(--lp-text);
  color: var(--lp-bg);
}
.lp-btn-primary:hover { background: #fff; }
.lp-btn-accent {
  background: var(--lp-accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.4);
}
.lp-btn-accent:hover { filter: brightness(1.08); }

.lp-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  color: var(--lp-text);
}

/* ——— Hero split ——— */
.lp-hero {
  min-height: 100dvh;
  min-height: 100vh;
  padding-top: calc(var(--lp-nav-h) + 48px);
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.lp-hero-copy h1 {
  font-family: var(--lp-display);
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 11ch;
  margin-bottom: 20px;
}
.lp-hero-copy h1 em {
  font-style: normal;
  background: var(--lp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero-lead {
  color: var(--lp-muted);
  font-size: 1.0625rem;
  max-width: 42ch;
  margin-bottom: 28px;
  line-height: 1.65;
}
.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.lp-hero-meta {
  display: flex;
  gap: 24px;
  font-size: 0.8125rem;
  color: var(--lp-muted);
}
.lp-hero-meta strong {
  display: block;
  color: var(--lp-text);
  font-size: 1.125rem;
  font-family: var(--lp-display);
  font-weight: 600;
}

/* Showcase — layered product frame */
.lp-showcase {
  position: relative;
  perspective: 1200px;
}
.lp-showcase-glow {
  position: absolute;
  inset: 10% -10% -10% 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(124, 92, 255, 0.35), transparent 65%);
  pointer-events: none;
}
.lp-frame {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.lp-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-border);
  background: var(--lp-surface-2);
}
.lp-frame-dot { width: 8px; height: 8px; border-radius: 50%; background: #3a4155; }
.lp-frame-dot:nth-child(1) { background: #f43f5e; }
.lp-frame-dot:nth-child(2) { background: #f59e0b; }
.lp-frame-dot:nth-child(3) { background: #34d399; }
.lp-frame-url {
  margin-left: 12px;
  font-family: var(--lp-mono);
  font-size: 0.6875rem;
  color: var(--lp-muted);
}
.lp-frame-body {
  display: grid;
  grid-template-columns: 140px 1fr 1.1fr;
  min-height: 280px;
}
.lp-frame-side {
  border-right: 1px solid var(--lp-border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-frame-line {
  height: 8px;
  border-radius: 4px;
  background: var(--lp-surface-2);
}
.lp-frame-line.w80 { width: 80%; }
.lp-frame-line.w60 { width: 60%; }
.lp-frame-line.accent { background: rgba(124, 92, 255, 0.35); width: 70%; }
.lp-frame-editor {
  padding: 16px;
  border-right: 1px solid var(--lp-border);
  font-family: var(--lp-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  color: #7dd3fc;
}
.lp-frame-editor .kw { color: #c4b5fd; }
.lp-frame-editor .str { color: #86efac; }
.lp-frame-editor .cm { color: #64748b; }
.lp-frame-preview {
  padding: 16px;
  background: linear-gradient(160deg, #1a1030 0%, #0d1520 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-preview-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-preview-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.lp-preview-card p { font-size: 0.625rem; color: var(--lp-muted); }

/* ——— Marquee strip ——— */
.lp-strip {
  border-block: 1px solid var(--lp-border);
  padding: 20px 0;
  overflow: hidden;
}
.lp-marquee {
  display: flex;
  gap: 48px;
  animation: lpMarquee 28s linear infinite;
  width: max-content;
}
@keyframes lpMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.lp-marquee span {
  font-family: var(--lp-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-muted);
  white-space: nowrap;
}

/* ——— Sections ——— */
.lp-section {
  padding: 96px 0;
}
.lp-section-head {
  margin-bottom: 48px;
}
.lp-section-head h2 {
  font-family: var(--lp-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}
.lp-section-head p {
  margin-top: 14px;
  color: var(--lp-muted);
  max-width: 52ch;
  font-size: 1rem;
}

/* Bento — asymmetric */
.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.lp-bento-cell {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  padding: 28px;
  overflow: hidden;
  position: relative;
}
.lp-bento-cell.span-7 { grid-column: span 7; }
.lp-bento-cell.span-5 { grid-column: span 5; }
.lp-bento-cell.span-4 { grid-column: span 4; }
.lp-bento-cell.span-8 { grid-column: span 8; }
.lp-bento-cell.tint-violet {
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.12), var(--lp-surface));
}
.lp-bento-cell.tint-cyan {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.08), var(--lp-surface));
}
.lp-bento-cell h3 {
  font-family: var(--lp-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.lp-bento-cell p {
  color: var(--lp-muted);
  font-size: 0.9375rem;
  max-width: 40ch;
}
.lp-bento-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--lp-mono);
  font-size: 0.6875rem;
  color: var(--lp-accent-2);
  letter-spacing: 0.04em;
}

/* Steps — vertical stack, not zigzag */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
}
.lp-step {
  background: var(--lp-surface);
  padding: 32px 28px;
}
.lp-step-num {
  font-family: var(--lp-mono);
  font-size: 0.75rem;
  color: var(--lp-accent);
  margin-bottom: 16px;
}
.lp-step h3 {
  font-family: var(--lp-display);
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.lp-step p { color: var(--lp-muted); font-size: 0.9rem; }

/* Pricing */
.lp-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lp-price-card {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  padding: 36px 32px;
  background: var(--lp-surface);
}
.lp-price-card.featured {
  border-color: rgba(124, 92, 255, 0.45);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), var(--lp-surface));
}
.lp-price-card h3 {
  font-family: var(--lp-display);
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.lp-price-card .amount {
  font-family: var(--lp-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 16px 0 4px;
}
.lp-price-card .amount span { font-size: 1rem; color: var(--lp-muted); font-weight: 500; }
.lp-price-list {
  list-style: none;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--lp-muted);
}
.lp-price-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-accent);
  margin-right: 10px;
  vertical-align: middle;
}

/* Articles grid */
.lp-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-article-card {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  overflow: hidden;
  background: var(--lp-surface);
  transition: border-color 0.2s, transform 0.2s;
}
.lp-article-card:hover {
  border-color: rgba(124, 92, 255, 0.35);
  transform: translateY(-2px);
}
.lp-article-thumb {
  height: 140px;
  background: linear-gradient(135deg, #1e1635, #0f1a28);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.lp-article-thumb time {
  font-size: 0.75rem;
  color: var(--lp-muted);
  font-family: var(--lp-mono);
}
.lp-article-body { padding: 20px; }
.lp-article-body h3 {
  font-family: var(--lp-display);
  font-size: 1.0625rem;
  line-height: 1.35;
  margin-bottom: 8px;
}
.lp-article-body p {
  font-size: 0.875rem;
  color: var(--lp-muted);
  line-height: 1.55;
}
.lp-article-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lp-accent-2);
}

/* FAQ */
.lp-faq {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-faq-item {
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  overflow: hidden;
}
.lp-faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--lp-text);
  cursor: pointer;
}
.lp-faq-q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--lp-muted);
  transition: transform 0.2s;
}
.lp-faq-item.is-open .lp-faq-q::after { transform: rotate(45deg); }
.lp-faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--lp-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.lp-faq-item.is-open .lp-faq-a { display: block; }

/* CTA band */
.lp-cta-band {
  margin: 0 20px 80px;
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.25);
}
.lp-cta-band h2 {
  font-family: var(--lp-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}
.lp-cta-band p { color: var(--lp-muted); margin-bottom: 24px; }

/* Footer */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  padding: 40px 0 48px;
}
.lp-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.lp-footer small { color: var(--lp-muted); font-size: 0.8125rem; }
.lp-footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.8125rem;
  color: var(--lp-muted);
}
.lp-footer-links a:hover { color: var(--lp-text); }

/* Article pages */
.lp-article-page { padding-top: calc(var(--lp-nav-h) + 48px); padding-bottom: 80px; }
.lp-article-page h1 {
  font-family: var(--lp-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 16px;
}
.lp-article-meta {
  color: var(--lp-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
  font-family: var(--lp-mono);
}
.lp-prose {
  max-width: 68ch;
  color: #c5cad6;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.lp-prose h2 {
  font-family: var(--lp-display);
  font-size: 1.375rem;
  color: var(--lp-text);
  margin: 40px 0 12px;
}
.lp-prose p { margin-bottom: 1.25em; }
.lp-prose ul { margin: 0 0 1.25em 1.25em; }
.lp-prose li { margin-bottom: 0.5em; }
.lp-prose a { color: var(--lp-accent-2); text-decoration: underline; }

/* Mobile */
@media (max-width: 900px) {
  .lp-nav-links { display: none; }
  .lp-menu-btn { display: grid; place-items: center; }
  .lp-nav.is-open .lp-nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--lp-nav-h) 0 auto;
    background: var(--lp-bg);
    border-bottom: 1px solid var(--lp-border);
    padding: 20px;
    gap: 16px;
  }
  .lp-hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--lp-nav-h) + 32px);
    min-height: auto;
  }
  .lp-hero-copy h1 { max-width: none; }
  .lp-frame { transform: none; }
  .lp-frame-body { grid-template-columns: 1fr; min-height: auto; }
  .lp-frame-side, .lp-frame-editor { display: none; }
  .lp-bento-cell { grid-column: span 12 !important; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-pricing { grid-template-columns: 1fr; }
  .lp-articles { grid-template-columns: 1fr; }
}
