/* ===========================================================
   AUZA — Landing page specific styles
   =========================================================== */

/* ---------- HERO ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(42,111,219,.05), transparent 55%),
    linear-gradient(to bottom, rgba(255,255,255,0) 55%, var(--bg) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
}
.hero-left { max-width: 540px; }
.hero-h1 {
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 0.98; margin-top: 22px; letter-spacing: -0.04em;
}
.hero-sub {
  margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--muted);
  max-width: 480px; text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  display: flex; align-items: center; gap: 14px; margin-top: 34px;
  font-size: 12.5px; color: var(--faint);
}
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ---------- Passport card ---------- */
.hero-right { position: relative; display: flex; justify-content: center; }
.passport {
  position: relative; width: 100%; max-width: 430px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 22px 22px 18px;
  overflow: hidden;
}
.passport::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--ink) 60%, var(--blue));
  opacity: .9;
}
.pp-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, rgba(42,111,219,.07), transparent);
  transform: translateY(-100%); pointer-events: none;
  animation: scan 6.5s ease-in-out infinite; animation-delay: 1.2s;
}
@keyframes scan { 0%,100%{transform:translateY(-100%)} 50%{transform:translateY(260%)} }

.pp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pp-id { display: flex; gap: 12px; align-items: center; }
.pp-avatar {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--bg-off-2); border: 1px solid var(--border-2);
  display: grid; place-items: center; color: var(--ink);
}
.pp-avatar svg { width: 22px; height: 22px; }
.pp-name { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.agt-id { font-size: 10.5px; color: var(--faint); background: var(--bg-off-2); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); font-weight: 500; }
.pp-owner { font-size: 12px; color: var(--muted); margin-top: 3px; }
#ppVerified { transition: opacity .3s ease; }

.pp-label { font-size: 10px; letter-spacing: .12em; color: var(--faint); margin: 18px 0 9px; }
.pp-perms { display: flex; flex-wrap: wrap; gap: 7px; }
.perm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--border-2); background: var(--bg-off); color: var(--ink-2);
}
.perm svg { width: 14px; height: 14px; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .perm { animation: permIn .42s ease backwards; }
  .pp-perms .perm:nth-child(1){ animation-delay: .25s; }
  .pp-perms .perm:nth-child(2){ animation-delay: .33s; }
  .pp-perms .perm:nth-child(3){ animation-delay: .41s; }
  .pp-perms .perm:nth-child(4){ animation-delay: .49s; }
  @keyframes permIn { from { transform: translateY(6px); } to { transform: none; } }
}

.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.pp-cell { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 13px; background: var(--bg-off); }
.pp-spend { display: flex; align-items: baseline; gap: 5px; }
.pp-spend-now { font-size: 20px; font-weight: 600; color: var(--ink); }
.pp-spend-max { font-size: 12px; color: var(--faint); }
.pp-meter { height: 5px; border-radius: 4px; background: var(--border-2); margin-top: 9px; overflow: hidden; }
.pp-meter span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width 1.3s cubic-bezier(.16,1,.3,1) .4s; }
.pp-rep { display: flex; align-items: baseline; gap: 5px; }
.pp-rep-num { font-size: 20px; font-weight: 600; color: var(--green); font-family: var(--mono); }
.pp-rep-of { font-size: 12px; color: var(--faint); }
.pp-rep-bar { height: 5px; border-radius: 4px; background: var(--border-2); margin-top: 9px; overflow: hidden; }
.pp-rep-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; transition: width 1.3s cubic-bezier(.16,1,.3,1) .5s; }

.pp-approve { margin-top: 4px; }
.pp-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.rule {
  font-size: 11.5px; padding: 4px 9px; border-radius: 6px;
  background: var(--amber-soft); color: var(--amber); border: 1px solid #f0e0bf; font-weight: 500;
}

