/* ============================================================
   THEME TOKENS — WhatsApp dark + friendly typography
   Loaded after Tailwind CDN + inline <style> blocks so it wins.

   Goal: keep the cinematic hero animations (aurora, beam,
   mouse glow, particles, conic CTA, glow cards) but rebrand
   their colours to the WhatsApp palette (teal / green / dark
   teal) so the site stays unique and on-brand.

   Tipografia: Outfit (geometric rounded display H1-H3) +
   Manrope (friendly geometric body) cu scale clamp()
   major-third 1.250 si tabular-nums pe numere/preturi.
   Pastel chips colorate raman flatten.

   Background: layer global de ceata pe body::before
   folosind onboarding-bg.webp (line-art icons), blur subtle
   + drift lent. body::after ramane rezervat pentru noise
   inline din fiecare pagina (suprimat aici).
   ============================================================ */

:root {
  /* WhatsApp dark palette — replaces warm cream + cold black */
  --bg: #0b141a;            /* WhatsApp chat background */
  --bg-elev: #111b21;       /* WhatsApp panel / surfaces 1 step up */
  --bg-elev-2: #182229;     /* WhatsApp date chip / surfaces 2 steps up */
  --card: #111b21;
  --panel: #202c33;         /* WhatsApp header */
  --line: #2a3942;          /* WhatsApp hairline */

  --ink: #e9edef;           /* WhatsApp primary text (alb-grey) */
  --ink-soft: rgba(233, 237, 239, 0.78);
  --muted: #8696a0;         /* WhatsApp secondary text */
  --muted-2: rgba(134, 150, 160, 0.65);
  --hairline: rgba(233, 237, 239, 0.08);
  --hairline-strong: rgba(233, 237, 239, 0.16);

  /* Brand — WhatsApp green family */
  --brand: #25D366;         /* WA primary green */
  --brand-ink: #ffffff;
  --brand-soft: rgba(37, 211, 102, 0.14);
  --teal: #00A884;          /* WA teal CTA */
  --teal-dk: #017a61;       /* WA teal dark hover */
  --green-dk: #128C7E;      /* WA dark green */
  --green-bubble: #005c4b;  /* WA outgoing bubble */

  /* Type scale — major third 1.250 */
  --fs-h1: clamp(40px, 6vw, 74px);
  --fs-h2: clamp(32px, 4.5vw, 58px);
  --fs-h3: clamp(26px, 3.4vw, 46px);
  --fs-h4: 28px;
  --fs-h5: 22px;
  --fs-h6: 18px;

  --font-display: 'Outfit', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

/* Light theme — kept ready but not auto-activated */
[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --bg-elev-2: #f0f2f5;
  --card: #ffffff;
  --panel: #f0f2f5;
  --line: #d1d7db;
  --ink: #111827;
  --ink-soft: rgba(17, 24, 39, 0.78);
  --muted: #4b5563;
  --muted-2: rgba(75, 85, 99, 0.65);
  --hairline: rgba(17, 24, 39, 0.08);
  --hairline-strong: rgba(17, 24, 39, 0.16);
}

/* ============================================================
   BASE — body font, color, smoothing
   ============================================================ */
html, body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
}
body {
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "calt";
}

/* Tabular numerics where it matters */
.price, .num, .stat, .counter, .ep-pg-cat-price, .ep-pg-card-price,
.ep-pg-svc-price, .ep-pg-cart-info strong,
strong.tabular, code, kbd, samp,
[data-counter], [data-num] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ============================================================
   TYPOGRAPHY — friendly geometric sans (Outfit display + Manrope body)
   Outfit: geometric rounded edges, very approachable
   Manrope: clean geometric body, very readable
   Trackings sunt mai blande decat la un serif: geometric sans
   nu necesita -0.025em — folosim -0.018em / -0.014em / -0.01em.
   ============================================================ */
