/* AKETE — site-wide shared styles
   Loaded by index.html, privacy.html, and terms.html.
   Page-specific CSS variables (colors, theme overrides) remain inline
   in each page so subtle per-page tones stay intact. */

/* ---------- SHARED DESIGN TOKENS ----------
   Tokens used by the components in this file (theme toggle, footer,
   cookie banner). Pages may override any of these in their own CSS;
   keeping defaults here ensures every page renders these components
   consistently, even when a page forgets to define a token. */
:root {
  --button-text: #061612;
  --mx: 50vw;
  --my: 50vh;
}

:root[data-theme="light"] {
  --button-text: #ffffff;
}

/* ---------- MOUSE WORKFLOW EFFECT CANVAS ----------
   Full-viewport canvas for the cursor halo + connection animation drawn
   by /assets/js/fx.js. Pointer-events disabled so it never blocks UI. */
/* Bitmap + layout size are driven by fx.js resize() using innerWidth/innerHeight.
   Do NOT use 100vw/100vh — they often differ from the layout viewport (scrollbar
   gutter, mobile Chrome, etc.) and skew mouse/DOM coordinates vs drawn pixels. */
.fx-canvas {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  pointer-events: none;
  z-index: 9998;
}

/* ---------- GLOBAL MOUSE SPOTLIGHT ----------
   A subtle radial glow that follows the cursor. Driven by --mx/--my which
   theme.js publishes in a rAF-throttled pointermove handler. Applies to
   every page that loads site.css. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(540px circle at var(--mx) var(--my), rgba(0, 245, 196, .08), transparent 58%),
    radial-gradient(420px circle at calc(var(--mx) + 8%) calc(var(--my) - 10%), rgba(123, 97, 255, .07), transparent 62%);
  pointer-events: none;
  z-index: 0;
  transition: opacity .2s ease;
}

:root[data-theme="light"] body::after {
  opacity: .18;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    transition: none !important;
  }
}

/* Visually hidden (still announced by screen readers) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* Honeypot field for spam bots: visually hidden, kept in document flow.
   Real users never see or focus this input; bots auto-fill it. */
.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none
}

/* Background noise overlay was removed: the solid --bg has no banding to
   mask, and the orbs + spotlight already provide depth. Keeping the dark
   surface clean reads better than any low-opacity grain. */

/* ---------- LOGO (nav) ---------- */
.nav-logo-stack {
  position: relative;
  width: 158px;
  height: 70px;
  display: block
}

.nav-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s ease;
  transform-origin: left center;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d
}

.nav-logo-dark {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: drop-shadow(0 0 0 rgba(0, 245, 196, 0));
  animation: logo-load .8s cubic-bezier(.22, 1, .36, 1) both, logo-breathe 3.8s ease-in-out .85s infinite
}

.nav-logo-light {
  opacity: 0;
  transform: translate3d(0, 4px, 0) scale(.985);
  filter: drop-shadow(0 0 0 rgba(230, 50, 180, 0));
  animation: logo-load .8s cubic-bezier(.22, 1, .36, 1) both, logo-breathe 3.8s ease-in-out 1.05s infinite
}

:root[data-theme="light"] .nav-logo-dark {
  opacity: 0;
  transform: translate3d(0, -4px, 0) scale(.985)
}

:root[data-theme="light"] .nav-logo-light {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: drop-shadow(0 0 10px rgba(230, 50, 180, .16))
}

.logo-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .98;
  transition: opacity .45s ease
}

.logo-flow-path {
  fill: none;
  stroke: rgba(255, 0, 170, .14);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.logo-flow-particle {
  fill: #ff2ab6;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 0, 170, .62)) drop-shadow(0 0 10px rgba(255, 0, 170, .34))
}

@keyframes logo-breathe {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 0 0 rgba(0, 245, 196, 0))
  }

  50% {
    transform: translate3d(0, -1.5px, 0) scale(1.014);
    filter: drop-shadow(0 0 12px rgba(0, 245, 196, .18))
  }
}

@keyframes logo-load {
  0% {
    transform: translate3d(0, 6px, 0) scale(.965)
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1)
  }
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--soft-surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  cursor: pointer;
  transition: background .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font: inherit
}

.theme-toggle:hover {
  background: var(--soft-surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .08)
}

.theme-toggle-track {
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 245, 196, .95), rgba(123, 97, 255, .95));
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  flex-shrink: 0
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  opacity: .95;
  transform-origin: center;
  transition: opacity .35s ease, transform .45s ease, filter .35s ease
}

.theme-toggle-sun {
  color: #f5b000;
  transform: scale(.92) rotate(-4deg);
  filter: drop-shadow(0 0 3px rgba(245, 176, 0, .22))
}

.theme-toggle-moon {
  color: #eef3ff;
  transform: scale(.82) rotate(8deg)
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), background .35s ease, box-shadow .35s ease
}

:root[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(28px);
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  box-shadow: 0 3px 10px rgba(99, 114, 148, .16)
}

:root[data-theme="light"] .theme-toggle-sun {
  opacity: 1;
  color: #f0ab00;
  filter: drop-shadow(0 0 2px rgba(240, 171, 0, .16));
  transform: scale(.96) rotate(0deg)
}

:root[data-theme="light"] .theme-toggle-moon {
  opacity: .62;
  color: #cfd6e8;
  transform: scale(.84) rotate(10deg)
}

:root:not([data-theme="light"]) .theme-toggle-sun {
  opacity: .48;
  transform: scale(.76) rotate(-10deg)
}

:root:not([data-theme="light"]) .theme-toggle-moon {
  opacity: 1;
  transform: scale(.94) rotate(0deg)
}

.theme-toggle-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: cookieBannerIn .55s cubic-bezier(.22, 1, .36, 1) both
}

.cookie-banner[hidden] {
  display: none
}

.cookie-banner-card {
  pointer-events: auto;
  max-width: 520px;
  width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(20px)
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 6px;
  letter-spacing: -.01em
}

.cookie-banner-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap
}

.cookie-banner-btn {
  flex: 1 1 140px;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .2s ease, background .2s ease, border-color .2s ease
}

.cookie-banner-decline {
  background: transparent;
  color: var(--text)
}

.cookie-banner-decline:hover {
  background: rgba(127, 127, 145, .08)
}

.cookie-banner-accept {
  background: var(--accent);
  color: var(--button-text, #ffffff);
  border-color: transparent
}

.cookie-banner-accept:hover {
  transform: translateY(-1px)
}

.cookie-banner-link {
  font-size: .78rem;
  color: var(--accent);
  text-decoration: none
}

.cookie-banner-link:hover {
  text-decoration: underline
}

@keyframes cookieBannerIn {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 8px;
    left: 8px;
    right: 8px
  }

  .cookie-banner-card {
    padding: 16px 18px;
    border-radius: 14px
  }
}

/* ---------- SITE FOOTER (shared by every page) ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -.02em;
}

.footer-brand-meta {
  color: var(--muted);
  font-size: .78rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
