/* ===========================
   Laravel Sensero — Landing
   Pure CSS, RTL + Dark/Light
   =========================== */

/* ---------- Theme tokens ---------- */
:root {
  --bg: #080b11;
  --bg-soft: #0c111a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8eef6;
  --muted: #93a1b5;
  --faint: #64748b;

  --primary: #2bd4a8;       /* emerald-teal */
  --primary-strong: #14b88c;
  --primary-ink: #042018;
  --accent: #ff5d5d;        /* coral / laravel nod */

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --glow-1: rgba(43, 212, 168, 0.5);
  --glow-2: rgba(255, 93, 93, 0.32);

  --container: 1180px;
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #ffffff;
  --surface: rgba(13, 26, 45, 0.035);
  --surface-2: rgba(13, 26, 45, 0.05);
  --border: rgba(13, 26, 45, 0.1);
  --border-strong: rgba(13, 26, 45, 0.18);

  --text: #0e1726;
  --muted: #51607a;
  --faint: #8794a8;

  --primary: #0fae84;
  --primary-strong: #0c9a74;
  --primary-ink: #ffffff;
  --accent: #e5484d;

  --shadow: 0 24px 60px -28px rgba(13, 38, 76, 0.35);
  --glow-1: rgba(15, 174, 132, 0.28);
  --glow-2: rgba(229, 72, 77, 0.18);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Background decor ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.6;
}
.glow--1 { width: 540px; height: 540px; background: var(--glow-1); top: -160px; inset-inline-end: -120px; }
.glow--2 { width: 460px; height: 460px; background: var(--glow-2); bottom: -180px; inset-inline-start: -120px; opacity: 0.45; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 75%);
  opacity: 0.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 10px 30px -8px var(--glow-1);
}
.btn--primary:hover { background: var(--primary-strong); transform: translateY(-2px); box-shadow: 0 16px 38px -10px var(--glow-1); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn svg { transition: transform 0.2s ease; }
.btn--primary:hover svg { transform: translateX(-3px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 9px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 8px 20px -6px var(--glow-1);
}
.brand__text b { color: var(--primary); font-weight: 800; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); animation: pulse 2s infinite; }

.hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  margin: 22px 0 18px;
  font-weight: 900;
  line-height: 1.18;
}
.grad {
  background: linear-gradient(110deg, var(--primary), #4be3c0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--muted); font-size: 1.08rem; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { color: var(--primary); }

/* hero visual */
.hero__visual { position: relative; }
.mock {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mock__bar span:nth-child(1) { background: #ff5f57; }
.mock__bar span:nth-child(2) { background: #febc2e; }
.mock__bar span:nth-child(3) { background: #28c840; }
.mock__bar em { margin-inline-start: auto; font-style: normal; font-size: 0.74rem; color: var(--faint); }
.mock img { width: 100%; height: auto; }

#heroMock { transition: transform 0.25s ease; will-change: transform; }

.float-card {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.float-card__label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.float-card__value { font-size: 1.25rem; font-weight: 800; }
.float-card--cpu { inset-inline-start: -22px; top: 22%; }
.float-card--up { inset-inline-end: -16px; bottom: 16%; animation-delay: 1.4s; }
.spark { display: block; width: 56px; height: 4px; border-radius: 4px; margin-top: 4px; background: linear-gradient(90deg, var(--primary), transparent); }
.dot-live { position: absolute; top: 12px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); animation: pulse 1.8s infinite; }

/* ---------- Stats ---------- */
.stats { padding: 22px 0 10px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.stat__num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--primary); line-height: 1; }
.stat__plus { font-size: 1rem; color: var(--muted); font-weight: 700; margin-inline-start: 2px; }
.stat p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.f-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.f-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.f-card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.f-card:hover::after { opacity: 1; }
.f-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  margin-bottom: 16px;
}
.f-card h3 { font-size: 1.08rem; margin-bottom: 7px; }
.f-card p { color: var(--muted); font-size: 0.92rem; position: relative; z-index: 1; }

/* ---------- Showcase ---------- */
.showcase { display: flex; flex-direction: column; gap: 70px; }
.showcase__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.showcase__row--rev .showcase__media { order: 2; }
.showcase__media { align-self: stretch; }
.showcase__media img { width: 100%; height: auto; }
.showcase__text h3 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); margin: 10px 0 12px; }
.showcase__text p { color: var(--muted); margin-bottom: 16px; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; color: var(--text); font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; inset-inline-start: 5px; top: 8px;
  width: 7px; height: 4px;
  border-inline-start: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ---------- Install ---------- */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #0a0e16;
  overflow: hidden;
  box-shadow: var(--shadow);
}
[data-theme="light"] .terminal { background: #0c1018; }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; }
.terminal__bar span:nth-child(1) { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__bar em { margin-inline-start: auto; font-style: normal; font-size: 0.74rem; color: #64748b; }
.terminal__body {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 18px; direction: ltr; text-align: left;
}
.terminal__body code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 0.92rem; color: #d7e3f2; }
.terminal__body .prompt { color: var(--primary); margin-inline-end: 8px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05); color: #cbd5e1;
  font-family: var(--font); font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(255,255,255,0.12); }
.copy-btn.is-done { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }

.steps { display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps__n {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--primary); color: var(--primary-ink);
  font-weight: 800;
}
.steps h4 { font-size: 1.05rem; margin-bottom: 3px; }
.steps p { color: var(--muted); font-size: 0.94rem; }
code.inline {
  font-family: ui-monospace, monospace;
  background: var(--surface-2);
  padding: 2px 7px; border-radius: 6px; font-size: 0.85em; color: var(--primary);
  direction: ltr; display: inline-block;
}

/* ---------- Security ---------- */
.security { max-width: 880px; margin-inline: auto; text-align: center; }
.security .section__head { margin-bottom: 0; }
.security__cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px;
}
.mini-card {
  padding: 20px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  text-align: start;
}
.mini-card h4 { font-size: 0.98rem; margin-bottom: 6px; color: var(--primary); }
.mini-card p { color: var(--muted); font-size: 0.86rem; }

/* ---------- CTA card ---------- */
.cta-card {
  position: relative;
  text-align: center;
  max-width: 760px; margin-inline: auto;
  padding: 56px 32px;
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.cta-card__glow {
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at 50% -10%, var(--glow-1), transparent 60%);
  opacity: 0.7;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 10px 0 14px; }
.cta-card p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.cta-card__list { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 22px 0 28px; }
.cta-card__list li { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; font-size: 0.9rem; }
.cta-card__list svg { color: var(--primary); }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq__item.is-open { border-color: var(--border-strong); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--text);
  text-align: start;
}
.faq__q svg { flex-shrink: 0; color: var(--primary); transition: transform 0.3s ease; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq__a p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-soft); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer__brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 30ch; }
.footer__col h5 { font-size: 0.9rem; margin-bottom: 14px; color: var(--text); }
.footer__col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--primary); }
.footer__cta { display: flex; align-items: flex-start; justify-content: flex-end; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding-top: 24px; color: var(--faint); font-size: 0.84rem;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 35%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 0%, transparent); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Mobile nav panel ---------- */
.nav__panel {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  padding: 84px 22px 28px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 40;
  display: none;
}
.nav__panel a {
  display: block; padding: 14px 6px; font-size: 1.05rem; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.nav__panel.is-open { transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 560px; margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__cta { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .nav__panel { display: block; }

  .hero { padding: 36px 0 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }

  .showcase__row,
  .showcase__row--rev { grid-template-columns: 1fr; gap: 24px; }
  .showcase__row--rev .showcase__media { order: 0; }

  .install { grid-template-columns: 1fr; }
  .security__cards { grid-template-columns: 1fr 1fr; }
  .float-card--cpu { inset-inline-start: -8px; }
  .float-card--up { inset-inline-end: -6px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .security__cards { grid-template-columns: 1fr; }
  .hero__title { font-size: 2rem; }
  .float-card { padding: 9px 12px; }
  .float-card__value { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
