/* Magbenta AI - landing page (home). Loads after theme.css. No inline styles (strict CSP). */

.l-nav-links a.l-cta { background: var(--primary); color: #fff; }
.l-nav-links a.l-cta:hover { background: var(--primary-hover); }

/* ---------- Hero ---------- */
.l-hero { position: relative; padding: 80px 0 40px; overflow: hidden; }
.l-hero::before {
  content: ""; position: absolute; left: 50%; top: -200px; transform: translateX(-50%);
  width: 1300px; height: 900px; max-width: 200vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .38), rgba(34, 211, 238, .12) 55%, transparent 75%);
}
.l-hero > .container { position: relative; }
.l-hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.l-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); color: #fcd34d;
  font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}
.l-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--beta); box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.l-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: .4em; }
.l-hero .l-sub { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: #cbd5e1; max-width: 560px; margin-bottom: 1.6em; }
.l-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.l-fine { color: var(--muted); font-size: .9rem; margin: 0; }
.l-fine strong { color: var(--text); }

.l-visual { position: relative; padding-bottom: 40px; }
.l-visual .l-back { width: 92%; border-radius: 14px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); opacity: .9; display: block; }
.l-visual .l-front {
  position: absolute; right: 0; bottom: 0; width: 56%; border-radius: 14px; display: block;
  border: 1px solid rgba(34, 211, 238, .45); box-shadow: 0 25px 60px rgba(2, 6, 23, .75), 0 0 50px rgba(34, 211, 238, .18);
}
.l-tag {
  position: absolute; left: -6px; bottom: 54px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 10px 14px; font-size: .85rem; box-shadow: var(--shadow); max-width: 230px;
}
.l-tag b { color: var(--accent); display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

.l-works { margin-top: 44px; text-align: center; color: var(--muted); font-size: .92rem; }
.l-works ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.l-works li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(15, 23, 42, .6); color: var(--text); font-weight: 600; font-size: .9rem; }

/* ---------- Sections ---------- */
.l-section { padding: 84px 0; }
.l-section.l-alt { background: linear-gradient(180deg, rgba(15, 23, 42, .55), rgba(15, 23, 42, .2)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.l-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.l-kicker { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.l-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; }
.l-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.l-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.l-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.l-card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.l-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.l-ico {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, .16); color: var(--accent); margin-bottom: 14px;
}
.l-ico svg { width: 22px; height: 22px; }
.l-pain .l-ico { background: rgba(225, 29, 72, .14); color: #fb7185; }

/* Steps */
.l-steps { counter-reset: step; }
.l-step { position: relative; padding-top: 58px; }
.l-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}

/* Feature rows */
.l-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.l-row:last-child { margin-bottom: 0; }
.l-row.l-flip .l-copy { order: 2; }
.l-row h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; }
.l-row .l-copy > p { color: #cbd5e1; font-size: 1.05rem; }
.l-list { list-style: none; padding: 0; margin: 18px 0 0; }
.l-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text); }
.l-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(16, 185, 129, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.l-shot { position: relative; }
.l-shot img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--border-strong); box-shadow: 0 25px 60px rgba(2, 6, 23, .6); }
.l-shot.l-narrow { max-width: 420px; margin: 0 auto; }
.l-shot::before {
  content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .25), transparent 80%);
}
.l-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; background: rgba(34, 211, 238, .12); color: var(--accent); border: 1px solid rgba(34, 211, 238, .3); }
.l-pill.l-new { background: rgba(139, 92, 246, .15); color: #c4b5fd; border-color: rgba(139, 92, 246, .4); }

/* Mini feature grid */
.l-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l-mini .l-card { padding: 20px; }
.l-mini h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; margin-bottom: .45em; }
.l-mini h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.l-mini p { font-size: .93rem; }

/* Industries */
.l-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.l-chips li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }

/* Privacy */
.l-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Beta box */
.l-beta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.l-beta .l-card { padding: 30px; }
.l-beta .l-actions { margin-top: 22px; }
.l-price { margin-bottom: 18px; font-size: 3rem; font-weight: 800; color: var(--text-strong); line-height: 1; letter-spacing: -.03em; }
.l-price small { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.l-need { list-style: none; padding: 0; margin: 0; }
.l-need li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.l-need li:last-child { border-bottom: 0; }
.l-need b { color: var(--text-strong); display: block; }
.l-need span { color: var(--muted); font-size: .93rem; }
.l-need svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* FAQ */
.l-faq { max-width: 820px; margin: 0 auto; }
.l-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; }
.l-faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 600; color: var(--text-strong); position: relative;
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.l-faq details[open] summary::after { content: "\2212"; }
.l-faq details > div { padding: 0 22px 18px; color: #cbd5e1; }
.l-faq details > div p:last-child { margin-bottom: 0; }

/* Final CTA */
.l-final {
  text-align: center; padding: 64px 28px; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, .45), rgba(15, 23, 42, .9) 70%);
  border: 1px solid rgba(59, 130, 246, .35);
}
.l-final h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.02em; }
.l-final p { color: #cbd5e1; max-width: 600px; margin: 0 auto 1.6em; font-size: 1.08rem; }
.l-final .l-actions { justify-content: center; }

.l-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .l-hero-grid, .l-row, .l-beta { grid-template-columns: 1fr; gap: 36px; }
  .l-row.l-flip .l-copy { order: 0; }
  .l-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-row { margin-bottom: 72px; }
}
@media (max-width: 680px) {
  .l-hero { padding: 48px 0 24px; }
  .l-section { padding: 60px 0; }
  .l-grid-3, .l-grid-4, .l-mini, .l-split { grid-template-columns: 1fr; }
  .l-actions .btn { width: 100%; }
  .l-tag { display: none; }
  .l-visual .l-back { width: 100%; }
  .l-visual .l-front { width: 62%; right: -4px; }
  .l-nav-links a:not(.l-cta):not(.l-keep) { display: none; }
  .l-final { padding: 44px 18px; }
}

/* Glows must never cause sideways scrolling on phones. */
main { overflow-x: hidden; overflow-x: clip; }
