:root {
  --ink: #080808;
  --paper: #f5f6fa;
  --white: #ffffff;
  --muted: #666a73;
  --line: #dfe2e9;
  --purple: #b64cff;
  --blue: #169de8;
  --gradient: linear-gradient(135deg, var(--purple), var(--blue));
  --shadow: 10px 10px 0 var(--ink);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(182,76,255,.08), transparent 25rem),
    radial-gradient(circle at 100% 20%, rgba(22,157,232,.08), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { color: #fff; background: var(--ink); }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 9999;
  padding: .8rem 1rem; color: #fff; background: var(--ink);
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1rem; font-size: .76rem; font-weight: 850;
  letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2rem; height: 3px; background: var(--gradient); }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(245,246,250,.88);
  border-bottom: 1px solid rgba(8,8,8,.14);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand img { width: 60px; height: 60px; object-fit: contain; flex: 0 0 auto; }
.brand span { font-size: .98rem; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { padding: .65rem .8rem; text-decoration: none; font-weight: 750; font-size: .92rem; }
.nav-links a:hover, .nav-links a:focus-visible { background: #fff; outline: 2px solid var(--ink); outline-offset: -2px; }
.nav-cta { color: #fff !important; background: var(--ink); border: 2px solid var(--ink); }
.nav-cta:hover, .nav-cta:focus-visible { color: var(--ink) !important; background: var(--gradient) !important; }
.menu-toggle { display: none; border: 2px solid var(--ink); background: #fff; padding: .6rem .7rem; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; background: var(--ink); margin: 4px 0; }

.hero { padding: clamp(4rem, 9vw, 8rem) 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3.2rem, 7vw, 6.8rem); line-height: .91; letter-spacing: -.075em; }
.hero-copy { max-width: 650px; margin: 1.6rem 0 0; color: #3e4148; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.15rem; border: 2px solid var(--ink);
  text-decoration: none; font-weight: 850; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary { color: #fff; background: var(--ink); }
.btn-primary:hover { color: var(--ink); background: var(--gradient); }
.btn-secondary { background: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin-top: 2.1rem; color: var(--muted); font-size: .88rem; font-weight: 650; }
.hero-meta span::before { content: "•"; margin-right: .55rem; color: var(--purple); }

.logo-stage {
  position: relative; min-height: 470px; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); overflow: hidden;
}
.logo-stage::before {
  content: ""; position: absolute; width: 225px; height: 225px; right: -45px; top: -52px;
  background: var(--gradient); transform: rotate(12deg);
}
.logo-stage::after {
  content: "PEJ.MD"; position: absolute; left: -2px; bottom: -18px;
  font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 950; line-height: 1;
  letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 2px rgba(8,8,8,.16);
}
.logo-stage img { position: relative; z-index: 2; width: 82%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.08)); }

.ticker { margin-top: 4rem; border-block: 2px solid var(--ink); background: #fff; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { padding: .95rem 1.45rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 2.9rem; color: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker-track { animation: none; } }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .96; letter-spacing: -.055em; }
.section-intro { margin: 0; max-width: 650px; color: var(--muted); font-size: 1.08rem; }

.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.service-card {
  position: relative; min-height: 250px; padding: 1.35rem;
  background: #fff; border: 2px solid var(--ink); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translate(-4px,-4px); box-shadow: 7px 7px 0 var(--ink); }
.service-card:nth-child(1), .service-card:nth-child(2) { grid-column: span 3; }
.service-card:nth-child(n+3) { grid-column: span 2; }
.service-card::after {
  content: ""; position: absolute; width: 110px; height: 110px; right: -60px; bottom: -60px;
  background: var(--gradient); transform: rotate(45deg); opacity: .9;
}
.service-no { font-size: .75rem; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.service-card h3 { max-width: 380px; margin: 2.8rem 0 .75rem; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.08; letter-spacing: -.035em; }
.service-card p { margin: 0; color: var(--muted); max-width: 410px; }

.about-panel { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--ink); background: #fff; box-shadow: var(--shadow); }
.about-copy { padding: clamp(1.7rem, 5vw, 4.2rem); }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.fact-grid { display: grid; border-left: 3px solid var(--ink); }
.fact { padding: 1.8rem; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; justify-content: center; }
.fact:last-child { border-bottom: 0; }
.fact strong { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.04em; }
.fact span { margin-top: .55rem; color: var(--muted); }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: #fff; }
.process-step { padding: 1.7rem; min-height: 240px; border-right: 2px solid var(--ink); }
.process-step:last-child { border-right: 0; }
.process-step b { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--ink); }
.process-step h3 { margin: 3.2rem 0 .65rem; font-size: 1.5rem; letter-spacing: -.035em; }
.process-step p { margin: 0; color: var(--muted); }

.contact-shell { display: grid; grid-template-columns: .84fr 1.16fr; border: 3px solid var(--ink); background: #fff; box-shadow: var(--shadow); }
.contact-aside { padding: clamp(1.7rem, 4vw, 3.2rem); color: #fff; background: var(--ink); }
.contact-aside h2 { margin: 0 0 1rem; }
.contact-aside p { color: #c8cad0; }
.contact-email { display: inline-block; margin-top: 1.2rem; font-size: clamp(1.2rem, 2.3vw, 1.8rem); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-form { padding: clamp(1.7rem, 4vw, 3.2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .42rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .88rem; }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0; outline: none;
}
.field input:focus, .field textarea:focus { box-shadow: 4px 4px 0 var(--purple); }
.field textarea { min-height: 140px; resize: vertical; }
.check-row { display: flex; align-items: flex-start; gap: .7rem; margin: 1rem 0; font-size: .88rem; color: var(--muted); }
.check-row input { margin-top: .3rem; accent-color: var(--ink); }
.form-note { margin: .75rem 0 0; color: var(--muted); font-size: .82rem; }

.legal-hero { padding: clamp(3.8rem, 8vw, 6.8rem) 0 2.5rem; }
.legal-hero h1 { margin: 0; max-width: 900px; font-size: clamp(3rem, 7vw, 6rem); line-height: .92; letter-spacing: -.065em; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.5rem; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: 6rem; }
.legal-toc { position: sticky; top: 105px; padding: 1rem; border: 2px solid var(--ink); background: #fff; }
.legal-toc strong { display: block; margin-bottom: .7rem; }
.legal-toc a { display: block; padding: .35rem 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.legal-toc a:hover { color: var(--ink); }
.legal-content { background: #fff; border: 2px solid var(--ink); padding: clamp(1.4rem, 4vw, 3.3rem); }
.legal-content section { scroll-margin-top: 110px; padding: 0 0 2.1rem; margin: 0 0 2.1rem; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.035em; }
.legal-content h3 { margin-top: 1.4rem; }
.legal-content p, .legal-content li { color: #444850; }
.legal-content ul { padding-left: 1.2rem; }
.notice { padding: 1rem 1.1rem; border-left: 5px solid var(--purple); background: #f4efff; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.data-table th, .data-table td { border: 1px solid var(--ink); padding: .75rem; vertical-align: top; text-align: left; }
.data-table th { background: var(--paper); }

.site-footer { padding: 2.5rem 0; color: #fff; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 2rem; }
.footer-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  filter: none;
  object-fit: contain;
}
.footer-copy { color: #aeb1b8; max-width: 480px; }
.footer-links { display: grid; align-content: start; gap: .55rem; }
.footer-links strong { margin-bottom: .45rem; }
.footer-links a { color: #cfd1d6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #34343a; color: #8f9299; font-size: .86rem; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 77px;
    flex-direction: column; align-items: stretch; padding: .7rem; background: #fff;
    border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .hero-grid, .about-panel, .contact-shell, .section-head { grid-template-columns: 1fr; }
  .logo-stage { min-height: 390px; order: -1; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card:nth-child(1), .service-card:nth-child(2), .service-card:nth-child(n+3) { grid-column: span 1; }
  .fact-grid { border-left: 0; border-top: 3px solid var(--ink); }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 2px solid var(--ink); }
  .process-step:last-child { border-bottom: 0; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer-logo {
    width: 190px;
  }
  .container { width: min(calc(100% - 1.2rem), var(--max)); }
  .brand span { display: none; }
  .hero { padding-top: 2.4rem; }
  .hero h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
  .logo-stage { min-height: 300px; box-shadow: 6px 6px 0 var(--ink); }
  .services-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .service-card { min-height: 215px; }
  .about-panel, .contact-shell { box-shadow: 6px 6px 0 var(--ink); }
  .footer-bottom { flex-direction: column; }
  .data-table { display: block; overflow-x: auto; }
}

/* UseBasin — mesaje de succes și eroare în stilul PEJ */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.form-status {
  position: relative;
  min-width: 0;
  min-height: 510px;
  padding: clamp(2rem, 5vw, 4.2rem);
  overflow: hidden;
  background: #fff;
}

.form-status::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 10px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.form-status::after {
  content: "PEJ";
  position: absolute;
  right: -.04em;
  bottom: -.27em;
  z-index: 0;
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px #dedfe4;
  pointer-events: none;
}

.status-card {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  max-width: 560px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.status-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 2rem;
  place-items: center;
  border: 3px solid var(--ink);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 7px 7px 0 var(--ink);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.form-status .eyebrow {
  margin-bottom: 1.1rem;
}

.form-status h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.status-copy {
  max-width: 520px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.form-status.is-error::before {
  width: 100%;
  background: var(--ink);
}

.form-status.is-error .status-icon {
  background: #fff;
  color: var(--ink);
}

.contact-form button[type="submit"]:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 760px) {
  .form-status {
    min-height: 420px;
    padding: 2rem 1.5rem 3.5rem;
  }

  .status-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1.6rem;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .form-status h3 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .status-actions {
    width: 100%;
  }

  .status-actions .btn {
    width: 100%;
    justify-content: center;
  }
}