h1, h2, h3,
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1, .h1, body h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.05 !important;
  letter-spacing: -0.018em !important;
}
h2, .h2, body h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1 !important;
  letter-spacing: -0.014em !important;
}
h3, .h3, body h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
}

/* H4-H6 stay body family (Manrope), semibold, sentence-case */
h4, h5, h6 {
  font-family: var(--font-body);
  letter-spacing: -0.005em;
  font-weight: 600;
}

/* Reset any Tailwind utility that previously bumped headings to extrabold sans;
   for Outfit, 700 reads as confident-but-friendly (vs 800/900 which feel heavy) */
h1.font-extrabold, h2.font-extrabold, h3.font-extrabold,
h1.font-black, h2.font-black, h3.font-black {
  font-weight: 700;
}

/* ============================================================
   HERO REBRAND — keep all animations, repaint to WhatsApp palette
   (aurora, beam, mouse glow, particles, conic CTA, glow card)
   ============================================================ */

/* Aurora layer A — soft green */
.hero-mesh::before {
  background: radial-gradient(
    ellipse 80% 50%,
    rgba(37, 211, 102, 0.15) 0%,
    transparent 60%
  ) !important;
}

/* Aurora layer B — medium teal */
.hero-mesh::after {
  background: radial-gradient(
    ellipse 60% 40%,
    rgba(0, 168, 132, 0.18) 0%,
    transparent 60%
  ) !important;
}

/* Aurora layer C — dark teal centre */
.hero-aurora-c {
  background: radial-gradient(
    ellipse 50% 60%,
    rgba(18, 140, 126, 0.12) 0%,
    transparent 60%
  ) !important;
}

/* Light beam — keep WA green tint, just ensure it stays on brand */
.hero-beam {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(37, 211, 102, 0.04) 30%,
    rgba(0, 168, 132, 0.08) 50%,
    rgba(37, 211, 102, 0.04) 70%,
    transparent 100%
  ) !important;
}

/* Mouse glow — teal halo following cursor */
.hero-mouse-glow {
  background: radial-gradient(
    circle,
    rgba(0, 168, 132, 0.12) 0%,
    transparent 70%
  ) !important;
}

/* Particles — brand green */
.hero-particle {
  background: rgba(37, 211, 102, 0.35) !important;
}

/* ============================================================
   GRADIENT TEXT — shimmer animat in paleta WhatsApp
   ============================================================ */
.gradient-text {
  background: linear-gradient(
    90deg,
    #00A884 0%,
    #25D366 25%,
    #128C7E 50%,
    #25D366 75%,
    #00A884 100%
  ) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  /* keep the existing shimmerGradient keyframes from index.html */
}

/* ============================================================
   CTA — conic gradient rotating border in WhatsApp greens
   ============================================================ */
.glow-btn::before {
  background: conic-gradient(
    from var(--border-angle, 0deg),
    #00A884,
    #25D366,
    #128C7E,
    #00A884
  ) !important;
  /* keep borderRotate animation from index.html */
}

/* ============================================================
   GLOW CARDS — teal halo, calm but present
   ============================================================ */
.glow-card {
  background-color: rgba(17, 27, 33, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  /* preserve transition + backdrop-filter from index.html */
}
.glow-card:hover {
  border-color: rgba(0, 168, 132, 0.35) !important;
  box-shadow:
    0 0 40px rgba(0, 168, 132, 0.10),
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 168, 132, 0.18) !important;
  background-color: rgba(17, 27, 33, 0.85) !important;
}

/* Bento module cards — teal accent on hover */
#awesome-features .grid > div:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(0, 168, 132, 0.08) !important;
}

/* Counter shimmer skeleton — brand-tinted shimmer */
.counter-shimmer {
  background: linear-gradient(
    90deg,
    rgba(37, 211, 102, 0.10) 25%,
    rgba(37, 211, 102, 0.22) 50%,
    rgba(37, 211, 102, 0.10) 75%
  ) !important;
}

/* Scroll progress bar — single solid brand */
#scrollProgress {
  background: var(--brand) !important;
}

