/* BlueGrid — site de prezentare. Identitate: cyan #00E0FF / violet #8A6BFF pe #070C1A. */
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --bg: #070C1A;
  --cyan: #00E0FF;
  --violet: #8A6BFF;
  --white: #F4F8FF;
  --muted: #A3B1C6;
  --glass-bg: rgba(10, 16, 34, 0.52);
  --glass-border: rgba(0, 224, 255, 0.28);
  --font: "Geist", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; } /* snap-ul propriu face derularea lina */
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- film de fundal ---- */
.film {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  background: var(--bg);
}
.film-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(7,12,26,.55), transparent 18%, transparent 82%, rgba(7,12,26,.65)),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(7,12,26,.42));
}

/* ---- loader ---- */
.loader {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; transition: opacity .6s ease; 
}
.loader.done { opacity: 0; pointer-events: none; }
.loader-mark { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.loader-mark::first-letter { color: var(--white); }
.loader-bar { width: 220px; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.loader-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .25s ease; }
.loader-label { font-size: 12.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

/* ---- liquid glass ---- */
.glass {
  /* sticla stratificata: sheen de lumina sus-stanga + tenta rece jos-dreapta peste fundal semi-transparent */
  background:
    linear-gradient(165deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 34%, rgba(255,255,255,0) 58%),
    linear-gradient(320deg, rgba(0,224,255,.07), rgba(0,224,255,0) 42%),
    rgba(12, 19, 38, 0.42);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.06);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.06);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 1px 0 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(255,255,255,.04),
    0 24px 70px rgba(0,0,0,.5),
    0 0 40px rgba(0,224,255,.05);
}

/* ---- nav ---- */
.nav {
  position: fixed; z-index: 40;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100vw - 36px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  border-radius: 16px;
}
.nav-brand { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.nav-brand span { color: var(--cyan); }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px;
  padding: 7px 14px; border-radius: 10px;
  border: 1px solid transparent;
  transition: color .2s, background .25s, border-color .25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--cyan);
  background: rgba(0,224,255,.10);
  border-color: rgba(0,224,255,.25);
  box-shadow: 0 0 14px rgba(0,224,255,.12);
}
.nav-side { display: flex; gap: 12px; align-items: center; }
.lang-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.18); color: var(--muted);
  font: 600 12.5px var(--font); padding: 7px 12px; border-radius: 10px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--cyan); border-color: var(--glass-border); }
.talk-btn {
  background: linear-gradient(120deg, rgba(0,224,255,.16), rgba(138,107,255,.16));
  border: 1px solid var(--glass-border);
  color: var(--white); text-decoration: none;
  font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 10px;
  transition: box-shadow .25s;
}
.talk-btn:hover { box-shadow: 0 0 22px rgba(0,224,255,.25); }

/* ---- capitole ---- */
main { position: relative; z-index: 2; }
.chapter {
  min-height: 170vh;
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 34vh 5vw 0;
}
.chapter-hero { min-height: 195vh; align-items: flex-start; padding-top: 22vh; }
.chapter-outro { min-height: 100vh; align-items: center; justify-content: center; padding-top: 0; }

.card {
  width: min(660px, 94vw);
  padding: 34px 42px;
  opacity: 0; transform: translateY(46px);
  will-change: opacity, transform;
}
.card-right { margin-left: auto; margin-right: 2vw; }
.card-center { text-align: center; }
.card-hero { width: min(760px, 96vw); padding: 52px 56px; }

