/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:          #080B0F;
  --bg-surface:  #0E1217;
  --bg-elevated: #141920;
  --accent:      #3B82F6;
  --accent-dim:  #3B82F620;
  --accent-warm: #FF4D2E;
  --text:        #F0F4F8;
  --text-mid:    #8A9BB0;
  --text-muted:  #3D5068;
  --border:      #1E2D3D;
  --green:       #10B981;
  --radius:      12px;
  --font-head:   'Manrope', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); }

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(8, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav__logo > span:last-child { line-height: 1; }

/* Lemnium mark — lemniscate (∞) with prominent blue halo. */
.lemnium-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: 'Inter', system-ui, sans-serif; /* glyph metrics more predictable in Inter */
  font-size: 30px;
  font-weight: 700;
  line-height: 0.85;
  background: linear-gradient(135deg, #60A5FA, #3B82F6, #6366F1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 6px rgba(147, 197, 253, 0.95))
    drop-shadow(0 0 14px rgba(96, 165, 250, 0.75))
    drop-shadow(0 0 22px rgba(59, 130, 246, 0.55));
  flex-shrink: 0;
  transform: translateY(-3px);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.lemnium-mark:hover {
  filter:
    drop-shadow(0 0 8px rgba(186, 230, 253, 1))
    drop-shadow(0 0 18px rgba(96, 165, 250, 0.9))
    drop-shadow(0 0 30px rgba(59, 130, 246, 0.7));
  transform: translateY(-4px);
}
.lemnium-mark--sm {
  width: 30px;
  height: 30px;
  font-size: 22px;
  transform: translateY(-2px);
  filter:
    drop-shadow(0 0 4px rgba(147, 197, 253, 0.9))
    drop-shadow(0 0 10px rgba(96, 165, 250, 0.6));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}
.nav__cta:hover { opacity: 0.9; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.active span:nth-child(2) {
  opacity: 0;
}
.nav__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh; /* small-viewport, iOS-safe; fallback below */
  display: flex;
  align-items: flex-start;
  overflow: clip;
  padding-top: 96px;
}
@supports not (min-height: 100svh) {
  .hero { min-height: auto; padding-bottom: 60px; }
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px var(--accent-dim);
}

.btn--ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-mid);
  color: var(--text);
}

.btn--full { width: 100%; justify-content: center; }

/* ===== CHAT MOCKUP ===== */
.chat-mock {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.chat-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.chat-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.chat-mock__title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.chat-mock__body {
  padding: 20px 16px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
  opacity: 0;
  transform: translateY(8px);
  animation: chatIn 0.4s ease forwards;
}

.chat-msg--user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg--bot {
  background: var(--bg-elevated);
  color: var(--text-mid);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.chat-msg--bot .check {
  color: var(--green);
  font-weight: 600;
}

@keyframes chatIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS SHARED ===== */
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 48px;
}

section { padding: 100px 0; }

/* ===== FEATURES (3 col) ===== */
.features { border-top: 1px solid var(--border); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-card__icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== BENEFITS (2x2) ===== */
.benefits {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.benefit h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 20px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

.step__line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 24px;
  flex-shrink: 0;
}

.how__note {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== COMPARE TABLE ===== */
.compare {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.compare__table {
  max-width: 800px;
  margin: 0 auto;
}

.compare__header,
.compare__row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
}

.compare__header {
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.compare__row {
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}

.compare__label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-mid);
}

.compare__col--them { color: var(--text-muted); }
.compare__col--us { color: var(--text); }

/* ===== PRICING ===== */
.pricing {
  border-top: 1px solid var(--border);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 32px;
}

.pricing__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.pricing__card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-dim);
}

.pricing__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing__card--featured .pricing__label {
  color: var(--accent);
}

.pricing__price {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing__price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-mid);
}

.pricing__period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing__list {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.pricing__list li {
  font-size: 15px;
  color: var(--text-mid);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.pricing__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

.pricing__note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing__note a {
  color: var(--accent);
}

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

/* ===== CTA ===== */
.cta {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.cta__sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 32px;
}

.cta__form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta__input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
}
.cta__input:focus {
  outline: none;
  border-color: var(--accent);
}
.cta__input::placeholder { color: var(--text-muted); }

.cta__fine {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .hero { min-height: auto; padding-top: 88px; padding-bottom: 40px; }
  .hero__inner > * { min-width: 0; }

  .nav__links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 20px; }
  .nav__burger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 24px 24px 40px;
    gap: 40px;
  }
  .hero__h1 { font-size: 32px; overflow-wrap: anywhere; }
  .hero__sub { font-size: 16px; }

  .features__grid { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; gap: 32px; }

  .how__steps { flex-direction: column; align-items: center; }
  .step__line { width: 2px; height: 32px; }
  .step { max-width: 100%; }

  .compare__header,
  .compare__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .compare__header { display: none; }
  .compare__label {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .compare__col--them::before { content: "Regular: "; font-weight: 600; color: var(--text-muted); }
  .compare__col--us::before { content: "Lemnium: "; font-weight: 600; color: var(--accent); }

  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}


/* ===== GENERATION FORM (extends original .cta) ===== */
.cta__form--wide {
  max-width: 640px;
  display: grid;
  gap: 16px;
  text-align: left;
}

.cta__field {
  display: grid;
  gap: 6px;
}

.cta__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.cta__label-hint {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
  font-weight: 400;
}

.cta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ----- Photo uploader (multi-file picker + previews) ----- */
.cta__photos {
  display: grid;
  gap: 12px;
}
.cta__photos-drop {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--border, rgba(255,255,255,0.18));
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.15s ease, background 0.15s ease;
  text-align: center;
}
.cta__photos-drop:hover {
  border-color: var(--accent, #5a7fc4);
  background: rgba(90,127,196,0.06);
}
.cta__photos-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cta__photos-cta {
  font-weight: 600;
  color: var(--text-mid, #c8d2e0);
}
.cta__photos-hint {
  font-size: 12px;
  color: var(--text-muted, #7d8794);
}
.cta__photos-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.cta__photo {
  position: relative;
  display: grid;
  gap: 4px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 8px;
  padding: 6px;
  overflow: hidden;
}
.cta__photo img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.cta__photo-meta {
  font-size: 10px;
  color: var(--text-muted, #7d8794);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cta__photo-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cta__photo-rm:hover { background: #c0392b; }
.cta__photos-err {
  font-size: 12px;
  color: #e57373;
}

.cta__textarea {
  min-height: 88px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.5;
}

.cta__counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -2px;
}

/* Status panel */
.cta__status {
  display: none;
  max-width: 640px;
  margin: 24px auto 0;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}
.cta__status.is-visible { display: block; }

.cta__status-stage {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.cta__status-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px 0;
}

.cta__status-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0;
}

.cta__status-bar {
  margin-top: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}
.cta__status-bar span {
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: cta-bar-slide 1.4s ease-in-out infinite;
}
@keyframes cta-bar-slide {
  0% { left: -30%; }
  100% { left: 100%; }
}

.cta__status-result {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  word-break: break-all;
}
.cta__status-result strong { color: var(--text); }
.cta__status-result a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}
.cta__status-detected {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 6px;
}

.cta__status-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.cta__status-error {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 14px;
}

/* Mobile tweaks for new fields */
@media (max-width: 600px) {
  .cta__row { grid-template-columns: 1fr; }
}