/* ============================================================
   FLOW MODAL TIMELINE — keep brand line
   ============================================================ */
.flow-timeline::before {
  background: linear-gradient(to bottom, var(--brand), rgba(37, 211, 102, 0.1)) !important;
}

/* ============================================================
   PASTEL CHIP FLATTENING — neutralise tinted backgrounds on
   utility classes. Functional dots/pills with semantic color
   stay (flow-step-dot.green/.blue/.amber/.purple, ai-pill.active).
   ============================================================ */

/* Flatten Tailwind 400-tone tint backgrounds on small chips */
[class*="bg-green-400/"], [class*="bg-emerald-400/"],
[class*="bg-blue-400/"], [class*="bg-cyan-400/"],
[class*="bg-amber-400/"], [class*="bg-yellow-400/"],
[class*="bg-purple-400/"], [class*="bg-pink-400/"],
[class*="bg-violet-400/"], [class*="bg-fuchsia-400/"] {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Soften the most off-brand text colours on small labels (purple/pink/violet)
   to muted; brand greens stay. */
.text-purple-400, .text-fuchsia-400, .text-pink-400, .text-violet-400 {
  color: var(--muted) !important;
}

/* ============================================================
   COLOR MAPPING — softer ink for text-white / text-gray-*
   so headings don't stab in pure white on the WA dark bg
   ============================================================ */
.text-white {
  color: var(--ink) !important;
}
.text-gray-100, .text-gray-200 {
  color: rgba(233, 237, 239, 0.94) !important;
}
.text-gray-300 {
  color: rgba(233, 237, 239, 0.78) !important;
}
.text-gray-400 {
  color: var(--muted) !important;
}
.text-gray-500 {
  color: rgba(134, 150, 160, 0.78) !important;
}
.text-gray-600 {
  color: rgba(134, 150, 160, 0.55) !important;
}

/* Bring brand green link/button accents to the single brand token */
.text-\[\#25D366\] {
  color: var(--brand) !important;
}
.bg-\[\#25D366\] {
  background-color: var(--brand) !important;
  color: var(--brand-ink) !important;
}
.hover\:bg-\[\#1ebe5c\]:hover {
  background-color: #1ebe5c !important;
}
.border-\[\#25D366\] {
  border-color: var(--brand) !important;
}
.hover\:text-\[\#25D366\]:hover {
  color: var(--brand) !important;
}

/* Repaint the cold #030712 sections to the WA bg */
.bg-\[\#030712\] {
  background-color: var(--bg) !important;
}
.bg-\[\#111827\]\/60 {
  background-color: rgba(17, 27, 33, 0.6) !important;
}

/* ============================================================
   ANCHOR + LINK — calm
   ============================================================ */
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

/* ============================================================
   NOISE — pastram body::after inline (grunge overlay subtil pe
   z-index:9999) — adauga textura discreta peste tot. Nu mai
   facem display:none pentru ca pattern-ul nostru sta pe ::before
   (alt strat, sub continut), nu intra in conflict.
   ============================================================ */

/* ============================================================
   BACKGROUND GLOBAL — mesh ambient elegant fix-fixed pe viewport
   ============================================================
   Strategie:
   - Fundamentul site-ului ramane WhatsApp dark (#0b141a).
   - Peste, un mesh organic compus din 5 radial-gradients teal/green
     plasate pe colturi/centru cu blur-uri si dimensiuni diferite.
   - Plus un strat fin de noise SVG fractal (textura discreta) care
     impiedica banding-ul gradientelor pe ecrane OLED.
   - Animatie aurora-drift super-lenta (90s) pentru senzatia de
     „atmosfera vie" fara distrageri.
   - Sectiunile cu bg-[#030712] / bg-[#0a0f1a] din index.html sunt
     fortate la transparenta ca mesh-ul sa se vada peste tot site-ul,
     nu doar in hero.

   z-index: 0 — pattern stratificat sub TOT continutul.
   ============================================================ */
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  position: relative;
  isolation: isolate;
  background: transparent;
}

