/* ===========================================================
   AUZA — Trust infrastructure for AI agents
   Shared design system
   Type:  Space Grotesk (display/UI) + JetBrains Mono (data/code)
   =========================================================== */

:root {
  /* Neutrals */
  --bg:            #ffffff;
  --bg-off:        #fafafa;
  --bg-off-2:      #f5f5f4;
  --ink:           #0a0a0a;
  --ink-2:         #2e2e2e;
  --muted:         #6b6b6b;
  --faint:         #9a9a9a;
  --border:        #e9e9e7;
  --border-2:      #dededb;
  --border-strong: #cfcfcb;

  /* Accent — used sparingly */
  --blue:          #2a6fdb;
  --blue-ink:      #1f5bbf;
  --blue-soft:     #ecf2fd;
  --blue-line:     #cfdef8;
  --green:         #1f8a5b;
  --green-soft:    #e8f4ee;
  --amber:         #b7791f;
  --amber-soft:    #fbf3e3;

  /* Type */
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius */
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15,15,15,.05), 0 1px 1px rgba(15,15,15,.04);
  --sh-md: 0 2px 4px rgba(15,15,15,.04), 0 8px 24px rgba(15,15,15,.06);
  --sh-lg: 0 4px 8px rgba(15,15,15,.05), 0 24px 56px rgba(15,15,15,.10);
  --sh-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 1px 2px rgba(15,15,15,.04), 0 10px 30px rgba(15,15,15,.07);

  --maxw: 1200px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.band { background: var(--bg-off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.section-head { max-width: 680px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 16px;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--sh-sm); }
.btn--primary:hover { background: #232323; box-shadow: var(--sh-md); }
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--border-2); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--border-strong); background: #fff; box-shadow: var(--sh-md); }
.btn--sm { height: 36px; padding: 0 13px; font-size: 13px; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .02em; color: var(--ink-2);
  box-shadow: var(--sh-sm);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 6px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  border: 1px solid var(--border-2); background: var(--bg-off); color: var(--ink-2);
}
.tag--verified { color: var(--green); background: var(--green-soft); border-color: #c7e6d6; }
.tag--blue { color: var(--blue-ink); background: var(--blue-soft); border-color: var(--blue-line); }
.tag--amber { color: var(--amber); background: var(--amber-soft); border-color: #f0e0bf; }
.tag--muted { color: var(--muted); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; position: relative; display: inline-block; }
.status-dot--live { background: var(--green); }
.status-dot--live::after {
  content:""; position:absolute; inset:-4px; border-radius:50%;
  border: 1px solid var(--green); opacity:.5; animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0%{transform:scale(.6);opacity:.7} 80%,100%{transform:scale(1.7);opacity:0} }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

/* ---------- Toggle ---------- */
.toggle {
  width: 40px; height: 24px; border-radius: 100px;
  background: var(--border-strong); border: none; padding: 0;
  position: relative; transition: background .2s ease; flex: none;
}
.toggle::after {
  content:""; position:absolute; top:3px; left:3px;
  width:18px; height:18px; border-radius:50%; background:#fff;
  box-shadow: var(--sh-sm); transition: transform .2s cubic-bezier(.4,1.2,.5,1);
}
.toggle[aria-checked="true"] { background: var(--ink); }
.toggle[aria-checked="true"]::after { transform: translateX(16px); }
.toggle.toggle--blue[aria-checked="true"] { background: var(--blue); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.nav .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand .mark { width: 22px; height: 22px; color: var(--ink); flex: none; }
.brand .word { font-family: var(--mono); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; justify-self: center; gap: 4px; }
.nav-links a {
  font-size: 14px; color: var(--muted); padding: 7px 11px; border-radius: 7px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-off-2); }
.nav-links a.active { color: var(--ink); }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }
.nav-mobile-panel { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-off); }
.footer .wrap { padding-top: 40px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-grid--simple { grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.7fr); gap: 64px; align-items: start; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin: 0 0 16px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: var(--ink); }
.foot-blurb { color: var(--muted); font-size: 14px; max-width: 330px; margin-top: 14px; line-height: 1.55; }
.foot-link-list { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 2px 28px; }
.foot-link-list a { padding: 4px 0; }
.foot-socials { display: flex; gap: 8px; margin-top: 14px; }
.foot-socials a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: 8px; color: var(--muted);
  background: var(--bg); transition: all .15s ease; padding: 0;
}
.foot-socials a:hover { color: var(--ink); border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border); }
.foot-bottom .muted { color: var(--faint); font-size: 13px; font-family: var(--mono); }

/* ---------- Mono data rows ---------- */
.kv { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kv .k { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .02em; }
.kv .v { font-size: 14px; color: var(--ink); font-weight: 500; }
.mono { font-family: var(--mono); }

/* ---------- Reveal (resting state is always visible; motion is layered on,
   never gating visibility — robust even if the animation clock is frozen) ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revealIn .7s cubic-bezier(.16,1,.3,1) backwards; }
  @keyframes revealIn {
    from { transform: translateY(14px); }
    to   { transform: none; }
  }
  .reveal[data-d="1"] { animation-delay: .08s; }
  .reveal[data-d="2"] { animation-delay: .16s; }
  .reveal[data-d="3"] { animation-delay: .24s; }
  .reveal[data-d="4"] { animation-delay: .32s; }
  .reveal[data-d="5"] { animation-delay: .40s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Grid texture ---------- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(10,10,10,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.dot-bg {
  background-image: radial-gradient(rgba(10,10,10,.10) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Utilities ---------- */
.u-center { text-align: center; }
.u-mt-s { margin-top: 12px; }
.u-mt-m { margin-top: 24px; }
.u-mt-l { margin-top: 48px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid--simple { grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr); gap: 40px; }
  .foot-link-list { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav .wrap { grid-template-columns: 1fr auto auto; gap: 10px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg); }
  .nav-mobile-panel {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: 28px;
    right: 28px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    background: var(--bg);
    box-shadow: var(--sh-md);
  }
  .nav-mobile-panel[hidden] { display: none; }
  .nav-mobile-panel a:not(.btn) {
    display: block;
    padding: 10px 11px;
    border-radius: var(--r-sm);
    color: var(--ink-2);
    font-size: 14px;
  }
  .nav-mobile-panel a:not(.btn):hover,
  .nav-mobile-panel a.active {
    background: var(--bg-off-2);
    color: var(--ink);
  }
  .nav-mobile-panel .btn { margin-top: 6px; justify-content: center; width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid--simple { grid-template-columns: 1fr; max-width: none; }
  .foot-link-list { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .nav .wrap { gap: 12px; padding: 0 16px; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-grid; }
  .nav-mobile-panel { left: 16px; right: 16px; }
}
