/* ═══════════════════════════════════════════════════
   InfiniSync — base.css
   Shared across every page on the site.
   ═══════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES ─── */
:root {
  --bg:      #08080f;
  --surface: #111118;
  --surface2:#18181f;
  --border:  rgba(255,255,255,0.07);
  --accent:  #404dff;
  --accent2: #ff5f7e;
  --accent3: #00e5c0;
  --text:    #e8e8f0;
  --muted:   #6b6b80;
  --radius:  16px;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo-img:hover { opacity: 1; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* logged-in nav right side */
.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* back-link on legal pages */
.nav-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }

/* ─── BUTTONS ─── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2535c4);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(64,77,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(64,77,255,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(255,255,255,0.15); }

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.btn-logout:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

/* ─── FOOTER ─── */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }

/* simple one-line footer (legal pages) */
footer.page-footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
footer.page-footer a { color: var(--muted); text-decoration: none; }
footer.page-footer a:hover { color: var(--text); }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  /* Footer */
  footer { padding: 2.5rem 1.25rem; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    justify-content: center;
    gap: 0.6rem 1.25rem;
    flex-wrap: wrap;
  }

  .footer-copy { order: 3; }

  /* Legal page footer */
  footer.page-footer { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  /* Nav shrink logo on tiny screens + constrain width */
  .nav-logo-img { height: 26px; max-width: 110px; object-fit: contain; object-position: left; }

  nav { padding: 0 1rem; }

  /* Btn adjustments */
  .nav-cta { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
}
