/*
 * brand.css — Siprabi Securities white-label design system.
 * Refined fintech operations console: white app chrome, confident teal accent,
 * navy ink, soft depth. Brand colours sourced from siprabi.com theme.css.
 * No Adryze branding anywhere.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --brand:       #176474;   /* Siprabi teal — primary */
  --brand-deep:  #0f4c58;   /* darker teal — hover floor */
  --brand-bright:#1d8197;   /* lighter teal — gradient top / accents */
  --brand-2:     #0a1231;   /* Siprabi navy — ink / headings */
  --brand-tint:  #e9f2f3;   /* faint teal wash — hovers, fills */

  /* Surfaces & text */
  --bg:          #eef3f4;
  --surface:     #ffffff;
  --text:        #16233b;
  --muted:       #61728a;
  --border:      #e4ebee;
  --border-strong:#cdd9dd;
  --preview-bg:  #10202a;   /* dark frame behind the PDF preview */

  /* Status */
  --danger:      #b42318;
  --danger-bg:   #fef3f2;
  --danger-bd:   #fecdca;

  /* Geometry & depth */
  --radius:      16px;
  --radius-sm:   11px;
  --radius-pill: 999px;
  --shadow-sm:   0 1px 2px rgba(10,18,49,.05), 0 1px 3px rgba(10,18,49,.05);
  --shadow-md:   0 2px 6px rgba(10,18,49,.04), 0 14px 34px rgba(10,18,49,.07);
  --shadow-lg:   0 10px 30px rgba(10,18,49,.10), 0 30px 70px rgba(10,18,49,.12);
  --shadow-brand:0 6px 18px rgba(23,100,116,.28);
  --ring:        0 0 0 4px rgba(23,100,116,.16);
  --ease:        cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Atmosphere: layered teal/navy glows over a cool base */
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(29,129,151,.16), transparent 58%),
    radial-gradient(820px 480px at -5% -5%, rgba(10,18,49,.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Faint dot-grid texture, fading down the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(10,18,49,.045) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%);
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--brand-2);
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0;
}

a { color: var(--brand); text-decoration: none; }

/* ── Top app bar (WHITE chrome — the logo is finally visible) ───────── */
.brand-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 66px;
  padding: 0 26px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand-bar img { height: 40px; width: auto; display: block; }
.brand-bar .brand-divider {
  width: 1px;
  height: 26px;
  background: var(--border-strong);
  flex-shrink: 0;
}
.brand-bar .brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .005em;
  color: var(--brand-2);
}
.brand-bar .brand-tag {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: var(--brand); background: var(--brand-tint); }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px 24px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  font-family: inherit;
  font-weight: 600;
  font-size: .92rem;
  color: #fff;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-brand);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 9px 24px rgba(23,100,116,.36); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand);
  cursor: pointer;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.btn-secondary:hover { border-color: var(--brand); background: var(--brand-tint); }

/* ── Entrance motion ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp .55s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } }
