/* ══════════════════════════════════════════
   DFN HERO
══════════════════════════════════════════ */
.dfn-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px var(--s8) var(--s24);
  position: relative; overflow: hidden;
}
.dfn-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.dfn-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}
.dfn-orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
}
.dfn-orb--1 {
  width: 650px; height: 650px;
  background: rgba(0,229,255,0.07);
  top: -180px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite;
}
.dfn-orb--2 {
  width: 480px; height: 480px;
  background: rgba(139, 92, 246, 0.08);
  bottom: -80px; right: -60px;
  animation: orbFloat 12s ease-in-out infinite reverse;
}
.dfn-orb--3 {
  width: 350px; height: 350px;
  background: rgba(0,229,255,0.07);
  top: -80px; left: 10%;
  animation: orbFloat 8s ease-in-out infinite;
}
.dfn-orb--4 {
  width: 280px; height: 280px;
  background: rgba(139, 92, 246, 0.07);
  bottom: -40px; right: 10%;
  animation: orbFloat 11s ease-in-out infinite reverse;
}

.dfn-hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* Breadcrumb */
.dfn-breadcrumb {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 0.72rem; color: var(--text-muted);
  margin-bottom: var(--s6);
  animation: fadeUp 0.6s var(--ease) both;
}
.dfn-breadcrumb a { color: var(--brand-light); transition: color var(--t); }
.dfn-breadcrumb a:hover { color: #fff; }
.dfn-breadcrumb__current { color: var(--dfn-cyan); }

/* Badge */
.dfn-hero__badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 0.35rem 1rem; border-radius: var(--r-pill);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dfn-cyan); margin-bottom: var(--s8);
}
.dfn-live-dot {
  width: 6px; height: 6px; background: var(--lime); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.dfn-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 800; line-height: 0.92;
  letter-spacing: -0.04em; color: #fff; margin-bottom: var(--s6);
}
.dfn-gradient {
  background: linear-gradient(135deg, var(--dfn-cyan) 0%, var(--brand-light) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dfn-hero__sub {
  max-width: 560px; font-size: 0.96rem; line-height: 1.85;
  color: var(--text-muted); margin-bottom: var(--s10);
}
.dfn-hero__actions {
  display: flex; gap: var(--s4); flex-wrap: wrap;
  justify-content: center; margin-bottom: var(--s16);
}

/* Stats */
.dfn-hero__stats {
  display: flex; align-items: center; gap: var(--s8);
  flex-wrap: wrap; justify-content: center;
}
.dfn-stat { text-align: center; }
.dfn-stat__n {
  display: block; font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1;
}
.dfn-stat__l {
  display: block; font-size: 0.65rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: var(--s1);
}
.dfn-stat-div { display: block; width: 1px; height: 44px; background: var(--border); }

/* ══════════════════════════════════════════
   APP DEMO WINDOW
══════════════════════════════════════════ */
.dfn-demo { padding: var(--s24) var(--s8); }

.app-win {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 0 60px rgba(0,229,255,0.08);
}
.app-win__bar {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s5);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.app-win__lights { display: flex; gap: 6px; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl--r { background: #ff5f57; }
.tl--y { background: #ffbd2e; }
.tl--g { background: #28ca41; }
.app-win__title {
  font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.06em;
  margin-left: var(--s3);
}
.app-win__status {
  margin-left: auto; display: flex; align-items: center;
  gap: var(--s2); font-size: 0.65rem; color: #22d3a0;
}
.app-win__status-dot {
  width: 6px; height: 6px; background: #22d3a0; border-radius: 50%;
}
.app-win__body {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
}
.app-panel {
  padding: var(--s6); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--s4);
}
.app-panel:last-child { border-right: none; }
.app-panel--mid { border-right: 1px solid var(--border); }
.ap-label { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

/* Face boxes */
.ap-box {
  aspect-ratio: 1; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transform: translateZ(0); /* Fixes border/corner flickering in Safari/Chrome */
}
.ap-emoji { font-size: 2.8rem; position: relative; z-index: 1; }
.ap-box--src {
  background: linear-gradient(135deg, rgba(0,229,255,0.05), rgba(139,92,246,0.05));
  border: 1px dashed rgba(0,229,255,0.25);
}
.ap-box--cam {
  background: linear-gradient(135deg, rgba(139,92,246,0.05), rgba(0,229,255,0.04));
  border: 1px solid rgba(139,92,246,0.3);
}
.ap-box--out {
  background: linear-gradient(135deg, rgba(245,200,66,0.05), rgba(0,229,255,0.06));
  border: 1px solid rgba(245,200,66,0.25);
}
.ap-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--dfn-cyan), transparent);
  opacity: 0.65; z-index: 2;
  animation: scanLine 2.8s ease-in-out infinite;
  will-change: top, opacity; /* Offload animation to GPU to prevent layout recalculation flicker */
  transform: translateZ(0);
}
.ap-corner {
  position: absolute; width: 10px; height: 10px;
  border-color: var(--dfn-cyan); border-style: solid; opacity: 0.5;
}
.ap-corner--tl { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
.ap-corner--tr { top: 6px; right: 6px; border-width: 1.5px 1.5px 0 0; }
.ap-corner--bl { bottom: 6px; left: 6px; border-width: 0 0 1.5px 1.5px; }
.ap-corner--br { bottom: 6px; right: 6px; border-width: 0 1.5px 1.5px 0; }
.ap-4k {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: #f5c842; color: #000;
  font-size: 0.55rem; font-weight: 700;
  padding: 0.18rem 0.5rem; border-radius: 3px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* Metrics */
.ap-metrics { display: flex; flex-direction: column; gap: var(--s3); }
.ap-row {
  display: flex; justify-content: space-between;
  font-size: 0.68rem;  color: var(--text-muted);
}
.ap-val { color: var(--dfn-cyan); font-weight: 500; }
.ap-val--g { color: #22d3a0; }
.ap-val--gold { color: #f5c842; }
.ap-bar {
  height: 3px; background: rgba(255,255,255,0.04);
  border-radius: 2px; overflow: hidden;
}
.ap-fill {
  height: 100%; width: var(--w);
  background: linear-gradient(90deg, var(--brand), var(--dfn-cyan));
  border-radius: 2px;
}
.ap-fill--gold { background: linear-gradient(90deg, var(--dfn-cyan), #f5c842); }
.ap-fill--rainbow { background: linear-gradient(90deg, var(--brand), var(--dfn-cyan), #f5c842); }

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.dfn-features { padding: var(--s24) var(--s8); }

.dfn-feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
}
.dfn-feat {
  background: var(--bg-card); padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: background var(--t);
}
.dfn-feat:hover { background: var(--bg-card-2); }
.dfn-feat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--dfn-cyan), transparent);
  opacity: 0; transition: opacity var(--t);
}
.dfn-feat:hover::before { opacity: 1; }

.dfn-feat__icon {
  width: 48px; height: 48px;
  background: var(--ic); border: 1px solid var(--ib);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: var(--s6);
}
.dfn-feat h3 {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: #fff; margin-bottom: var(--s3);
}
.dfn-feat p { font-size: 0.78rem; line-height: 1.85; color: var(--text-muted); }

.dfn-tag {
  display: inline-block; margin-top: var(--s4);
  background: var(--brand-dim); border: 1px solid rgba(139,92,246,0.3);
  color: var(--brand-light); font-size: 0.62rem;
  padding: 0.2rem 0.6rem; border-radius: var(--r-sm);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.dfn-tag--gold {
  background: rgba(245,200,66,0.08); border-color: rgba(245,200,66,0.25); color: #f5c842;
}

/* ══════════════════════════════════════════
   COMPARE
══════════════════════════════════════════ */
.dfn-compare {
  padding: var(--s24) var(--s8);
  background: linear-gradient(180deg, transparent, rgba(0,229,255,0.015), transparent);
}
.table-wrap {
  overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border);
}
.cmp-table {
  width: 100%; border-collapse: collapse; min-width: 560px;
}
.cmp-table th {
  padding: 1.1rem 1.5rem;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  text-align: center; background: var(--bg-card);
  border-bottom: 1px solid var(--border); color: var(--text-muted);
}
.cmp-col-feat { text-align: left !important; color: var(--text) !important; }
.cmp-col-prem {
  background: rgba(0,229,255,0.04) !important; color: var(--dfn-cyan) !important;
  border-left: 1px solid rgba(0,229,255,0.15); border-right: 1px solid rgba(0,229,255,0.15);
}
.cmp-table td {
  padding: 0.95rem 1.5rem; font-size: 0.78rem;
  border-bottom: 1px solid var(--border); text-align: center; color: var(--text-muted);
}
.cmp-table td:first-child { text-align: left; color: var(--text); }
.td-p {
  background: rgba(0,229,255,0.025) !important; color: var(--text) !important;
  font-weight: 500;
  border-left: 1px solid rgba(0,229,255,0.1); border-right: 1px solid rgba(0,229,255,0.1);
}
.cmp-table tr:last-child td { border-bottom: none; }
.ck { color: var(--dfn-cyan); }
.cx { color: var(--text-faint); }

/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.dfn-pricing { padding: var(--s24) var(--s8); }

.dfn-price-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s8); max-width: 900px; margin: 0 auto;
  align-items: start;
}
.dfn-price-card {
  background: var(--bg-card); border: 1px solid rgba(0,229,255,0.25);
  border-radius: var(--r-2xl); padding: 3rem;
  position: relative; overflow: hidden;
  box-shadow: 0 0 80px rgba(0,229,255,0.07);
}
.dfn-price-card__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,229,255,0.07) 0%, transparent 70%);
}
.dfn-price-card__line {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--dfn-cyan), transparent);
}
.dfn-price-badge {
  display: inline-block; background: var(--dfn-cyan); color: #000;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.3rem 1rem; border-radius: var(--r-pill);
  margin-bottom: var(--s6);
}
.dfn-price-num {
  display: flex; align-items: flex-start; gap: 0.2rem;
  line-height: 1; margin-bottom: var(--s2);
}
.dfn-price-curr {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--text-muted); margin-top: 0.8rem;
}
.dfn-price-val {
  font-family: var(--font-display); font-size: 5.5rem; font-weight: 800;
  color: #fff; letter-spacing: -0.04em;
}
.dfn-price-note { font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--s8); }

