/* ═══════════════════════════════════════════
   CleverApp Lads SRL — Shared Stylesheet
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --bg:          #0C0C0F;
  --bg-2:        #101014;
  --bg-card:     #13131A;
  --fg:          #EEEAE0;
  --fg-muted:    #7A7A8C;
  --fg-dim:      rgba(238,234,224,0.3);
  --accent:      #14B8A6;
  --accent-soft: rgba(20,184,166,0.1);
  --accent-warm: #F97316;
  --border:      rgba(238,234,224,0.07);
  --border-hi:   rgba(238,234,224,0.14);
  --font-d:      'Barlow Condensed', sans-serif;
  --font-s:      'IBM Plex Serif', serif;
  --font-m:      'IBM Plex Mono', monospace;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-m);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  opacity: 0;
  animation: pageIn .45s var(--ease-out) forwards;
}
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: inherit; }
img { display: block; max-width: 100%; }

@keyframes pageIn { to { opacity: 1; } }

/* ── Noise grain overlay ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: .6;
}

/* ── Custom Cursor ── */
#cur {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s;
  will-change: left, top;
}
#cur-r {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%); opacity: .4;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), border-color .2s, opacity .2s;
  will-change: left, top;
}
body.ptr #cur  { width: 5px; height: 5px; background: var(--accent-warm); }
body.ptr #cur-r { width: 52px; height: 52px; border-color: var(--accent-warm); opacity: .2; }

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 64px;
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
nav.stuck {
  background: rgba(12,12,15,.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  padding: 17px 64px;
}
.logo {
  font-family: var(--font-d);
  font-size: 18px; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
  line-height: 1;
}
.logo em { color: var(--accent); font-style: normal; }
.logo small {
  display: block; font-size: 8px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--fg-muted);
  font-family: var(--font-m); font-weight: 400;
  margin-top: 2px;
}
.nav-list { display: flex; gap: 34px; list-style: none; }
.nav-list a {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-muted); position: relative; transition: color .2s;
}
.nav-list a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width .2s;
}
.nav-list a:hover,
.nav-list a.active { color: var(--fg); }
.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

.nav-btn {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  background: var(--fg); color: var(--bg);
  border: none; padding: 11px 24px; cursor: none;
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-btn:hover { background: var(--accent); color: #fff; }

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 14px;
  padding: 4px;
  border: 1px solid var(--border-hi);
  background: rgba(16, 16, 20, 0.72);
  backdrop-filter: blur(10px);
}
.lang-switch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(79,114,255,.08), rgba(232,160,48,.06));
  pointer-events: none;
}
.lang-switch-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 7px 9px;
  min-width: 38px;
  cursor: none;
  transition: color .22s, background .22s;
}
.lang-switch-btn:hover { color: var(--fg); }
.lang-switch-btn.active {
  color: var(--fg);
  background: rgba(79,114,255,.22);
}


/* Mobile toggle */
.mob-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.mob-btn span { display: block; width: 24px; height: 1px; background: var(--fg); transition: transform .25s, opacity .25s; }
.mob-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mob-btn.open span:nth-child(2) { opacity: 0; }
.mob-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 750;
  background: var(--bg); flex-direction: column;
  align-items: center; justify-content: center; gap: 36px;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  font-family: var(--font-d); font-size: 48px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted);
  transition: color .2s;
}
.mob-menu a:hover { color: var(--fg); }
.mob-menu a.active { color: var(--accent); }

