/* ============================================================
   SOLUNA — components.css
   Nav, footer, ticker, CTA band, cursor
   ============================================================ */

/* ── Custom cursor ─────────────────────────────────────── */
.cursor {
  width: 8px; height: 8px; background: var(--blue); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply; transition: transform .12s;
}
.cursor-ring {
  width: 32px; height: 32px; border: 1.5px solid rgba(37,99,235,.5);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, opacity .3s;
}
.cursor--hover .cursor-ring { width: 52px; height: 52px; opacity: .3; }

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 52px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 4px 24px rgba(0,0,0,.07); }

/* ── Nav logo — image ────────────────────────────────── */
.nav__logo {
  display: flex; align-items: center; margin-right: auto;
  text-decoration: none; flex-shrink: 0;
}
.nav__logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity .2s, height .25s;
}
.nav__logo:hover .nav__logo-img { opacity: .85; }

/* Slightly smaller on scrolled nav */
.nav.scrolled .nav__logo-img { height: 80px; }

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin-right: 28px; }
.nav__links a {
  padding: 7px 16px; border-radius: 50px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--off); }
.nav__links a.active { background: var(--ink); color: white; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 50px;
  background: var(--g-brand); color: white;
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 4px 16px rgba(37,99,235,.32);
  transition: opacity .2s, transform .2s;
}
.nav__cta:hover { opacity: .9; transform: translateY(-1px); }

@media (max-width: 1024px) { .nav { padding: 0 28px; } }
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links li:not(:last-of-type) { display: none; }
  .nav__cta { font-size: 12px; padding: 8px 16px; }
}

/* ── TICKER ────────────────────────────────────────────── */
.ticker {
  background: var(--ink); overflow: hidden;
  padding: 13px 0; border-top: 1px solid rgba(255,255,255,.05);
}
.ticker__track {
  display: flex; gap: 0; white-space: nowrap;
  animation: tickMove 35s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 36px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.45); letter-spacing: .1em; text-transform: uppercase;
  flex-shrink: 0;
}
.ticker__sep { color: var(--blue); font-size: 14px; }
@keyframes tickMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── CTA BAND ──────────────────────────────────────────── */
.cta-band {
  margin: 0 80px 80px; border-radius: var(--r-xl);
  background: var(--ink); position: relative; overflow: hidden;
  padding: 90px 80px; text-align: center;
}
.cta-band__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 100% at 15% 50%, rgba(37,99,235,.32), transparent),
    radial-gradient(ellipse 60% 80%  at 85% 30%, rgba(124,58,237,.26), transparent),
    radial-gradient(ellipse 50% 60%  at 55% 85%, rgba(236,72,153,.2), transparent);
}
.cta-band__particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cta-band__particle {
  position: absolute; border-radius: 50%;
  animation: particleDrift var(--d, 9s) ease-in-out infinite alternate;
}
@keyframes particleDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(var(--tx, 20px), var(--ty, -20px)); }
}
.cta-band__inner { position: relative; }
.cta-band__title {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(40px, 5vw, 72px); letter-spacing: -.04em;
  color: white; line-height: 1; margin: 20px 0;
}
.cta-band__title em { font-style: italic; opacity: .7; }
.cta-band__sub { font-size: 17px; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 48px; line-height: 1.7; }
.cta-band__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) { .cta-band { margin: 0 40px 60px; padding: 72px 48px; } }
@media (max-width: 640px)  { .cta-band { margin: 0 20px 48px; padding: 56px 28px; } }

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--ink-2); position: relative; overflow: hidden;
  padding: 80px 80px 48px;
}
.footer__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.footer__glow--blue  { width: 420px; height: 420px; background: rgba(37,99,235,.1);  bottom: -160px; right: -40px; }
.footer__glow--pink  { width: 300px; height: 300px; background: rgba(236,72,153,.09); bottom: -80px;  left: -50px; }

.footer__grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr; gap: 60px;
  margin-bottom: 64px; position: relative;
}
/* ── Footer logo — image ─────────────────────────────── */
.footer__logo-link {
  display: inline-block; margin-bottom: 18px; text-decoration: none;
}
.footer__logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  /* White bg logo: place it on a light pill so it's always visible on dark footer */
  background: white;
  border-radius: 10px;
  padding: 8px 18px;
  box-shadow: 0 3px 15px rgba(11, 2, 40, 0.25);
  transition: opacity .2s, transform .2s;
}
.footer__logo-link:hover .footer__logo-img {
  opacity: .95;
  transform: translateY(-1px);
}
.footer__tagline { font-size: 13px; font-weight: 700; color: var(--amber); margin-bottom: 14px; }
.footer__desc    { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 260px; }
.footer__social  { display: flex; gap: 10px; margin-top: 24px; }
.footer__social-link {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.5);
  transition: all .2s;
}
.footer__social-link:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: white; }

.footer__col h4 {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 20px; font-weight: 700;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__col a  { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer__col a:hover { color: white; }

.footer__contact-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer__contact-item:last-child { border: none; }
.footer__contact-label { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.footer__contact-val   { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between; position: relative;
}
.footer__copy  { font-size: 12px; color: rgba(255,255,255,.25); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 12px; color: rgba(255,255,255,.25); transition: color .2s; }
.footer__legal a:hover { color: rgba(255,255,255,.65); }

.footer__cert-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.footer__cert {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 5px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5);
}

@media (max-width: 1024px) {
  .footer { padding: 64px 40px 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .footer { padding: 52px 20px 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* ── Logo responsive tweaks ─────────────────────────── */
@media (max-width: 768px) {
  .nav__logo-img                { height: 46px; }
  .nav.scrolled .nav__logo-img  { height: 40px; }
  .footer__logo-img             { height: 60px; padding: 6px 14px; }
}
@media (max-width: 480px) {
  .nav__logo-img                { height: 40px; }
  .nav.scrolled .nav__logo-img  { height: 34px; }
  .footer__logo-img             { height: 52px; padding: 5px 12px; }
}
