/* ═══════════════════════════════════════════════════
   ADDLIFY · BASE CSS — shared across all pages
   ═══════════════════════════════════════════════════ */

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

:root {
  /* core palette */
  --ink: #0a0a0f;
  --ink-2: #131320;
  --white: #fafaf8;
  --yellow: #e8ff00;
  --coral: #ff4d6d;
  --violet: #7c3aed;
  --cyan: #00d4ff;
  --green: #00e87a;
  --orange: #ff7a1a;
  --pink: #ff3dbd;

  /* product accents (overridden per page) */
  --accent: var(--yellow);
  --accent-2: var(--coral);
  --accent-glow: rgba(245,230,66,0.4);

  --radius: 20px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; }
@media (hover: none) {
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* ───── CURSOR ───── */
.cursor {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
}

/* ───── NOISE OVERLAY ───── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000;
  opacity: 0.35;
}

/* ───── NAV ───── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--white);
  display: flex; align-items: center; gap: 6px;
  position: relative;
}
.logo::before {
  content: '';
  position: absolute;
  left: 95px;
  top: -1px;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  z-index: 1;
}
.logo::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 120px;
  height: 6px;
  background: var(--accent);
  border-radius: 1.5px;
}
.logo-dot {
  position: absolute;
  left: 96px;
  top: 0px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 2;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.5); opacity: 0.7; }
}

.logo-product {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent);
  color: var(--ink) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px var(--accent-glow) !important;

  color: var(--ink) !important;
}

/* ───── BUTTONS ───── */
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  padding: 16px 34px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--accent-glow);
}
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  color: rgba(255,255,255,0.7);
  padding: 16px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.65); color: var(--white); }

/* ───── REVEALS & ANIMATIONS ───── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ───── FOOTER ───── */
footer {
  padding: 60px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.82rem;
  /* WCAG 1.4.3 — bump from 0.35 to 0.65 to clear AA contrast against #0a0a0f */
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  /* WCAG 1.4.3 — bump from 0.4 to 0.7 for AA on body text */
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 48px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
}

/* ───── SECTION HELPERS ───── */
.section {
  padding: 100px 48px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 720px;
}

/* Pe mobil, forteaza ruperea textului chiar si pe titluri cu white-space:nowrap inline */
@media (max-width: 900px) {
  .section-title,
  h2.section-title,
  .cta-band h2,
  .download-title {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ───── LANGUAGE SWITCHER ───── */
.lang-switch { display: flex; align-items: center; gap: 5px; }
.lang-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  /* WCAG 1.4.3 — bump from 0.35 to 0.65 */
  color: rgba(255,255,255,0.65);
  padding: 3px 7px;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.lang-btn.active { color: var(--yellow); }
.lang-sep { color: rgba(255,255,255,0.18); font-size: 0.7rem; }

/* ───── RESPONSIVE BASE ───── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .section { padding: 60px 24px; }
  footer { grid-template-columns: 1fr 1fr; padding: 48px 24px 32px; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

/* ───── HAMBURGER MOBILE NAV ───── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 498;
  backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: #0f0a1e;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding: 64px 28px 40px;
    gap: 4px !important;
    z-index: 499;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    text-align: center;
    transition: background 0.15s, color 0.15s;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.07); color: #fff; }
  .nav-links .nav-cta {
    margin-top: 8px;
    padding: 12px 22px !important;
    background: var(--accent);
    color: var(--ink) !important;
    text-align: center;
    font-weight: 700;
  }
  .nav-links .lang-switch {
    padding: 4px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
}

/* ───── BACK TO TOP BUTTON (global) ───── */
.btn-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
  z-index: 100000;
  font-family: inherit;
}
.btn-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.btn-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-top:active { transform: translateY(0); }
@media (max-width: 600px) {
  .btn-top { bottom: 90px; right: 18px; width: 42px; height: 42px; font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY (added 2026-05-14 per audit REV 2)
   ═══════════════════════════════════════════════════════════════ */

/* WCAG 2.4.7 — focus visible on keyboard navigation.
   Targeted at :focus-visible so mouse clicks don't show the ring. */
:focus-visible {
  outline: 2px solid #e8ff00;
  outline-offset: 2px;
  border-radius: 3px;
}
/* Buttons + links keep their natural shape with the outline */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e8ff00;
  outline-offset: 2px;
}

/* WCAG 2.4.1 — skip link (use `<a class="skip-link" href="#main">…</a>` in body) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 14px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #e8ff00;
}

/* WCAG 2.3.3 — respect prefers-reduced-motion (epilepsy, vestibular disorders) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Disable transform-based motion that can cause vestibular issues */
  .ticker,
  .slide-line,
  .pulse-dot,
  .float1, .float2, .float3,
  .hero-scroll {
    animation: none !important;
    transform: none !important;
  }
  /* Custom cursor relies on JS-driven RAF; hide it under reduced-motion */
  .custom-cursor { display: none !important; }
}

/* Min target size for tap targets (WCAG 2.5.5 AAA recommendation) */
@media (pointer: coarse) {
  button, a.btn, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}