/* Layer 1 — mesh organic radial cu accente teal/green (fix pe viewport, drift lent) */
body::before {
  content: '';
  position: fixed;
  inset: -8vw;
  z-index: -2;
  pointer-events: none;

  background-color: #0b141a;
  background-image:
    radial-gradient(ellipse 50% 40% at 12% 18%, rgba(0, 168, 132, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 88% 22%, rgba(37, 211, 102, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(18, 140, 126, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 55% at 18% 90%, rgba(0, 168, 132, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 92% 88%, rgba(37, 211, 102, 0.09) 0%, transparent 60%);
  background-blend-mode: screen, screen, screen, screen, normal;
  filter: blur(2px) saturate(1.05);

  will-change: transform;
  animation: bg-mesh-drift 90s ease-in-out infinite alternate;
}

/* Layer 2 — noise SVG fractal subtle pentru textura, anti-banding pe gradiente */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* Aurora drift — 90s super-slow, abia perceptibil */
@keyframes bg-mesh-drift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  33%  { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  66%  { transform: scale(1.05) translate3d(1.2%, 0.8%, 0); }
  100% { transform: scale(1.04) translate3d(-0.6%, 0.4%, 0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
}

/* Mobile: pastram mesh + noise, oprim drift pentru baterie */
@media (max-width: 640px) {
  body::before {
    animation: none;
    filter: blur(3px) saturate(1.05);
  }
}

/* ============================================================
   FANCY DECORATIVE LAYERS — adaugat global pentru excentric/fancy
   ============================================================
   3 layere extra peste mesh:
   1. Floating blobs (3 cercuri mari blur, drift independent — adauga „atmosphere")
   2. Constellation dots (puncte mici teal cu pulse — luminite ambient)
   3. Diagonal lines/streaks (mai expressive)

   Toate sunt fixed pe viewport, pointer-events: none, sub continut.
   ============================================================ */

/* Container global pentru floating blobs — injectat via JS sau static in body */
.fancy-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* 3 blobs animate independent */
.fancy-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  will-change: transform;
}
.fancy-blob-1 {
  width: 520px;
  height: 520px;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, #00A884 0%, transparent 70%);
  animation: blob-drift-1 28s ease-in-out infinite alternate;
}
.fancy-blob-2 {
  width: 640px;
  height: 640px;
  top: 35%;
  right: -12%;
  background: radial-gradient(circle, #25D366 0%, transparent 70%);
  opacity: 0.18;
  animation: blob-drift-2 36s ease-in-out infinite alternate;
}
.fancy-blob-3 {
  width: 480px;
  height: 480px;
  bottom: -8%;
  left: 30%;
  background: radial-gradient(circle, #128C7E 0%, transparent 70%);
  opacity: 0.20;
  animation: blob-drift-3 42s ease-in-out infinite alternate;
}

@keyframes blob-drift-1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(30px, 60px, 0) scale(1.08); }
  100% { transform: translate3d(-20px, 40px, 0) scale(0.95); }
}
@keyframes blob-drift-2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-50px, -30px, 0) scale(1.1); }
  100% { transform: translate3d(40px, 20px, 0) scale(0.92); }
}
@keyframes blob-drift-3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(60px, -50px, 0) scale(1.05); }
  100% { transform: translate3d(-30px, 30px, 0) scale(0.98); }
}

