/* ============================================================
   SAM Landing & Help — Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:   #0f2340;
  --blue:   #0d6efd;
  --font:   'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font); color: #1a2744; overflow-x: hidden; margin: 0; }

/* ── Navbar ── */
.lp-nav {
  background: linear-gradient(135deg, #0f2340 0%, #1a3a6b 100%);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.lp-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  text-decoration: none;
}
.lp-brand i { font-size: 1.3rem; color: #4da3ff; }
.fw-600 { font-weight: 600; }

/* ── Hero ── */
.lp-hero {
  background: linear-gradient(160deg, #0a1628 0%, #0f2340 40%, #1a3a6b 100%);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.lp-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(13,110,253,.15) 0%, transparent 60%);
}
.lp-hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.lp-orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .18;
  animation: lp-float 6s ease-in-out infinite;
}
.lp-orb-1 { width: 350px; height: 350px; background: #4da3ff; top: -80px; left: -80px; }
.lp-orb-2 { width: 280px; height: 280px; background: #7c3aed; bottom: -60px; right: 10%; animation-delay: -2s; }
.lp-orb-3 { width: 200px; height: 200px; background: #0d6efd; top: 40%; right: -40px; animation-delay: -4s; }

@keyframes lp-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.04); }
}

.lp-badge {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #93c5fd; border-radius: 50px;
  padding: .35rem 1rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.lp-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -.5px;
  animation: lp-fadein .6s ease both;
}
.lp-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,.7);
  line-height: 1.7; animation: lp-fadein .6s .15s ease both;
}

@keyframes lp-fadein {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}