/* ── Footer ── */
footer {
  padding: 64px; border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.f-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px; margin-bottom: 56px;
}
.f-brand {}
.f-brand .logo { margin-bottom: 14px; }
.f-tagline { font-family: var(--font-s); font-size: 14px; color: var(--fg-muted); line-height: 1.7; max-width: 220px; }
.f-col-title { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 18px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.f-col ul a { font-size: 13px; color: var(--fg-muted); transition: color .2s; }
.f-col ul a:hover { color: var(--fg); }
.f-contact-item { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.f-contact-item:last-child { margin-bottom: 0; }
.f-contact-lbl { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); }
.f-contact-val { font-size: 13px; color: var(--fg-muted); transition: color .2s; }
.f-contact-val:hover { color: var(--fg); }
.f-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.f-copy { font-size: 10px; color: var(--fg-muted); }
.f-socials { display: flex; gap: 20px; }
.f-socials a { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); transition: color .2s; }
.f-socials a:hover { color: var(--fg); }
.f-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.f-legal a {
  font-size: 10px;
  color: var(--fg-muted);
  text-decoration: underline;
}
.f-legal-meta {
  font-size: 10px;
  color: var(--fg-muted);
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  background: rgba(16, 16, 20, 0.96);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(14px);
  padding: 16px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s var(--ease-out), opacity .25s var(--ease-out);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__text {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 760px;
}
.cookie-banner__text a {
  color: var(--fg);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  border: 1px solid var(--border-hi);
  background: transparent;
  color: var(--fg);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: none;
}
.cookie-btn--accept {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.cookie-btn--accept:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cookie-btn--decline:hover {
  border-color: var(--fg);
}

/* ── Ticker / Marquee ── */
.ticker {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 13px 0; overflow: hidden; background: var(--bg-2);
}
.ticker-inner {
  display: flex; white-space: nowrap;
  animation: tickerRun 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerRun { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.t-item {
  display: inline-flex; align-items: center; gap: 24px; padding: 0 32px;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted);
}
.t-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── Page Banner (inner pages) ── */
.page-banner {
  min-height: 56vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 88px 64px 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.pb-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 60%, black 20%, transparent 100%);
}
.pb-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  opacity: 0; animation: fadeUp .6s var(--ease-out) .15s forwards;
}
.pb-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.pb-title {
  font-family: var(--font-d);
  font-size: clamp(64px, 9vw, 140px);
  font-weight: 900; text-transform: uppercase;
  line-height: .87; letter-spacing: -.01em;
}
.pb-line { display: block; overflow: hidden; }
.pb-line span { display: block; transform: translateY(110%); animation: lineUp .8s var(--ease-out) forwards; }
.pb-line:nth-child(1) span { animation-delay: .1s; }
.pb-line:nth-child(2) span { animation-delay: .2s; }
.pb-sub {
  margin-top: 24px; font-family: var(--font-s);
  font-size: 16px; color: var(--fg-muted); line-height: 1.7; max-width: 480px;
  opacity: 0; animation: fadeUp .7s var(--ease-out) .35s forwards;
}

/* ── Section utilities ── */
section { padding: 110px 64px; scroll-margin-top: 80px; }

.s-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.s-label::before { content: attr(data-n); color: var(--fg-dim); }
.s-title {
  font-family: var(--font-d);
  font-size: clamp(46px, 6vw, 90px);
  font-weight: 900; text-transform: uppercase;
  line-height: .88; letter-spacing: -.01em;
}
.s-title em { font-style: italic; color: var(--accent); }

/* ── Scroll reveal ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.rv.on { opacity: 1; transform: translateY(0); }
.rv-2 { transition-delay: .1s; }
.rv-3 { transition-delay: .2s; }
.rv-4 { transition-delay: .3s; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fg); color: var(--bg);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 28px; border: none; cursor: none;
  transition: background .22s, color .22s;
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; color: var(--fg-muted);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  padding: 13px 27px; border: 1px solid var(--border-hi); cursor: none;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }

/* ── Animations ── */
@keyframes lineUp   { to { transform: translateY(0); } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes orbFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-26px)} }
@keyframes scrollP  { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }

/* ── Divider line ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── CTA Strip ── */
.cta-strip {
  padding: 100px 64px; background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.cta-strip h2 {
  font-family: var(--font-d); font-size: clamp(40px, 5vw, 76px);
  font-weight: 900; text-transform: uppercase; line-height: .9;
}
.cta-strip h2 em { color: var(--accent); font-style: italic; }
.cta-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  nav.stuck { padding: 14px 32px; }
  .nav-list, .nav-btn { display: none; }
  .lang-switch { margin-left: auto; margin-right: 12px; }
  .lang-switch-btn { min-width: 34px; padding: 6px 8px; }
  .mob-btn { display: flex; }
  section { padding: 72px 28px; }
  .page-banner { padding: 80px 28px 60px; min-height: 48vh; }
  footer { padding: 48px 28px; }
  .f-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-strip { padding: 72px 28px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .f-top { grid-template-columns: 1fr; gap: 32px; }
  .f-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .f-legal { align-items: center; text-align: center; }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  #cur, #cur-r { display: none !important; }
}
