/* ── Landing page — Software Factory ──────────────────────────────────── */
/* Ref: feat-landing                                                        */
/* Tokens mirror main.css :root — standalone page, no base.html            */

:root {
  --lp-bg:        #0f0a1a;
  --lp-bg2:       #1a1225;
  --lp-bg3:       #251d33;
  --lp-border:    #352d45;
  --lp-text:      #e6edf3;
  --lp-text2:     #9e95b0;
  --lp-accent:    #f78166;
  --lp-accent2:   #ffa28b;
  --lp-purple:    #bc8cff;
  --lp-blue:      #7c8aff;
  --lp-green:     #3fb950;
  --lp-yellow:    #d29922;
  --lp-mono:      "JetBrains Mono","SF Mono","Fira Code",monospace;
  --lp-sans:      -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  white-space: nowrap;
  line-height: 1.4;
}
.lp-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.lp-btn-primary { background: var(--lp-accent); color: #fff; }
.lp-btn-ghost {
  background: transparent;
  color: var(--lp-text2);
  border: 1px solid var(--lp-border);
}
.lp-btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; border-radius: 8px; }
.lp-btn-xl { padding: 0.95rem 2.5rem; font-size: 1.05rem; border-radius: 8px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  border-bottom: 1px solid var(--lp-border);
  position: sticky;
  top: 0;
  background: rgba(15,10,26,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--lp-text);
  font-family: var(--lp-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lp-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--lp-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lp-lang-form select {
  background: var(--lp-bg2);
  border: 1px solid var(--lp-border);
  color: var(--lp-text2);
  padding: 0.35rem 0.625rem;
  border-radius: 5px;
  font-size: 0.78rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  padding: 5rem 4rem 4.5rem;
  max-width: 1360px;
  margin: 0 auto;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--lp-bg3);
  border: 1px solid var(--lp-border);
  border-radius: 99px;
  font-size: 0.72rem;
  font-family: var(--lp-mono);
  color: var(--lp-purple);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-green);
  flex-shrink: 0;
}

.lp-hero-title {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-family: var(--lp-mono);
  font-weight: 700;
  line-height: 1.12;
  color: var(--lp-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.lp-hero-title em {
  color: var(--lp-accent);
  font-style: normal;
}

.lp-hero-sub {
  font-size: 1.05rem;
  color: var(--lp-text2);
  margin-bottom: 2.25rem;
  max-width: 500px;
  line-height: 1.75;
}

.lp-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.lp-hero-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  position: relative;
}

.lp-hero-visual svg { display: block; width: 100%; height: auto; }

/* ── Stats ───────────────────────────────────────────────────────────── */
.lp-stats {
  display: flex;
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
  background: var(--lp-bg2);
}

.lp-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1rem;
  border-inline-end: 1px solid var(--lp-border);
  min-width: 0;
}
.lp-stat:last-child { border-inline-end: none; }

.lp-stat-num {
  font-family: var(--lp-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lp-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.lp-stat-label {
  font-size: 0.72rem;
  color: var(--lp-text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ── Features ────────────────────────────────────────────────────────── */
.lp-section {
  padding: 5rem 4rem;
  max-width: 1360px;
  margin: 0 auto;
}

.lp-section-hd {
  text-align: center;
  margin-bottom: 3rem;
}

.lp-section-hd h2 {
  font-size: 1.9rem;
  font-family: var(--lp-mono);
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.lp-section-hd p {
  color: var(--lp-text2);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.lp-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lp-feat-card {
  background: var(--lp-bg2);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.lp-feat-card:hover {
  border-color: var(--lp-purple);
  transform: translateY(-2px);
}

.lp-feat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-bg3);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--lp-purple);
  flex-shrink: 0;
}

.lp-feat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-feat-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 0.5rem;
}

.lp-feat-card p {
  font-size: 0.875rem;
  color: var(--lp-text2);
  line-height: 1.65;
}

/* ── Screenshots ─────────────────────────────────────────────────────── */
.lp-screens-wrap {
  background: var(--lp-bg2);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}

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

.lp-screen-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.lp-screen-label {
  font-family: var(--lp-mono);
  font-size: 0.72rem;
  color: var(--lp-text2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.lp-screen-frame {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.lp-screen-frame svg { display: block; width: 100%; height: auto; }

/* ── Final CTA ───────────────────────────────────────────────────────── */
.lp-cta-wrap {
  text-align: center;
  padding: 6rem 2rem;
}

.lp-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.lp-cta-wrap h2 {
  font-size: 2.1rem;
  font-family: var(--lp-mono);
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.lp-cta-wrap p {
  color: var(--lp-text2);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.lp-footer {
  padding: 1.5rem 4rem;
  border-top: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lp-footer-copy { font-size: 0.8rem; color: var(--lp-text2); }

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

.lp-footer-links a {
  font-size: 0.8rem;
  color: var(--lp-text2);
  text-decoration: none;
}
.lp-footer-links a:hover { color: var(--lp-text); }

/* ── RTL ─────────────────────────────────────────────────────────────── */
[dir="rtl"] .lp-hero { direction: rtl; }
[dir="rtl"] .lp-hero-sub { margin-inline-start: 0; margin-inline-end: auto; }
[dir="rtl"] .lp-badge { flex-direction: row-reverse; }
[dir="rtl"] .lp-feat-card { text-align: right; }
[dir="rtl"] .lp-nav { flex-direction: row-reverse; }
[dir="rtl"] .lp-nav-right { flex-direction: row-reverse; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .lp-hero { padding: 4rem 2.5rem; gap: 2.5rem; }
  .lp-section { padding: 4rem 2.5rem; }
  .lp-screens-wrap .lp-section { padding: 4rem 2.5rem; }
}

@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 2.5rem;
  }
  .lp-hero-sub { max-width: 100%; }
  .lp-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-screens-grid { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; }
  .lp-stats { flex-wrap: wrap; }
  .lp-stat { flex: 0 0 33.33%; }
}

@media (max-width: 640px) {
  .lp-nav { padding: 0 1.25rem; }
  .lp-hero { padding: 2.5rem 1.5rem; }
  .lp-section { padding: 3rem 1.5rem; }
  .lp-feat-grid { grid-template-columns: 1fr; }
  .lp-stat { flex: 0 0 50%; }
  .lp-footer { padding: 1.25rem 1.5rem; flex-direction: column; text-align: center; }
  .lp-hero-title { font-size: 1.75rem; }
}
