/*
Shieldra - Preview Landing Page
Author : Themiverse  |  Support: techsupport@themiverse.com
-----------------------------------------------------------------
01. Variables & Base      06. Inner Pages
02. Buttons & Badges      07. Dark / Light & RTL
03. Header                08. Responsive Phones
04. Hero                  09. Features & Editions
05. Tech strip & Demos    10. CTA, Footer & Animations
-----------------------------------------------------------------*/

/* ===== 01. Variables & Base ===== */
:root {
  --lp-primary: #00d4ff;
  --lp-primary-rgb: 0, 212, 255;
  --lp-secondary: #7b5cff;
  --lp-accent: #22e39a;
  --lp-bg: #070d1f;
  --lp-bg-alt: #0b1329;
  --lp-surface: #0f1a36;
  --lp-border: rgba(255, 255, 255, .08);
  --lp-text: #aab3c8;
  --lp-heading: #ffffff;
  --lp-gradient: linear-gradient(135deg, #00d4ff 0%, #7b5cff 100%);
  --lp-radius: 16px;
  --lp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lp-font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;
  --lp-header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--lp-header-h); }

body {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--lp-heading); font-family: var(--lp-font-heading); font-weight: 700; line-height: 1.2; }
a { color: var(--lp-primary); text-decoration: none; transition: color .25s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 3px; }

.lp-gradient-text {
  background: var(--lp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-section { padding: 110px 0; position: relative; }
.lp-section-alt { background: var(--lp-bg-alt); }

.lp-title { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.lp-title h2, .lp-h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 18px 0 14px; }
.lp-title p, .lp-muted { margin: 0; font-size: 1.05rem; }

/* ===== 02. Buttons & Badges ===== */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}
.lp-btn .ci { font-size: 17px; }
.lp-btn-primary { background: var(--lp-gradient); color: #fff; box-shadow: 0 10px 30px rgba(var(--lp-primary-rgb), .25); }
.lp-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(var(--lp-primary-rgb), .4); }
.lp-btn-outline { border-color: rgba(255, 255, 255, .25); color: #fff; }
.lp-btn-outline:hover { border-color: var(--lp-primary); color: var(--lp-primary); transform: translateY(-2px); }
.lp-btn-sm { padding: 10px 20px; font-size: 14px; }

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(var(--lp-primary-rgb), .08);
  border: 1px solid rgba(var(--lp-primary-rgb), .25);
  color: var(--lp-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent); box-shadow: 0 0 10px var(--lp-accent); }

/* ===== 03. Header ===== */
.lp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--lp-header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s, box-shadow .3s;
}
.lp-header.scrolled { background: rgba(7, 13, 31, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--lp-border); }
.lp-logo img { display: block; height: 38px; width: auto; }

