/* ============================================================
   Nova v37 — Public (logged-out) pages
   Services / FAQ / Terms / API / Blog
   Mirrors login.twig palette, nav, hero, glass card, footer 1:1
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ====== Tokens (copied 1:1 from login.twig) ====== */
.lp-scope {
  --primary: #6366f1;
  --primary2: #8b5cf6;
  --accent: #06b6d4;
  --dark: #0a0b1a;
  --dark2: #0f1128;
  --dark3: #161830;
  --glass: rgba(15, 17, 40, 0.75);
  --glass-border: rgba(99, 179, 237, 0.18);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ====== Reset + base scoped to public pages ====== */
.lp-scope, .lp-scope *, .lp-scope *::before, .lp-scope *::after {
  box-sizing: border-box;
}
html.home-html { scroll-behavior: smooth; }
body.home-body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  background: var(--dark, #0a0b1a) !important;
  color: #e2e8f0 !important;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 0 !important;
}
.lp-scope {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.25), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6,182,212,.15), transparent),
    var(--dark);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.lp-scope a { text-decoration: none; }

/* Scrollbar — same as login */
.lp-scope ::-webkit-scrollbar { width: 6px; }
.lp-scope ::-webkit-scrollbar-track { background: var(--dark2); }
.lp-scope ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ====== STICKY NAV — copied from login .lp-nav ====== */
.lp-scope .lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 0 24px; height: 64px; display: flex; align-items: center;
  background: rgba(10, 11, 26, 0.85);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  transition: background .3s;
}
.lp-scope .lp-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px; margin: 0 auto; gap: 16px;
}
.lp-scope .lp-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.lp-scope .lp-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff;
  box-shadow: 0 0 14px rgba(99,102,241,.5);
}
.lp-scope .lp-logo-text {
  font-weight: 800; font-size: 1.05rem; color: #fff; white-space: nowrap;
}
.lp-scope .lp-nav-links { display: flex; align-items: center; gap: 4px; }
.lp-scope .lp-nav-links a {
  padding: 7px 14px; color: var(--text-muted);
  font-size: .85rem; font-weight: 500; border-radius: 8px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.lp-scope .lp-nav-links a:hover,
.lp-scope .lp-nav-links a.active {
  color: #fff; background: rgba(99,102,241,.18);
}
.lp-scope .lp-nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lp-scope .lp-btn {
  padding: 7px 18px; border: 1px solid rgba(99,102,241,.45);
  border-radius: 9px; color: #c4b5fd;
  font-size: .83rem; font-weight: 600;
  transition: background .2s, border-color .2s;
}
.lp-scope .lp-btn:hover {
  background: rgba(99,102,241,.18); border-color: var(--primary); color: #fff;
}
.lp-scope .lp-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: 0;
  box-shadow: 0 4px 18px rgba(99,102,241,.35);
}
.lp-scope .lp-btn-primary:hover { opacity: .92; transform: translateY(-1px); color: #fff; }

/* Hamburger */
.lp-scope .lp-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none; z-index: 1001;
}
.lp-scope .lp-hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: all .3s;
}
.lp-scope .lp-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(10,11,26,.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 24px 20px; z-index: 998;
  flex-direction: column; gap: 4px;
}
.lp-scope .lp-mobile-menu.open { display: flex; }
.lp-scope .lp-mobile-menu a {
  padding: 12px 16px; color: var(--text-muted);
  font-size: .9rem; font-weight: 500; border-radius: 10px;
  transition: background .2s, color .2s;
}
.lp-scope .lp-mobile-menu a:hover { background: rgba(99,102,241,.18); color: #fff; }

/* ====== Page hero (smaller than login full hero) ====== */
.lp-scope .lp-page-hero {
  position: relative;
  padding: 120px 24px 48px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.22), transparent);
}
.lp-scope .lp-page-hero::before,
.lp-scope .lp-page-hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.lp-scope .lp-page-hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(99,102,241,.30), transparent);
  top: -120px; left: -140px;
}
.lp-scope .lp-page-hero::after {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(6,182,212,.22), transparent);
  bottom: -120px; right: -100px;
}
.lp-scope .lp-page-hero > * { position: relative; z-index: 1; }

