/* Picon Finance — root landing page.
   Same palette and type as lending/theme.css + dlmm/dlmm.css; this file is self-contained so
   the live page is untouched while this is under review. */

:root {
  --bg: #000;
  --text: #fff;
  --text-dim: #999;
  --text-faint: #666;
  --text-ghost: #444;

  --green: #1B9E3E;
  --green-deep: #13712C;
  --green-hover: #178735;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --violet-deep: #6d28d9;

  --line: #1a1a1a;
  --line-strong: #2a2a2a;
  --line-bright: #333;

  --gutter: 24px;
  --max: 1060px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Ubuntu", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── ambience ───────────────────────────────────────────────────────── */

/* One soft bloom centred behind the hero. Keeps the page from reading as a flat
   black rectangle without introducing a second colour. */
.bloom {
  position: fixed;
  top: -10%;
  left: 50%;
  width: min(1100px, 130vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(27, 158, 62, 0.16), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* Barely-there grid, fading out downward — structure without noise. */
.grid-veil {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.announce-bar,
.brand,
.hero,
.products,
.footer {
  position: relative;
  z-index: 1;
}

/* ── announcement bar ──────────────────────────────────────────────── */

.announce-bar {
  display: block;
  text-align: center;
  padding: 10px var(--gutter);
  font-size: 13.5px;
  font-weight: 500;
  background: linear-gradient(90deg, transparent, rgba(27, 158, 62, 0.26) 20%, rgba(27, 158, 62, 0.26) 80%, transparent);
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, transparent, rgba(27, 158, 62, 0.3) 20%, rgba(27, 158, 62, 0.3) 80%, transparent) 1;
  transition: background-color 160ms ease;
}

.announce-bar:hover {
  background: linear-gradient(90deg, transparent, rgba(27, 158, 62, 0.36) 20%, rgba(27, 158, 62, 0.36) 80%, transparent);
}

/* ── hero ───────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}

.badge {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.015);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 2px var(--green); }
  50%      { box-shadow: 0 0 10px 3px var(--green); }
}

.hero h1 {
  margin: 26px 0 0;
  width: 100%;
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.018em;
  max-width: 700px;
}

.hero h1 .accent {
  color: var(--green);
}

.lede {
  margin: 20px 0 0;
  width: 100%;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ── distribution ───────────────────────────────────────────────────── */

.dist {
  width: 100%;
  max-width: 720px;
  margin: 46px 0 0;
}

.dist-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}

/* Bars grow from the axis, staggered outward from the active bin (--i is distance
   from centre) so the eye lands on the active bin first. */
.bars rect {
  transform-origin: 50% 170px;
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.active-bin rect {
  animation: none;
}

.active-bin {
  transform-origin: 50% 170px;
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.5));
}

@keyframes rise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.active-outline {
  fill: none;
  stroke: #000;
  stroke-width: 1.5;
}

.dist-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 22px;
  row-gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

.dist-legend span {
  display: inline-flex;
  align-items: center;
  column-gap: 7px;
}

.key {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.key-bid { background: var(--blue); }
.key-ask { background: var(--violet); }
.key-active {
  background: linear-gradient(180deg, var(--violet) 50%, var(--blue) 50%);
}

/* ── actions ────────────────────────────────────────────────────────── */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(27, 158, 62, 0.4);
}

.button-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 6px 26px -8px rgba(27, 158, 62, 0.75);
}

.arrow {
  transition: transform 160ms ease;
}

.button-primary:hover .arrow {
  transform: translateX(3px);
}

.button-secondary {
  border-color: var(--line-bright);
  color: var(--text);
}

.button-secondary:hover {
  background: #111;
  border-color: #444;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-ghost);
}

.proof li {
  position: relative;
}

.proof li + li::before {
  content: "·";
  position: absolute;
  left: -15px;
  color: #2e2e2e;
}

/* ── products ───────────────────────────────────────────────────────── */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.product:hover {
  border-color: var(--green-deep);
  transform: translateY(-2px);
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-ghost);
}

.product-arrow {
  color: var(--text-ghost);
  transition: color 180ms ease, transform 180ms ease;
}

.product:hover .product-arrow {
  color: var(--green);
  transform: translateX(3px);
}

.product h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.product p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ── responsive ─────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .products {
    grid-template-columns: 1fr;
  }

  .brand-nav a:not(.brand-cta) {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .dist {
    margin-top: 36px;
  }
}

@media (max-width: 520px) {
  .footer {
    justify-content: center;
    text-align: center;
  }

  .proof li + li::before {
    content: none;
  }

  .proof {
    gap: 6px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bars rect,
  .active-bin,
  .badge-dot {
    animation: none;
  }
}