.lp-menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.lp-menu a { color: #d4daea; font-weight: 500; font-size: 15px; }
.lp-menu a:hover, .lp-menu a.active { color: var(--lp-primary); }

.lp-toggler {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  color: #fff;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* ===== 04. Hero ===== */
.lp-hero {
  position: relative;
  padding: calc(var(--lp-header-h) + 80px) 0 110px;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(123, 92, 255, .22), transparent 70%),
    radial-gradient(500px 400px at 10% 80%, rgba(var(--lp-primary-rgb), .12), transparent 70%),
    var(--lp-bg);
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.lp-hero .container { position: relative; }
.lp-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin: 22px 0 20px; }
.lp-lead { font-size: 1.12rem; max-width: 540px; margin-bottom: 34px; }
.lp-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

.lp-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; list-style: none; padding: 0; margin: 44px 0 0; }
.lp-stats li { display: flex; flex-direction: column; }
.lp-stats strong { font-family: var(--lp-font-heading); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.lp-stats span { font-size: 14px; }

.lp-hero-visual { position: relative; padding: 0 0 60px 40px; }

.lp-browser {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.lp-browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: #121d3f; }
.lp-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.lp-browser-bar i:nth-child(2) { background: #febc2e; }
.lp-browser-bar i:nth-child(3) { background: #28c840; }
.lp-browser img { display: block; width: 100%; }

.lp-browser-back { position: absolute; top: -30px; right: -40px; width: 78%; opacity: .55; transform: rotate(3deg); }
.lp-browser-front { position: relative; z-index: 1; }

.lp-phone {
  border-radius: 26px;
  padding: 7px;
  background: #1a2547;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.lp-phone img { display: block; width: 100%; border-radius: 20px; }
.lp-phone-hero { position: absolute; z-index: 2; left: 0; bottom: 0; width: 26%; }

/* ===== 05. Tech strip & Demos ===== */
.lp-tech { border-block: 1px solid var(--lp-border); background: var(--lp-bg-alt); padding: 22px 0; }
.lp-tech ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; list-style: none; margin: 0; padding: 0; }
.lp-tech li { display: flex; align-items: center; gap: 8px; color: #d4daea; font-weight: 600; font-size: 15px; }
.lp-tech .ci { color: var(--lp-primary); font-size: 20px; }

.lp-demo {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 14px;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.lp-demo:hover { transform: translateY(-6px); border-color: rgba(var(--lp-primary-rgb), .4); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.lp-demo-img { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 900 / 625; }
.lp-demo-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.lp-demo:hover .lp-demo-img img { transform: scale(1.03); }
.lp-demo-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--lp-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}
.lp-demo-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 8px 8px; }
.lp-demo-body h3 { font-size: 1.35rem; margin: 0; }

.lp-demo-links { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-demo-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(var(--lp-primary-rgb), .3);
  background: rgba(var(--lp-primary-rgb), .06);
  font-size: 14px;
  font-weight: 600;
}
.lp-demo-links a:hover { background: var(--lp-gradient); border-color: transparent; color: #fff; }

/* ===== 06. Inner Pages ===== */
.lp-controls { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 44px; }

.lp-switch { display: inline-flex; padding: 5px; border-radius: 50px; background: var(--lp-surface); border: 1px solid var(--lp-border); }
.lp-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border: 0;
  border-radius: 50px;
  background: transparent;
  color: #d4daea;
  font-weight: 600;
  transition: background-color .25s, color .25s;
}
.lp-switch button.active { background: var(--lp-gradient); color: #fff; }

.lp-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-filter button {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1px solid var(--lp-border);
  background: transparent;
  color: var(--lp-text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .25s, color .25s;
}
.lp-filter button:hover, .lp-filter button.active { border-color: var(--lp-primary); color: var(--lp-primary); }

.lp-pages > [hidden] { display: none; }
.lp-page {
  display: block;
  padding: 10px;
  border-radius: 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  transition: transform .3s, border-color .3s;
}
.lp-page:hover { transform: translateY(-5px); border-color: rgba(var(--lp-primary-rgb), .45); }
.lp-page-img { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 900 / 625; position: relative; }
.lp-page-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lp-page-img::after {
  content: "View Demo";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 13, 31, .7);
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transition: opacity .3s;
}
.lp-page:hover .lp-page-img::after { opacity: 1; }
.lp-page-name { display: block; padding: 14px 6px 6px; color: #fff; font-family: var(--lp-font-heading); font-weight: 600; text-align: center; }

/* ===== 07. Dark / Light & RTL ===== */
.lp-compare {
  --pos: 50%;
  position: relative;
  height: 100%;
  border-radius: var(--lp-radius);
  overflow: hidden;
  border: 1px solid var(--lp-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.lp-compare > img, .lp-compare-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.lp-compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.lp-compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  pointer-events: none;
}
.lp-compare-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--lp-gradient);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.lp-compare-line .ci { position: absolute; top: 50%; z-index: 1; color: #fff; font-size: 16px; transform: translateY(-50%); }
.lp-compare-line .ci:first-child { right: 6px; }
.lp-compare-line .ci:last-child { left: 6px; }
.lp-compare-label {
  position: absolute;
  bottom: 16px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(7, 13, 31, .8);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}
.lp-compare-label-start { left: 16px; }
.lp-compare-label-end { right: 16px; }
@media (min-width: 992px) { .lp-compare { min-height: 320px; } }
.lp-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.lp-compare:has(.lp-compare-range:focus-visible) { outline: 2px solid var(--lp-primary); outline-offset: 3px; }

.lp-rtl-card { height: 100%; padding: 22px; border-radius: var(--lp-radius); background: var(--lp-surface); border: 1px solid var(--lp-border); }
.lp-rtl-card .lp-browser { box-shadow: none; margin-bottom: 22px; }
.lp-rtl-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.lp-rtl-card p { margin-bottom: 20px; }

/* ===== 08. Responsive Phones ===== */
.lp-phones { display: flex; justify-content: center; align-items: center; gap: 24px; }
.lp-phones .lp-phone { width: 28%; max-width: 230px; }
.lp-phones .lp-phone-center { width: 32%; max-width: 260px; }

.lp-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.lp-checks li { display: flex; align-items: flex-start; gap: 10px; color: #d4daea; }
.lp-checks .ci { flex-shrink: 0; margin-top: 4px; color: var(--lp-accent); font-size: 18px; }

/* ===== 09. Features & Editions ===== */
.lp-feature {
  height: 100%;
  padding: 28px 24px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  transition: transform .3s, border-color .3s;
}
.lp-feature:hover { transform: translateY(-5px); border-color: rgba(var(--lp-primary-rgb), .4); }
.lp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-size: 24px;
  color: var(--lp-primary);
  background: rgba(var(--lp-primary-rgb), .1);
}
.lp-feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.lp-feature p { margin: 0; font-size: 15px; }

.lp-edition {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px;
  border-radius: 20px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
}
.lp-edition-featured { border-color: rgba(var(--lp-primary-rgb), .45); box-shadow: 0 0 0 1px rgba(var(--lp-primary-rgb), .15), 0 30px 60px rgba(0, 0, 0, .3); }
.lp-edition-head { display: flex; align-items: center; gap: 16px; }
.lp-edition-head h3 { font-size: 1.5rem; margin: 0 0 2px; }
.lp-edition-head p { margin: 0; font-size: 14px; }
.lp-edition-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--lp-gradient);
  color: #fff;
  font-size: 26px;
}
.lp-edition .lp-checks { margin-bottom: 32px; flex-grow: 1; align-content: start; }

/* ===== 10. CTA, Footer & Animations ===== */
.lp-cta { padding: 0 0 110px; background: var(--lp-bg-alt); }
.lp-cta-box {
  position: relative;
  padding: 70px 30px;
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(500px 300px at 15% 0%, rgba(var(--lp-primary-rgb), .25), transparent 70%),
    radial-gradient(500px 300px at 85% 100%, rgba(123, 92, 255, .3), transparent 70%),
    var(--lp-surface);
  border: 1px solid rgba(var(--lp-primary-rgb), .25);
}
.lp-cta-box img { margin-bottom: 22px; }
.lp-cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.lp-cta-box p { max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

.lp-footer { padding: 30px 0; border-top: 1px solid var(--lp-border); font-size: 14px; }
.lp-footer p { margin: 0; }
.lp-footer a { display: inline-flex; align-items: center; gap: 6px; }

.lp-to-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lp-gradient);
  color: #fff;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.lp-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Floating "Hire Us" button (stays visible; back-to-top sits above it) */
.lp-hire {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 91;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  background: #ff3b3f;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: 0 10px 30px rgba(255, 59, 63, .4);
  transition: transform .25s, box-shadow .25s, background-color .25s;
}
.lp-hire .ci { font-size: 19px; }
.lp-hire:hover { color: #fff; background: #ff2328; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 59, 63, .55); }
.lp-to-top:hover { color: #fff; }

/* Scroll reveal: hidden only when JavaScript is running */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.reveal-zoom { transform: scale(.94); }
.js .reveal.active { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
  .lp-menu { gap: 22px; }
}

@media (max-width: 991.98px) {
  .lp-toggler { display: inline-flex; }
  .lp-menu {
    position: absolute;
    top: var(--lp-header-h);
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border-radius: 14px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    display: none;
  }
  .lp-menu.open { display: flex; }
  .lp-menu a { display: block; padding: 12px 14px; border-radius: 8px; }
  .lp-menu a:hover { background: rgba(var(--lp-primary-rgb), .08); }
  .lp-header { background: rgba(7, 13, 31, .92); backdrop-filter: blur(12px); }
  .lp-section { padding: 80px 0; }
  .lp-hero { padding-bottom: 80px; }
  .lp-hero-visual { padding: 30px 0 50px 30px; }
  .lp-compare { aspect-ratio: 900 / 625; height: auto; width: 100%; }
}

@media (max-width: 575.98px) {
  .lp-logo img { height: 32px; }
  .lp-header .lp-btn-sm { padding: 9px 14px; }
  .lp-hero-btns .lp-btn { flex: 1 1 100%; }
  .lp-stats { gap: 14px 26px; }
  .lp-stats strong { font-size: 1.6rem; }
  .lp-browser-back { display: none; }
  .lp-hero-visual { padding: 0 0 40px 20px; }
  .lp-phone-hero { width: 30%; }
  .lp-switch button { padding: 9px 18px; }
  .lp-pages { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  .lp-page { padding: 6px; border-radius: 10px; }
  .lp-page-name { padding: 10px 4px 4px; font-size: 14px; }
  .lp-phones { gap: 10px; }
  .lp-edition { padding: 26px 22px; }
  .lp-cta-box { padding: 50px 20px; }
  .lp-hire { right: 16px; bottom: 16px; padding: 11px 18px; font-size: 14px; }
  .lp-to-top { right: 16px; bottom: 74px; width: 42px; height: 42px; }
}