.lp-scope .lp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,.18); border: 1px solid rgba(99,102,241,.35);
  border-radius: 99px; padding: 5px 14px;
  font-size: .78rem; font-weight: 700; color: #a5b4fc;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 18px;
}
.lp-scope .lp-page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -.5px;
  color: #fff; margin: 0 0 14px;
}
.lp-scope .lp-page-title span {
  background: linear-gradient(135deg, #a5b4fc, #06b6d4, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-scope .lp-page-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 640px; margin: 0 auto; line-height: 1.65;
}

/* ====== Page content container ====== */
.lp-scope .lp-page-content {
  max-width: 1200px; margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative; z-index: 1;
}

/* ====== Glass card (matches login .hero-card) ====== */
.lp-scope .lp-glass {
  background: var(--glass);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ====== Services grid ====== */
.lp-scope .lp-search-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
}
.lp-scope .lp-search {
  flex: 1; min-width: 240px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px; padding: 11px 14px; color: #fff;
  font-size: .9rem; outline: none; transition: border .2s, box-shadow .2s;
}
.lp-scope .lp-search::placeholder { color: rgba(255,255,255,.32); }
.lp-scope .lp-search:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.22);
}
.lp-scope .lp-cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.lp-scope .lp-pill {
  padding: 6px 14px; border-radius: 99px; font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  color: var(--text-muted); cursor: pointer; transition: .2s;
}
.lp-scope .lp-pill:hover, .lp-scope .lp-pill.active {
  background: rgba(99,102,241,.22); border-color: rgba(99,102,241,.5); color: #fff;
}

.lp-scope .lp-services-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.lp-scope .lp-svc-card {
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 18px;
  padding: 18px; transition: border-color .3s, transform .25s, box-shadow .3s;
  display: flex; flex-direction: column; gap: 10px;
}
.lp-scope .lp-svc-card:hover {
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 8px 32px rgba(99,102,241,.20);
  transform: translateY(-3px);
}
.lp-scope .lp-svc-name {
  font-size: .92rem; font-weight: 700; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-scope .lp-svc-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .76rem; color: var(--text-muted); }
.lp-scope .lp-svc-rate {
  font-family: 'JetBrains Mono', ui-monospace, monospace; color: #6ee7b7; font-weight: 700;
}
.lp-scope .lp-svc-cta {
  margin-top: auto; padding: 9px 14px; border-radius: 10px; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important; font-weight: 700; font-size: .82rem;
}

/* ====== FAQ accordion ====== */
.lp-scope .lp-faq-list { display: flex; flex-direction: column; gap: 10px; }
.lp-scope .lp-faq-item {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 14px; overflow: hidden; transition: border-color .25s;
}
.lp-scope .lp-faq-item:hover { border-color: rgba(99,102,241,.4); }
.lp-scope .lp-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; cursor: pointer;
  color: #fff; font-weight: 600; font-size: .92rem;
}
.lp-scope .lp-faq-q i { transition: transform .25s; color: var(--accent); }
.lp-scope .lp-faq-item.open .lp-faq-q i { transform: rotate(180deg); }
.lp-scope .lp-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .25s;
  padding: 0 18px; color: var(--text-muted); font-size: .87rem; line-height: 1.65;
}
.lp-scope .lp-faq-item.open .lp-faq-a { max-height: 400px; padding: 0 18px 16px; }