/* Constellation dots — particles statice (12 dots) cu twinkle pulse */
.fancy-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(37,211,102,0.5), transparent),
    radial-gradient(1px 1px at 22% 65%, rgba(0,168,132,0.4), transparent),
    radial-gradient(1px 1px at 35% 30%, rgba(233,237,239,0.35), transparent),
    radial-gradient(1px 1px at 48% 78%, rgba(37,211,102,0.45), transparent),
    radial-gradient(1px 1px at 58% 12%, rgba(0,168,132,0.5), transparent),
    radial-gradient(2px 2px at 65% 55%, rgba(37,211,102,0.3), transparent),
    radial-gradient(1px 1px at 72% 88%, rgba(233,237,239,0.4), transparent),
    radial-gradient(1px 1px at 82% 42%, rgba(0,168,132,0.4), transparent),
    radial-gradient(1px 1px at 90% 8%, rgba(37,211,102,0.5), transparent),
    radial-gradient(1px 1px at 92% 70%, rgba(233,237,239,0.3), transparent),
    radial-gradient(1px 1px at 5% 88%, rgba(0,168,132,0.4), transparent),
    radial-gradient(1px 1px at 78% 25%, rgba(37,211,102,0.35), transparent);
  background-size: 100% 100%;
  animation: stars-twinkle 8s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  0%   { opacity: 0.7; }
  50%  { opacity: 1; }
  100% { opacity: 0.55; }
}

/* Diagonal streak/line — un singur element decorativ subtle, traverseaza pagina */
.fancy-streak {
  position: fixed;
  top: 20%;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,168,132,0.4) 30%, rgba(37,211,102,0.3) 70%, transparent 100%);
  transform: rotate(-12deg);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(0.5px);
  animation: streak-shift 12s ease-in-out infinite alternate;
}
.fancy-streak::after {
  content: '';
  position: absolute;
  top: 30vh;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37,211,102,0.25) 50%, transparent 100%);
  transform: rotate(8deg) translateY(40vh);
}
@keyframes streak-shift {
  0%   { transform: rotate(-12deg) translateX(0); opacity: 0.4; }
  100% { transform: rotate(-10deg) translateX(40px); opacity: 0.6; }
}

/* Reduced motion + mobile: opreste animatiile blobs/stars/streak */
@media (prefers-reduced-motion: reduce) {
  .fancy-blob, .fancy-stars, .fancy-streak { animation: none !important; }
}
@media (max-width: 640px) {
  .fancy-blob { animation-duration: 60s; opacity: 0.15; filter: blur(60px); }
  .fancy-blob-2, .fancy-blob-3 { display: none; }
  .fancy-stars { animation: none; opacity: 0.5; }
  .fancy-streak { display: none; }
}

/* ============================================================
   FORTAM SECTIUNILE LA TRANSPARENT — ca mesh-ul global sa se
   vada PESTE TOT site-ul (nu doar hero). Tailwind classes
   bg-[#030712] / bg-[#0a0f1a] / bg-gray-900 sunt suprascrise
   cu un overlay subtle elev (gradient vertical alpha) care
   pastreaza diferentierea intre sectiuni vizual fara sa taie
   mesh-ul.
   ============================================================ */
section[class*="bg-[#030712]"],
section[class*="bg-[#0a0f1a]"],
section.bg-gray-900,
section.bg-gray-950,
section[class*="bg-zinc-9"] {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(11, 20, 26, 0.55) 0%, rgba(11, 20, 26, 0.35) 50%, rgba(11, 20, 26, 0.55) 100%) !important;
}
/* sectiunile alterne (#0a0f1a) primesc un overlay usor diferit pentru rythm */
section[class*="bg-[#0a0f1a]"] {
  background-image: linear-gradient(180deg, rgba(11, 20, 26, 0.45) 0%, rgba(17, 27, 33, 0.35) 50%, rgba(11, 20, 26, 0.45) 100%) !important;
}
/* hero & footer: complet transparent ca aurora si mesh sa se vada plenar */
#slider-area, footer { background-color: transparent !important; }

/* ============================================================
   PHONE MOCKUP — DO NOT TOUCH .ep-* WhatsApp clone classes.
   They are an intentional faithful reproduction of the WA UI
   and must keep their original colours/sizes. Font reset pe
   .ep-phone * (in phone-mockup.css) ramane intact: -apple-system
   fallback chain, NU Outfit/Manrope leak inauntru.
   ============================================================ */