.lp-btn-primary {
  background: linear-gradient(135deg, #0d6efd, #0550c0);
  color: #fff; border: none; border-radius: 10px;
  padding: .75rem 1.75rem; font-weight: 600; font-size: .95rem;
  box-shadow: 0 4px 18px rgba(13,110,253,.4);
  transition: all .2s; text-decoration: none;
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,110,253,.5); color:#fff; }

.lp-btn-outline {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: .75rem 1.75rem;
  font-weight: 600; font-size: .95rem;
  backdrop-filter: blur(6px);
  transition: all .2s; text-decoration: none;
}
.lp-btn-outline:hover { background: rgba(255,255,255,.15); color:#fff; transform: translateY(-2px); }

/* ── Stats ── */
.lp-stats {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 0;
}
.lp-stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid #e9ecef;
}
.lp-stat-item:last-child { border-right: none; }
.lp-stat-value {
  font-size: 2.8rem; font-weight: 800;
  color: var(--blue); line-height: 1;
}
.lp-stat-label { font-size: .85rem; color: #6b7280; margin-top: .4rem; }

/* ── Sections ── */
.lp-section { padding: 90px 0; background: #f8fafc; }
.lp-section-alt { background: #fff; }
.lp-section-title { font-size: 2rem; font-weight: 800; letter-spacing: -.3px; }
.lp-section-sub { color: #6b7280; font-size: 1.05rem; margin-top: .5rem; }

/* ── Feature cards ── */
.lp-feature-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .22s, box-shadow .22s;
  height: 100%;
}
.lp-feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.lp-feature-card h5 { font-weight: 700; margin: 1rem 0 .5rem; }
.lp-feature-card p { color: #6b7280; font-size: .9rem; line-height: 1.6; margin: 0; }

.lp-feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}

/* Scroll animation */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Workflow ── */
.lp-workflow {
  display: flex; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.lp-workflow-step {
  flex: 1; min-width: 160px; max-width: 200px;
  text-align: center; position: relative;
}
.lp-step-num {
  width: 28px; height: 28px;
  background: var(--blue); color: #fff;
  border-radius: 50%; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
}
.lp-step-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
  border-radius: 16px; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem; color: var(--blue);
}
.lp-workflow-step h6 { font-weight: 700; margin-bottom: .4rem; }
.lp-workflow-step p { font-size: .82rem; color: #6b7280; margin: 0; }
.lp-workflow-arrow { font-size: 1.5rem; color: #d1d5db; margin-top: 2.5rem; align-self: flex-start; }

/* ── Role cards ── */
.lp-role-card {
  background: #fff; border-radius: 14px; padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); height: 100%;
}
.lp-role-badge {
  display: inline-flex; align-items: center;
  padding: .3em .8em; border-radius: 8px;
  font-size: .8rem; font-weight: 700;
  margin-bottom: 1rem;
}
.lp-role-card ul { padding-left: 1.2rem; margin: 0; }
.lp-role-card ul li { font-size: .875rem; color: #374151; margin-bottom: .3rem; }

/* ── CTA ── */
.lp-cta {
  background: linear-gradient(135deg, #0f2340, #1a3a6b);
  padding: 80px 0;
}

/* ── Footer ── */
.lp-footer {
  background: #0f2340; padding: 1.5rem 0;
  color: rgba(255,255,255,.5);
}
.lp-footer .lp-brand { color: rgba(255,255,255,.7); }

/* ============================================================
   Help Page
   ============================================================ */
.lp-help-hero {
  background: linear-gradient(160deg, #0a1628 0%, #0f2340 40%, #1a3a6b 100%);
  padding: 80px 0 60px; color: #fff;
}
.lp-help-hero .lp-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lp-help-hero .lp-subtitle { font-size: 1rem; }

.lp-search-wrap .input-group { box-shadow: 0 4px 20px rgba(0,0,0,.2); border-radius: 12px; overflow: hidden; }
.lp-search-wrap .form-control { border: none; font-size: 1rem; }
.lp-search-wrap .input-group-text { border: none; background: #fff; }

/* TOC */
.lp-toc { background: #f8fafc; border-radius: 12px; padding: 1.25rem; border: 1px solid #e9ecef; }
.lp-toc-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin-bottom: .75rem; }
.lp-toc-nav { gap: 0; }
.lp-toc-link {
  color: #6b7280; font-size: .85rem; padding: .35rem .5rem;
  border-radius: 6px; text-decoration: none;
  transition: all .15s; border-left: 2px solid transparent;
}
.lp-toc-link:hover { color: var(--blue); background: #eff6ff; }
.lp-toc-link.active { color: var(--blue); font-weight: 600; border-left-color: var(--blue); background: #eff6ff; }

/* Help content */
.lp-help-section {
  margin-bottom: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid #e9ecef;
}
.lp-help-section:last-child { border-bottom: none; }
.lp-help-section h2 {
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 1rem; padding-top: .5rem;
}
.lp-help-section h5 { font-weight: 700; color: #1a2744; margin-top: 1.5rem; }
.lp-help-section p { color: #374151; line-height: 1.7; }

.lp-steps {
  padding-left: 1.4rem; margin: .75rem 0;
}
.lp-steps li { color: #374151; margin-bottom: .4rem; line-height: 1.6; }

.lp-list { padding-left: 1.4rem; }
.lp-list li { color: #374151; margin-bottom: .4rem; line-height: 1.6; }

.lp-callout {
  border-radius: 10px; padding: .85rem 1rem;
  font-size: .9rem; margin: 1rem 0;
  display: flex; align-items: flex-start; gap: .5rem;
}
.lp-callout-info    { background: #e0f2fe; color: #0c4a6e; border-left: 4px solid #0ea5e9; }
.lp-callout-warning { background: #fff8e1; color: #92400e; border-left: 4px solid #f59e0b; }
.lp-callout-success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }

.lp-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.lp-table th {
  background: #f8fafc; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: #6b7280;
  border-bottom: 2px solid #e9ecef; padding: .6rem .9rem; text-align: left;
}
.lp-table td { padding: .65rem .9rem; border-bottom: 1px solid #f3f4f6; color: #374151; }
.lp-table tr:last-child td { border-bottom: none; }
.lp-table tr:hover td { background: #f9fafb; }

.lp-code {
  background: #1e293b; color: #e2e8f0;
  border-radius: 8px; padding: .75rem 1rem;
  font-family: 'Fira Code', monospace; font-size: .85rem;
  overflow-x: auto; margin: .5rem 0;
}

.lp-status-flow {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap; margin: 1rem 0;
}
.lp-status-node {
  padding: .4em .9em; border-radius: 20px;
  font-size: .8rem; font-weight: 600;
}
.lp-status-chip {
  display: inline-flex; align-items: center;
  padding: .25em .65em; border-radius: 6px;
  font-size: .75rem; font-weight: 600;
}
.lp-role-chip {
  display: inline-flex; padding: .25em .65em;
  border-radius: 6px; font-size: .8rem; font-weight: 700;
}

/* Accordion */
.lp-accordion .accordion-item { border: 1px solid #e9ecef; border-radius: 10px !important; margin-bottom: .5rem; overflow: hidden; }
.lp-accordion .accordion-button { font-weight: 600; font-size: .9rem; background: #f8fafc; }
.lp-accordion .accordion-button:not(.collapsed) { background: #eff6ff; color: var(--blue); box-shadow: none; }