/* ====== Terms tabs (segmented control) ====== */
.lp-scope .lp-tabs {
  display: inline-flex; padding: 4px; background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.lp-scope .lp-tab {
  padding: 8px 18px; border-radius: 9px; cursor: pointer;
  color: var(--text-muted); font-size: .82rem; font-weight: 600;
  transition: .2s; background: transparent; border: 0;
}
.lp-scope .lp-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.lp-scope .lp-tab-pane { display: none; }
.lp-scope .lp-tab-pane.active { display: block; }
.lp-scope .lp-prose { color: var(--text-muted); font-size: .88rem; line-height: 1.75; }
.lp-scope .lp-prose h2, .lp-scope .lp-prose h3 { color: #fff; margin: 22px 0 10px; }
.lp-scope .lp-prose p { margin-bottom: 12px; }
.lp-scope .lp-prose strong { color: #c4b5fd; margin-right: 4px; }

/* ====== API page ====== */
.lp-scope .lp-api-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.lp-scope .lp-api-table td, .lp-scope .lp-api-table th {
  padding: 11px 14px; border-bottom: 1px solid var(--glass-border);
  color: var(--text-muted); text-align: left; vertical-align: top;
}
.lp-scope .lp-api-table th { color: #fff; font-weight: 700; background: rgba(99,102,241,.10); }
.lp-scope .lp-api-table td:first-child { color: #fff; font-weight: 600; width: 32%; }
.lp-scope .lp-api-table code,
.lp-scope .lp-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(0,0,0,.35); border: 1px solid var(--glass-border);
  border-radius: 8px; padding: 2px 8px; font-size: .8rem; color: #a5b4fc;
}
.lp-scope .lp-codeblock {
  background: rgba(0,0,0,.5); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 16px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .82rem; color: #c4b5fd; overflow-x: auto; line-height: 1.55; position: relative;
}
.lp-scope .lp-copy-btn {
  position: absolute; top: 10px; right: 10px;
  padding: 5px 10px; border-radius: 7px; cursor: pointer;
  background: rgba(99,102,241,.20); border: 1px solid rgba(99,102,241,.4);
  color: #c4b5fd; font-size: .72rem; font-weight: 600;
}
.lp-scope .lp-copy-btn:hover { background: rgba(99,102,241,.35); color: #fff; }

/* ====== Blog grid ====== */
.lp-scope .lp-blog-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.lp-scope .lp-blog-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 18px; overflow: hidden; transition: border-color .3s, transform .25s;
  display: flex; flex-direction: column;
}
.lp-scope .lp-blog-card:hover {
  border-color: rgba(99,102,241,.5); transform: translateY(-3px);
}
.lp-scope .lp-blog-img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  background: var(--dark2);
}
.lp-scope .lp-blog-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lp-scope .lp-blog-body h3 {
  font-size: 1rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.35;
}
.lp-scope .lp-blog-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: .82rem;
}
.lp-scope .lp-blog-more:hover { color: #fff; }

/* ====== Footer (copied from login .lp-footer) ====== */
.lp-scope .lp-footer {
  background: var(--dark);
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px 24px;
  position: relative; z-index: 1;
}
.lp-scope .lp-footer-inner { max-width: 1200px; margin: 0 auto; }
.lp-scope .lp-footer-bot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.lp-scope .lp-footer-bot p { font-size: .78rem; color: var(--text-muted); margin: 0; }
.lp-scope .lp-footer-links { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-scope .lp-footer-links a {
  padding: 6px 12px; border-radius: 8px; font-size: .78rem; color: var(--text-muted);
  transition: background .2s, color .2s;
}
.lp-scope .lp-footer-links a:hover { background: rgba(99,102,241,.18); color: #fff; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .lp-scope .lp-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .lp-scope .lp-nav-links { display: none; }
  .lp-scope .lp-nav-cta { display: none; }
  .lp-scope .lp-hamburger { display: flex; }
  .lp-scope .lp-page-hero { padding: 100px 20px 36px; }
  .lp-scope .lp-page-content { padding: 24px 20px 48px; }
  .lp-scope .lp-blog-grid { grid-template-columns: 1fr; }
  .lp-scope .lp-services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .lp-scope .lp-services-grid { grid-template-columns: 1fr; }
  .lp-scope .lp-footer-bot { flex-direction: column; align-items: flex-start; }
}

/* ====== Hide dashboard chrome on public pages ====== */
.home-body .app-header,
.home-body .app-sidebar,
.home-body .app-navbar,
.home-body .app-content > .container-fluid > .top-strip { display: none !important; }