.kicker {
  color: var(--cyan); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
}
h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 17px; line-height: 1.55; margin-top: 14px; }
.card .lead { color: #C7D3E6; font-size: 17.5px; }
.card ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.card li {
  color: var(--muted); font-size: 16px; line-height: 1.5;
  padding-left: 26px; position: relative;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px rgba(0,224,255,.5);
}
.punch { color: var(--cyan) !important; font-weight: 600; font-size: 17px !important; }

.scroll-hint {
  margin-top: 30px; display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
}
.scroll-hint .arrow { animation: bob 1.6s ease-in-out infinite; color: var(--cyan); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.cta {
  display: inline-block; margin-top: 26px;
  color: var(--cyan); text-decoration: none;
  font-size: 21px; font-weight: 700; letter-spacing: .01em;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 3px;
}
.note { font-size: 12.5px !important; margin-top: 34px !important; opacity: .7; }

/* ---- formular de contact ---- */
.card-contact { width: min(560px, 94vw); text-align: center; padding: 28px 34px; }
.card-contact h2 { font-size: clamp(24px, 2.6vw, 32px); }
.card-contact .lead { font-size: 15.5px; margin-top: 8px; }
.card-contact .note { margin-top: 12px !important; }
.contact-form { margin-top: 16px; display: grid; gap: 10px; text-align: left; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white); font: 500 15px var(--font);
  outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(163,177,198,.75); }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--glass-border);
  box-shadow: 0 0 0 3px rgba(0,224,255,.12);
}
.cf-send {
  justify-self: center; margin-top: 4px;
  background: linear-gradient(120deg, rgba(0,224,255,.2), rgba(138,107,255,.2));
  border: 1px solid var(--glass-border); border-radius: 12px;
  color: var(--white); font: 600 15px var(--font);
  padding: 12px 34px; cursor: pointer;
  transition: box-shadow .25s, transform .15s;
}
.cf-send:hover { box-shadow: 0 0 26px rgba(0,224,255,.3); transform: translateY(-1px); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-ok.err { color: #FF8A8A !important; }
.cf-ok { color: var(--cyan) !important; font-size: 13.5px !important; margin-top: 2px !important; min-height: 18px; opacity: 0; transition: opacity .3s; text-align: center; }
.cf-ok.show { opacity: 1; }
.mail-link { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0,224,255,.3); }

/* ---- indicator de scroll ---- */
.scroll-cue {
  position: fixed; z-index: 30;
  left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  opacity: 1; transition: opacity .5s ease;
}
.scroll-cue.hidden { opacity: 0; }
.cue-icons { position: relative; width: 44px; height: 44px; }
.cue-mouse {
  width: 26px; height: 42px; border-radius: 14px;
  border: 2px solid rgba(0,224,255,.65);
  box-shadow: 0 0 18px rgba(0,224,255,.25), inset 0 0 8px rgba(0,224,255,.08);
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  animation: cue-alt-a 7s linear infinite;
}
.cue-pad {
  width: 40px; height: 30px; border-radius: 9px;
  border: 2px solid rgba(0,224,255,.65);
  box-shadow: 0 0 18px rgba(0,224,255,.25), inset 0 0 8px rgba(0,224,255,.08);
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  animation: cue-alt-b 7s linear infinite; opacity: 0;
}
.cue-pad::before, .cue-pad::after {
  content: ""; position: absolute; top: 5px;
  width: 4px; height: 9px; border-radius: 2px;
  background: var(--cyan);
  animation: cue-swipe 1.8s ease-in-out infinite;
}
.cue-pad::before { left: 12px; }
.cue-pad::after { right: 12px; animation-delay: .12s; }
@keyframes cue-swipe {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(9px); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
/* alternanta mouse <-> touchpad */
@keyframes cue-alt-a { 0%, 40% { opacity: 1; } 48%, 90% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes cue-alt-b { 0%, 40% { opacity: 0; } 48%, 90% { opacity: 1; } 98%, 100% { opacity: 0; } }
.cue-mouse::before {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  animation: cue-wheel 1.8s ease-in-out infinite;
}
@keyframes cue-wheel {
  0% { top: 7px; opacity: 1; }
  60% { top: 22px; opacity: 1; }
  100% { top: 26px; opacity: 0; }
}
.cue-chevrons { display: flex; flex-direction: column; align-items: center; margin-top: -2px; }
.cue-chevrons span {
  width: 10px; height: 10px; margin-top: -5px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  animation: cue-chev 1.8s ease-in-out infinite;
  opacity: 0;
}
.cue-chevrons span:nth-child(2) { animation-delay: .18s; }
@keyframes cue-chev {
  0% { opacity: 0; transform: rotate(45deg) translate(-4px,-4px); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(4px,4px); }
}
.cue-label {
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}

/* ---- mobil ---- */
@media (max-width: 760px) {
  .cf-row { grid-template-columns: 1fr; }
  .nav { padding: 10px 14px; }
  .nav-links { display: none; }
  .chapter { padding: 30vh 5vw 0; }
  .card, .card-right { margin: 0 auto; }
  .card { padding: 30px 26px; }
  .card li { font-size: 15.5px; }
  .card p { font-size: 16px; }
  .scroll-cue { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint .arrow { animation: none; }
  .cue-mouse::before, .cue-chevrons span, .cue-pad::before, .cue-pad::after, .cue-mouse, .cue-pad { animation: none; }
  html { scroll-behavior: auto; }
}