.dfn-price-feats { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s10); }
.dfn-price-feats li {
  display: flex; align-items: flex-start; gap: var(--s3);
  font-size: 0.82rem; color: var(--text); line-height: 1.55;
}
.dfn-price-feats li::before {
  content: '✦'; color: var(--dfn-cyan); font-size: 0.55rem;
  flex-shrink: 0; margin-top: 0.3rem;
}

.dfn-buy-btn {
  padding: 1.1rem;
  font-size: 1rem; font-weight: 800;
  border-radius: var(--r-md);
}
.dfn-price-trust {
  margin-top: var(--s5); font-size: 0.68rem; color: var(--text-muted);
  text-align: center; line-height: 1.6;
}

/* Pricing side info */
.dfn-price-side {
  display: flex; flex-direction: column; gap: var(--s5);
  padding-top: var(--s4);
}
.dfn-side-item {
  display: flex; gap: var(--s4); align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s5);
  transition: border-color var(--t), transform var(--t);
}
.dfn-side-item:hover { border-color: var(--border-2); transform: translateX(4px); }
.dfn-side-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.dfn-side-item h4 {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 700;
  color: #fff; margin-bottom: var(--s1);
}
.dfn-side-item p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.dfn-faq { padding: var(--s24) var(--s8); }

.faq__list { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: none; }
.faq__question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem 1.8rem; background: var(--bg-card);
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
  color: var(--text); text-align: left; transition: background var(--t);
}
.faq__question:hover { background: var(--bg-card-2); }
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__icon {
  color: var(--dfn-cyan); font-size: 1.2rem; flex-shrink: 0;
  transition: transform var(--t); margin-left: var(--s4);
}
.faq__answer {
  background: var(--bg-2); padding: 1.2rem 1.8rem;
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.85;
}
.faq__answer[hidden] { display: none; }
.faq__answer p { margin: 0; }