.pp-last {
  display: flex; align-items: center; gap: 9px; margin-top: 18px;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg);
}
.pp-last-label { font-size: 10px; letter-spacing: .1em; color: var(--faint); flex: none; }
.pp-last-text { font-size: 13px; color: var(--ink); font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s ease; }
.pp-last-time { font-size: 11px; color: var(--faint); flex: none; }

.pp-foot { display: flex; gap: 9px; margin-top: 16px; }
.pp-foot .btn { flex: 1; justify-content: center; }
.pp-revoke { color: #b4232a; }
.pp-revoke:hover { border-color: #e3b7ba; background: #fdf3f3; }

/* approval toast */
.appr-toast {
  position: absolute; left: -26px; bottom: 36px; z-index: 3;
  width: 280px; background: var(--bg);
  border: 1px solid var(--border-2); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 13px 14px;
  display: flex; gap: 11px; align-items: flex-start;
  opacity: 0; transform: translateY(10px) scale(.97);
  animation: toastCycle 9s ease-in-out infinite; animation-delay: 2.4s;
}
.appr-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.appr-body { flex: 1; }
.appr-title { font-size: 13px; font-weight: 600; }
.appr-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.appr-actions { display: flex; flex-direction: column; gap: 5px; }
.appr-x, .appr-ok { font-size: 11px; font-weight: 500; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--bg); }
.appr-ok { background: var(--ink); color: #fff; border-color: var(--ink); }
@keyframes toastCycle {
  0%, 6% { opacity: 0; transform: translateY(10px) scale(.97); }
  10%, 40% { opacity: 1; transform: translateY(0) scale(1); }
  46%, 100% { opacity: 0; transform: translateY(10px) scale(.97); }
}

/* ---------- TRUST STRIP ---------- */
.trust-strip { padding: 30px 0 8px; }
.trust-label { font-size: 11px; letter-spacing: .14em; color: var(--faint); text-align: center; }
.trust-logos {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 16px 40px; margin: 22px auto 0;
}
.trust-logos span {
  font-size: 21px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--faint); opacity: .8; transition: color .2s, opacity .2s;
}
.trust-logos span:hover { color: var(--ink-2); opacity: 1; }
.trust-logos--primary { max-width: 1080px; }
.trust-frameworks { margin-top: 30px; }
.trust-subtitle { font-size: 13px; color: var(--faint); text-align: center; }
.trust-logos--secondary {
  gap: 12px 30px;
  margin-top: 12px;
  max-width: 760px;
}
.trust-logos--secondary span {
  font-size: 16px;
  font-weight: 500;
  color: var(--faint);
  opacity: .62;
}

/* ---------- PROBLEM ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.prob-card { padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.prob-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--border-2); }
.prob-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-off-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink); margin-bottom: 18px; }
.prob-ico svg { width: 22px; height: 22px; }
.prob-card h3 { font-size: 18px; margin-bottom: 9px; }
.prob-card p { font-size: 14px; color: var(--muted); line-height: 1.58; }

/* ---------- REGISTRY TABLE ---------- */
.reg-wrap { margin-top: 48px; border: 1px solid var(--border-2); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-md); overflow: hidden; }
.reg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--bg-off); }
.reg-search { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; border: 1px solid var(--border-2); background: var(--bg); border-radius: 7px; padding: 7px 11px; min-width: 220px; }
.reg-filters { display: flex; gap: 8px; }
.reg-scroll { overflow-x: auto; }
.reg-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.reg-table th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.reg-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; white-space: nowrap; }
.reg-table tbody tr { transition: background .14s ease; }
.reg-table tbody tr:hover { background: var(--bg-off); }
.reg-table tbody tr:last-child td { border-bottom: none; }
.reg-agent { display: flex; align-items: center; gap: 10px; }
.reg-agent .ra-id { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.reg-agent .ra-name { font-weight: 600; }
.reg-tools { display: flex; gap: 4px; }
.reg-tools i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--bg-off); display: grid; place-items: center; font-family: var(--mono); font-size: 9px; color: var(--ink-2); font-style: normal; }
.reg-spend .mono { font-family: var(--mono); font-size: 12px; }
.reg-mini { height: 4px; width: 64px; background: var(--border-2); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.reg-mini span { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.reg-mini span.hot { background: var(--amber); }
.reg-rep { font-family: var(--mono); font-weight: 600; }
.reg-rep.good { color: var(--green); }
.reg-rep.mid { color: var(--amber); }
.reg-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: var(--bg-off); border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
.reg-foot-link { color: var(--blue-ink); cursor: pointer; }
.owner-v { display: inline-flex; align-items: center; gap: 5px; }
.owner-v svg { width: 12px; height: 12px; color: var(--green); }

/* ---------- DASHBOARD PREVIEW ---------- */
.dashprev { margin-top: 48px; display: grid; grid-template-columns: 230px 1fr; overflow: hidden; box-shadow: var(--sh-lg); border-color: var(--border-2); }
.dashprev-side { border-right: 1px solid var(--border); background: var(--bg-off); padding: 18px 14px; display: flex; flex-direction: column; }
.dashprev-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 18px; }
.dashprev-brand .mark { width: 18px; height: 18px; color: var(--ink); }
.dashprev-brand .word { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.dashprev-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.dashprev-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; transition: background .14s, color .14s; }
.dashprev-nav a .di { width: 16px; text-align: center; color: var(--faint); font-size: 12px; }
.dashprev-nav a:hover { background: var(--bg-off-2); color: var(--ink); }
.dashprev-nav a.active { background: var(--bg); color: var(--ink); font-weight: 500; box-shadow: var(--sh-sm); border: 1px solid var(--border); }
.dashprev-nav a.active .di { color: var(--ink); }
.navcount { margin-left: auto; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.dashprev-user { display: flex; align-items: center; gap: 9px; padding: 10px 8px 2px; border-top: 1px solid var(--border); margin-top: 12px; }
.dpu-av { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.dpu-name { font-size: 13px; font-weight: 600; }
.dpu-org { font-size: 11px; color: var(--faint); }

.dashprev-main { padding: 24px 26px; background: var(--bg); }
.dashprev-top { display: flex; align-items: flex-start; justify-content: space-between; }
.dp-crumb { font-size: 11px; color: var(--faint); }
.dp-title { font-size: 26px; margin-top: 5px; }
.dp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.dp-stat { border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; background: var(--bg-off); }
.dp-stat-k { font-size: 10px; letter-spacing: .1em; color: var(--faint); }
.dp-stat-v { font-size: 26px; font-weight: 600; margin-top: 8px; letter-spacing: -0.03em; }
.dp-stat-of { font-size: 13px; color: var(--faint); font-weight: 400; }
.dp-stat-sub { font-size: 11px; color: var(--muted); margin-top: 7px; }
.dp-mini-meter { height: 5px; border-radius: 4px; background: var(--border-2); margin-top: 11px; overflow: hidden; }
.dp-mini-meter span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.dp-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 22px; border-top: 1px solid var(--border); }
.dp-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.dp-t-name { font-size: 14px; font-weight: 500; }
.dp-t-sub { font-size: 11px; color: var(--faint); margin-top: 2px; }
.dp-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.dp-open { margin-left: auto; font-size: 13px; color: var(--blue-ink); }
.dp-open:hover { text-decoration: underline; }

/* ---------- DEVELOPERS ---------- */
.dev-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.dev-grid--copy { display: block; }
.dev-grid--copy .dev-left { max-width: 620px; }
.dev-left { max-width: 460px; }
.dev-left h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 16px; }
.dev-left > p { margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.dev-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.dev-list li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.dl-chk { width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 11px; flex: none; border: 1px solid #c7e6d6; }
.dev-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.code-card { background: #0c0c0d; border: 1px solid #20211f; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid #1c1d1b; background: #111210; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; background: #2c2d2b; }
.code-dot:nth-child(1){ background:#3a3b39; }
.code-file { font-size: 12px; color: #8a8c87; margin-left: 8px; }
.code-run { margin-left: auto; font-size: 11.5px; color: #6fae8c; cursor: pointer; border: 1px solid #214034; padding: 4px 9px; border-radius: 6px; background: rgba(31,138,91,.08); transition: background .15s; }
.code-run:hover { background: rgba(31,138,91,.16); }
.code-body { margin: 0; padding: 18px 18px; font-size: 13px; line-height: 1.75; color: #d6d7d2; min-height: 196px; white-space: pre-wrap; word-break: break-word; }
.code-body .c-key { color: #c98a6a; }
.code-body .c-str { color: #7fae90; }
.code-body .c-fn { color: #7aa2d6; }
.code-body .c-num { color: #c9a86a; }
.code-body .c-com { color: #5c5e58; }
.code-body .c-punc { color: #9a9c96; }
.code-cursor { display: inline-block; width: 7px; height: 15px; background: #6fae8c; vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-out { border-top: 1px solid #1c1d1b; background: #0a0a0b; padding: 14px 18px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease, padding .4s ease; }
.code-out.show { max-height: 280px; opacity: 1; }
.code-out-head { font-size: 11px; color: #8a8c87; display: flex; align-items: center; gap: 8px; letter-spacing: .04em; }
.code-out-body { margin: 9px 0 0; font-size: 12.5px; line-height: 1.7; color: #d6d7d2; white-space: pre-wrap; }
.code-out-body .ok { color: #6fae8c; }
.code-out-body .c-key { color: #c98a6a; }
.code-out-body .c-str { color: #7fae90; }
.code-out-body .c-num { color: #c9a86a; }

/* ---------- CTA ---------- */
.cta-section { padding: 80px 0; }
.cta-inner { border: 1px solid var(--border-2); border-radius: var(--r-xl); padding: 72px 32px; background: var(--bg-off); box-shadow: var(--sh-md); position: relative; overflow: hidden; }
.cta-inner::after { content:""; position:absolute; inset:0; background: radial-gradient(80% 120% at 50% 0%, rgba(255,255,255,.9), transparent 60%); pointer-events:none; }
.cta-h2 { font-size: clamp(32px, 4.4vw, 52px); position: relative; }
.cta-p { margin: 18px auto 0; color: var(--muted); font-size: 18px; max-width: 480px; position: relative; }
.cta-inner .hero-cta { margin-top: 32px; position: relative; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-left { max-width: 620px; }
  .hero-right { justify-content: flex-start; }
  .prob-grid { grid-template-columns: 1fr 1fr; }
  .dev-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .hero-grid, .hero-left { min-width: 0; }
  .hero-left, .hero-sub { max-width: 100%; }
  .hero-right { justify-content: center; min-width: 0; }
  .passport { max-width: 100%; }
  .appr-toast { display: none; }
  .hero-meta { flex-wrap: wrap; }
  .prob-grid { grid-template-columns: 1fr; }
  .dashprev { grid-template-columns: 1fr; }
  .dashprev-side { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: none; border-bottom: 1px solid var(--border); }
  .dashprev-nav { display: none; }
  .dashprev-user { border-top: none; margin: 0; padding: 0; }
  .dp-stats { grid-template-columns: 1fr; }
  .dp-toggles { grid-template-columns: 1fr; gap: 0; }
  .appr-toast { left: 50%; transform: translateX(-50%) translateY(10px); bottom: -16px; }
  .trust-logos { gap: 14px 26px; }
  .trust-logos span { font-size: 19px; }
  .trust-frameworks { margin-top: 26px; }
  .trust-logos--secondary { gap: 10px 22px; }
  .trust-logos--secondary span { font-size: 14px; }
}
