/* Helal Anbar — Premium showcase */
:root {
  --red: #e31e24;
  --red-2: #ff4d52;
  --red-glow: rgba(227, 30, 36, 0.45);
  --bg: #07070a;
  --bg-elev: #0e0e13;
  --card: rgba(255, 255, 255, 0.03);
  --card-solid: #12121a;
  --text: #f5f5f8;
  --muted: #8b8b9a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --success: #34d399;
  --warn: #fbbf24;
  --info: #60a5fa;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Vazirmatn", system-ui, -apple-system, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --max: 1180px;
}

*, *::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.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Ambient background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(227, 30, 36, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(255, 77, 82, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 60%, rgba(96, 165, 250, 0.06), transparent 45%),
    var(--bg);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  pointer-events: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #ff3b40 0%, #b01016 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 8px 24px var(--red-glow);
  font-size: 15px;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 50%);
}
.logo span { opacity: 0.55; font-weight: 500; font-size: 13px; margin-right: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, #ff3d42 0%, var(--red) 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 10px 30px var(--red-glow);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 14px 40px rgba(227, 30, 36, 0.55);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}
.btn-lg { padding: 14px 26px; font-size: 14.5px; }

/* Hero */
.hero {
  padding: 72px 0 48px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffc9cb;
  background: rgba(227, 30, 36, 0.1);
  border: 1px solid rgba(227, 30, 36, 0.28);
  margin-bottom: 22px;
}
.pill-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(227, 30, 36, 0.25);
  display: grid;
  place-items: center;
  font-size: 10px;
}
.pill-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 10px var(--red-2);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(105deg, #fff 0%, #fff 40%, #ff8a8e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  max-width: 34em;
  font-weight: 400;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.trust-item strong { color: var(--text); font-weight: 600; }
.trust-item .ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
}

/* Hero visual — mac window chrome */
.device {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  padding: 1px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.06);
}
.device-inner {
  border-radius: 17px;
  overflow: hidden;
  background: var(--card-solid);
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--line);
}
.device-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.device-bar .dot.r { background: #ff5f57; }
.device-bar .dot.y { background: #febc2e; }
.device-bar .dot.g { background: #28c840; }
.device-bar .title {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-left: -40px;
}
.device-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.device-glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--red-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}
.float-card {
  position: absolute;
  backdrop-filter: blur(16px);
  background: rgba(18, 18, 26, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}
.float-card.a { bottom: 18%; left: -8%; min-width: 150px; animation-delay: 0s; }
.float-card.b { top: 16%; right: -6%; min-width: 140px; animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-card .label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.float-card .val { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.float-card .val.up { color: var(--success); }
.float-card .val.hot { color: var(--red-2); }

/* Marquee stats */
.stats-bar {
  margin: 56px 0 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat-cell {
  padding: 22px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat-cell:last-child { border-left: 0; }
.stat-cell .n {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #fff, #b0b0be);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-cell .l { font-size: 12.5px; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
.sec-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.sec-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 12px;
}
.sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.sec-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Bento features */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.bento-card {
  grid-column: span 4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.bento-card:hover {
  border-color: rgba(227, 30, 36, 0.35);
  background: rgba(255,255,255,0.045);
  transform: translateY(-3px);
}
.bento-card.wide { grid-column: span 8; }
.bento-card.tall { grid-column: span 4; min-height: 280px; }
.bento-card .shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 100% 0%, rgba(227,30,36,0.12), transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-card:hover .shine { opacity: 1; }
.bento-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: linear-gradient(145deg, rgba(227,30,36,0.2), rgba(255,255,255,0.04));
  border: 1px solid rgba(227,30,36,0.25);
  box-shadow: 0 8px 20px rgba(227,30,36,0.12);
}
.bento-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.mini-ui {
  margin-top: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  padding: 14px;
  display: grid;
  gap: 8px;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.mini-row strong { color: var(--text); font-weight: 600; }
.bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 4px;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #ff7a7e);
}

/* Security split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.panel.locked {
  border-color: rgba(227, 30, 36, 0.28);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(227,30,36,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}
.panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel .sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 18px;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #c8c8d4;
}
.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2334d399'%3E%3Cpath d='M6.5 11.2 3.3 8l1-1 2.2 2.2L11.7 4l1 1z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.checklist.no li::before {
  background-color: rgba(227, 30, 36, 0.12);
  border-color: rgba(227, 30, 36, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff4d52'%3E%3Cpath d='M4.2 4.2l7.6 7.6M11.8 4.2l-7.6 7.6' stroke='%23ff4d52' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* Architecture */
.arch {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.arch-layer {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.arch-layer:hover {
  border-color: rgba(227,30,36,0.3);
  background: rgba(227,30,36,0.06);
}
.arch-layer strong { font-size: 14px; }
.arch-layer span { font-size: 12.5px; color: var(--muted); }
.arch-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.5;
}

/* Showcase mock */
.showcase-frame {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.showcase-frame img {
  border-radius: 14px;
  width: 100%;
}

/* CTA band */
.cta-band {
  border-radius: 24px;
  border: 1px solid rgba(227, 30, 36, 0.3);
  background:
    radial-gradient(600px 200px at 80% 50%, rgba(227,30,36,0.25), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a:hover { color: var(--text); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .split { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-left: 0; }
  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .bento-card,
  .bento-card.wide,
  .bento-card.tall { grid-column: span 12; }
  .float-card { display: none; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .cta-band { padding: 28px; }
}