/* ══════════════════════════════════════════
   CTA BOTTOM
══════════════════════════════════════════ */
.dfn-cta-bottom {
  padding: var(--s24) var(--s8);
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(0,229,255,0.02);
}
.dfn-cta-bg { position: absolute; inset: 0; pointer-events: none; }
.dfn-cta-content {
  text-align: center; position: relative; z-index: 1;
}
.dfn-cta-content h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; color: #fff; margin-bottom: var(--s4);
}
.dfn-cta-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: var(--s8); }
.dfn-cta-back {
  margin-top: var(--s6); font-size: 0.78rem;
}
.dfn-cta-back a { color: var(--text-muted); transition: color var(--t); }
.dfn-cta-back a:hover { color: var(--brand-light); }

/* ══════════════════════════════════════════
   DFN RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .dfn-price-wrap { grid-template-columns: 1fr; max-width: 520px; }
  .dfn-feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .app-win__body { grid-template-columns: 1fr; }
  .app-panel { border-right: none; border-bottom: 1px solid var(--border); }
  .app-panel:last-child { border-bottom: none; }
  .dfn-hero__title { font-size: 3.2rem; }
  .dfn-hero__actions { flex-direction: column; align-items: stretch; }
  .dfn-hero__stats { gap: var(--s5); }
  .dfn-stat-div { height: 30px; }
}
@media (max-width: 600px) {
  .dfn-feat-grid { grid-template-columns: 1fr; }
  .dfn-price-card { padding: 2rem; }
  .dfn-price-val { font-size: 4rem; }
}
