/* ═══════════════════════════════════════════════════════════
   ROSCALAR SOFTWARE SRL · 2026 · style.css
   ═══════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  /* Light section defaults */
  --bg:          #F7F5F0;
  --bg-alt:      #FFFFFF;
  --bg-slate:    #F1F0EE;
  --surface:     #FFFFFF;
  --surface-2:   #F3F2EF;
  --border:      rgba(15,17,26,0.09);
  --border-hover:rgba(86,71,245,0.35);

  /* Dark section overrides (used via .dk class) */
  --dk-bg:       #0C0E1C;
  --dk-bg-2:     #10132A;
  --dk-surface:  #161A30;
  --dk-border:   rgba(255,255,255,0.08);
  --dk-text:     #F1F5F9;
  --dk-text-muted:#94A3B8;
  --dk-text-dim: #64748B;

  /* Brand */
  --primary:     #5647F5;
  --primary-dark:#4535E0;
  --primary-light:#7B6CF8;
  --accent:      #F0A500;
  --accent-dark: #D49200;

  /* Light text */
  --text:        #0F111A;
  --text-muted:  #6B7280;
  --text-dim:    #9CA3AF;

  /* Fonts */
  --font-body:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-head:   'Space Grotesk', system-ui, sans-serif;

  /* Misc */
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.12);
  --transition:  0.3s ease;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, button { font-family: inherit; font-size: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { color: var(--text-muted); }

/* Dark section typography overrides */
.dk h1, .dk h2, .dk h3, .dk h4 { color: var(--dk-text); }
.dk p { color: var(--dk-text-muted); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 6rem 0; }

/* ── DARK SECTION BASE ──────────────────────────────────── */
section.dk {
  background: var(--dk-bg);
  color: var(--dk-text);
}
section.dk p { color: var(--dk-text-muted); }

/* ── SHARED COMPONENTS ──────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(86,71,245,0.08);
  border: 1px solid rgba(86,71,245,0.2);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 1rem;
}
.dk .section-tag {
  background: rgba(86,71,245,0.15);
  border-color: rgba(86,71,245,0.3);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(86,71,245,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(86,71,245,0.45);
}
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(12,14,28,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 0.7rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo-primary { color: #fff; }
.logo-dot { color: var(--primary-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.btn-nav {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(86,71,245,0.4);
}
.btn-nav:hover { background: var(--primary-dark); box-shadow: 0 4px 20px rgba(86,71,245,0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ════════════════════════════════════════════════════════
   HERO — dark section
   ════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  background: var(--dk-bg);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(86,71,245,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86,71,245,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 450px;
  background: radial-gradient(ellipse at center, rgba(86,71,245,0.14) 0%, transparent 70%);
  pointer-events: none;
}
#hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dk-text-muted);
  border: 1px solid var(--dk-border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.03);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 8px #22C55E; }
  50%      { box-shadow: 0 0 18px #22C55E; }
}
#hero h1 { margin-bottom: 1.5rem; color: var(--dk-text); }
.hero-sub {
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  color: var(--dk-text-muted);
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dk-text);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--dk-text-dim); margin-top: 0.2rem; }
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--dk-border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--dk-text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--dk-text-dim), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════════════════════════════
   SERVICES — light cream section
   ════════════════════════════════════════════════════════ */
#servicii {
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(86,71,245,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(86,71,245,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(86,71,245,0.1), 0 0 0 1px rgba(86,71,245,0.08);
}
.service-card:hover::before { opacity: 1; }
.service-card--featured {
  background: linear-gradient(135deg, rgba(86,71,245,0.06) 0%, rgba(139,92,246,0.04) 100%);
  border-color: rgba(86,71,245,0.2);
}
.service-new-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: #000;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.service-icon {
  width: 48px; height: 48px;
  background: rgba(86,71,245,0.08);
  border: 1px solid rgba(86,71,245,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.05rem; color: var(--text); }
.service-card p { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════
   PORTFOLIO — white section, horizontal cards
   ════════════════════════════════════════════════════════ */
#portofoliu { background: var(--bg-alt); }

.portfolio-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Horizontal card: visual (55%) | info (45%), alternating */
.pcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 55% 45%;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.pcard:hover {
  border-color: rgba(86,71,245,0.25);
  box-shadow: 0 20px 60px rgba(86,71,245,0.08);
  transform: translateY(-3px);
}
/* Alternating: even cards flip visual to right */
.pcard--flip {
  grid-template-columns: 45% 55%;
}
.pcard--flip .pcard-visual {
  order: 2;
}
.pcard--flip .pcard-info {
  order: 1;
}

/* Case study card (MediStat) spans full and has special styling */
.pcard--case-study {
  grid-template-columns: 1fr;
  border-color: rgba(86,71,245,0.2);
  background: linear-gradient(135deg, #fafafe 0%, #f5f3ff 100%);
}

/* Visual area */
.pcard-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
  overflow: hidden;
}
.pcard-visual--blue   { background: linear-gradient(145deg, #0D1B3E 0%, #1A3460 100%); }
.pcard-visual--purple { background: linear-gradient(145deg, #160B30 0%, #2D1B69 100%); }
.pcard-visual--teal   { background: linear-gradient(145deg, #032A2A 0%, #0D4848 100%); }
.pcard-visual--orange { background: linear-gradient(145deg, #1E0D00 0%, #3D2000 100%); }
.pcard-visual--indigo { background: linear-gradient(145deg, #080820 0%, #181860 100%); }

.pcard-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  z-index: 2;
}

/* ── Browser mockup shell ───────────────────────────────── */
.pmock {
  width: 100%;
  background: rgba(6,8,18,0.82);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  font-size: 0.62rem;
}
.pmock-topbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pmock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.pmock-dot:nth-child(1) { background: #FF5F57; }
.pmock-dot:nth-child(2) { background: #FEBC2E; }
.pmock-dot:nth-child(3) { background: #28C840; }
.pmock-url {
  margin-left: 8px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  font-family: monospace;
}
.pmock-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ── CondoCheck mockup ──────────────────────────────────── */
.cc-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 6px 10px;
  color: rgba(255,255,255,0.5);
}
.cc-search-icon { font-size: 0.65rem; }
.cc-search-text { font-size: 0.6rem; flex: 1; }
.cc-search-btn {
  font-size: 0.55rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.cc-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.cc-chip {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(86,71,245,0.2);
  border: 1px solid rgba(86,71,245,0.3);
  color: #a8a0ff;
}
.cc-chip--neutral {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
}

.cc-cards { display: flex; gap: 7px; }
.cc-prop-card {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  overflow: hidden;
}
.cc-prop-img {
  height: 44px;
  background: linear-gradient(135deg, rgba(86,71,245,0.2) 0%, rgba(30,80,180,0.3) 100%);
  display: flex;
  align-items: flex-end;
  padding: 3px 5px;
}
.cc-dist-badge {
  font-size: 0.48rem;
  font-weight: 700;
  background: rgba(86,71,245,0.8);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}
.cc-prop-body { padding: 5px 6px; }
.cc-prop-name { font-size: 0.57rem; font-weight: 600; color: rgba(255,255,255,0.82); line-height: 1.3; margin-bottom: 2px; }
.cc-prop-price { font-size: 0.54rem; color: rgba(255,255,255,0.45); margin-bottom: 3px; }
.cc-stars { color: #F0A500; font-size: 0.52rem; }

/* ── WorkBetter mockup ──────────────────────────────────── */
.wb-header {
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 6px;
  padding: 6px 8px;
}
.wb-title { font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 3px; }
.wb-flags { font-size: 0.8rem; display: flex; gap: 3px; }
.wb-salary-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.06);
}
.wb-sal-label { font-size: 0.52rem; color: rgba(255,255,255,0.4); }
.wb-sal-val { font-size: 0.58rem; font-weight: 700; color: #86efac; }
.wb-sal-arrow { font-size: 0.6rem; color: rgba(255,255,255,0.3); flex: 1; text-align: center; }
.wb-sal-uk { font-size: 0.58rem; font-weight: 700; color: #93c5fd; }
.wb-jobs { display: flex; flex-direction: column; gap: 5px; }
.wb-job {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
}
.wb-job--accent {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.25);
}
.wb-job-flag { font-size: 0.75rem; }
.wb-job-info { flex: 1; }
.wb-job-title { font-size: 0.57rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.wb-job-company { font-size: 0.52rem; color: rgba(255,255,255,0.38); }
.wb-job-sal { font-size: 0.55rem; font-weight: 700; color: #86efac; }
.wb-apply {
  font-size: 0.5rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ── MediStat mockup ────────────────────────────────────── */
.ms-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 2px;
}
.ms-tab {
  font-size: 0.52rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  color: rgba(255,255,255,0.4);
}
.ms-tab--active {
  background: rgba(20,184,166,0.25);
  color: #5eead4;
}
.ms-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.ms-kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 5px 6px;
}
.ms-kpi--accent {
  background: rgba(20,184,166,0.1);
  border-color: rgba(20,184,166,0.2);
}
.ms-kpi-val {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-head);
  line-height: 1.2;
}
.ms-kpi--accent .ms-kpi-val { color: #5eead4; }
.ms-kpi-label {
  font-size: 0.45rem;
  color: rgba(255,255,255,0.38);
  margin-top: 2px;
  line-height: 1.3;
}
.ms-chart { background: rgba(255,255,255,0.03); border-radius: 6px; padding: 6px 8px; }
.ms-chart-title { font-size: 0.5rem; color: rgba(255,255,255,0.3); margin-bottom: 5px; }
.ms-bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.ms-bar {
  flex: 1;
  background: rgba(20,184,166,0.25);
  border-radius: 3px 3px 0 0;
  position: relative;
}
.ms-bar--hi { background: rgba(20,184,166,0.65); }
.ms-bar-label { position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%); font-size: 0.4rem; color: rgba(255,255,255,0.28); white-space: nowrap; }

/* ── CursuriPro mockup ──────────────────────────────────── */
.cp-cats { display: flex; gap: 4px; }
.cp-cat {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
}
.cp-cat--active {
  background: rgba(240,165,0,0.2);
  border-color: rgba(240,165,0,0.35);
  color: #fbbf24;
}
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  overflow: hidden;
}
.cp-img {
  height: 30px;
  background: linear-gradient(135deg, rgba(240,165,0,0.15) 0%, rgba(180,60,0,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3px 5px;
}
.cp-anc {
  font-size: 0.44rem;
  font-weight: 700;
  background: rgba(34,197,94,0.7);
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
}
.cp-body { padding: 4px 6px; }
.cp-name { font-size: 0.55rem; font-weight: 600; color: rgba(255,255,255,0.8); line-height: 1.3; margin-bottom: 2px; }
.cp-meta { font-size: 0.48rem; color: rgba(255,255,255,0.35); margin-bottom: 3px; }
.cp-price { font-size: 0.58rem; font-weight: 700; color: #fbbf24; }

/* ── SupportChat AI mockup ──────────────────────────────── */
.sc-panes {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  min-height: 130px;
}
.sc-chat { display: flex; flex-direction: column; gap: 5px; }
.sc-chat-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2px;
}
.sc-bot-dot { width: 6px; height: 6px; background: #22C55E; border-radius: 50%; box-shadow: 0 0 6px #22C55E; }
.sc-bot-name { font-size: 0.58rem; font-weight: 700; color: rgba(255,255,255,0.75); }
.sc-msg { display: flex; }
.sc-msg--user { justify-content: flex-end; }
.sc-bubble {
  max-width: 78%;
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 0.52rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
}
.sc-msg--user .sc-bubble {
  background: rgba(86,71,245,0.35);
  color: rgba(255,255,255,0.9);
}
.sc-input {
  margin-top: auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
}
.sc-stats {
  width: 76px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-stat-item { }
.sc-stat-val {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-head);
}
.sc-stat-label { font-size: 0.44rem; color: rgba(255,255,255,0.35); line-height: 1.3; }
.sc-stat-val--green { color: #86efac; }
.sc-stat-val--gold { color: #fbbf24; }

/* ── Portfolio info panel ───────────────────────────────── */
.pcard-info {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pcard-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.pcard-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  background: rgba(86,71,245,0.07);
  border: 1px solid rgba(86,71,245,0.15);
  border-radius: 5px;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.pcard-info h3 { margin-bottom: 0.65rem; font-size: 1.45rem; color: var(--text); }
.pcard-info p { font-size: 0.92rem; line-height: 1.68; margin-bottom: 1.4rem; color: var(--text-muted); }
.pcard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}
.pcard-link:hover { gap: 0.55rem; color: var(--primary-dark); }
.pcard-link--private {
  color: var(--text-dim);
  cursor: default;
  font-weight: 500;
}

/* ── MediStat Case Study card ───────────────────────────── */
.pcard--case-study {
  display: block;
}
.cs-wrap {
  display: grid;
  grid-template-columns: 55% 45%;
}
.cs-visual {
  background: linear-gradient(145deg, #032A2A 0%, #0D4848 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
  position: relative;
}
.cs-gov-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(240,165,0,0.15);
  border: 1px solid rgba(240,165,0,0.35);
  color: #fbbf24;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.cs-info {
  padding: 2.5rem 2.5rem 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}
.cs-header { display: flex; flex-direction: column; gap: 0.5rem; }
.cs-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cs-badge-seap {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  background: rgba(240,165,0,0.12);
  border: 1px solid rgba(240,165,0,0.3);
  color: var(--accent-dark);
  border-radius: 999px;
}
.cs-badge-health {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.25);
  color: #0f766e;
  border-radius: 999px;
}
.cs-info h3 { font-size: 1.45rem; color: var(--text); margin: 0; }
.cs-client {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 500;
}
.cs-client strong { color: var(--text); font-weight: 700; }

.cs-features { display: flex; flex-direction: column; gap: 0.5rem; }
.cs-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--text);
}
.cs-check {
  width: 18px; height: 18px;
  background: rgba(20,184,166,0.12);
  border: 1px solid rgba(20,184,166,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: #0f766e;
}
.cs-check svg { width: 11px; height: 11px; }

.cs-roles { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cs-role {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}
.cs-role--admin   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.2);  color: #dc2626; }
.cs-role--manager { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #2563eb; }
.cs-role--dir     { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2); color: #7c3aed; }
.cs-role--stat    { background: rgba(20,184,166,0.1); border: 1px solid rgba(20,184,166,0.2); color: #0f766e; }
.cs-role--doc     { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.2);  color: #15803d; }
.cs-role--guest   { background: rgba(156,163,175,0.1);border: 1px solid rgba(156,163,175,0.2);color: #6b7280; }

.cs-tech { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cs-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  background: rgba(86,71,245,0.07);
  border: 1px solid rgba(86,71,245,0.15);
  color: var(--primary);
  border-radius: 5px;
}

.cs-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgba(86,71,245,0.08) 0%, rgba(86,71,245,0.04) 100%);
  border: 1px solid rgba(86,71,245,0.2);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.cs-cta:hover {
  background: rgba(86,71,245,0.12);
  border-color: rgba(86,71,245,0.35);
  transform: translateX(3px);
}
.cs-cta strong { font-weight: 700; color: var(--primary); }
.cs-cta-arrow { margin-left: auto; color: var(--primary); font-size: 1rem; }

/* ════════════════════════════════════════════════════════
   ABOUT — slate pale section
   ════════════════════════════════════════════════════════ */
#despre { background: var(--bg-slate); }
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-left h2 { margin-bottom: 1.25rem; }
.about-lead { font-size: 1.05rem; margin-bottom: 1rem; }
.about-left > p { margin-bottom: 2.5rem; font-size: 0.95rem; }

.about-values { display: flex; flex-direction: column; gap: 1.5rem; }
.value-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.value-num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(86,71,245,0.08);
  border: 1px solid rgba(86,71,245,0.15);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-text strong { display: block; color: var(--text); margin-bottom: 0.2rem; font-size: 0.95rem; }
.value-text p { font-size: 0.85rem; line-height: 1.5; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
}
.tl-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -2.35rem; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-slate);
  border: 2px solid var(--text-dim);
  transition: border-color var(--transition);
}
.tl-item--active::before { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 12px rgba(86,71,245,0.4); }
.tl-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.tl-item--active .tl-card { border-color: rgba(86,71,245,0.25); background: rgba(86,71,245,0.04); }
.tl-card strong { display: block; color: var(--text); margin-bottom: 0.3rem; font-size: 0.95rem; }
.tl-card p { font-size: 0.85rem; }

/* ════════════════════════════════════════════════════════
   CONTACT — cream section
   ════════════════════════════════════════════════════════ */
#contact { background: var(--bg); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: var(--shadow);
}
.ci-item { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon {
  width: 42px; height: 42px;
  background: rgba(86,71,245,0.08);
  border: 1px solid rgba(86,71,245,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.ci-icon svg { width: 20px; height: 20px; }
.ci-label { display: block; font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.15rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.ci-value { font-size: 0.95rem; color: var(--text); font-weight: 500; transition: color var(--transition); }
a.ci-value:hover { color: var(--primary); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--text); letter-spacing: 0.04em; }
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(86,71,245,0.1);
}
.form-note { font-size: 0.8rem; color: var(--text-dim); text-align: center; }
.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}
.form-status--ok { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); color: #15803d; }
.form-status--err { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #dc2626; }

/* ════════════════════════════════════════════════════════
   FOOTER — dark section
   ════════════════════════════════════════════════════════ */
footer {
  background: var(--dk-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0 2rem;
}
footer p, footer span, footer a, footer li { color: var(--dk-text-dim); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col--brand p { font-size: 0.875rem; margin-top: 1rem; margin-bottom: 1.5rem; max-width: 260px; }
.footer-logo { display: inline-block; margin-bottom: 0.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: 8px;
  color: var(--dk-text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer-social a:hover { color: var(--dk-text); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dk-text-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a, .footer-col ul li { font-size: 0.875rem; color: var(--dk-text-dim); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--dk-text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--dk-border);
  font-size: 0.8rem;
  color: var(--dk-text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--dk-text-dim); transition: color var(--transition); }
.footer-legal a:hover { color: var(--dk-text); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard {
    grid-template-columns: 1fr;
  }
  .pcard--flip {
    grid-template-columns: 1fr;
  }
  .pcard--flip .pcard-visual { order: 0; }
  .pcard--flip .pcard-info { order: 0; }
  .pcard-visual { min-height: 260px; }
  .cs-wrap { grid-template-columns: 1fr; }
  .cs-visual { min-height: 260px; }
  .about-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    bottom: 0;
    width: 260px;
    background: rgba(12,14,28,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    border-left: 1px solid var(--dk-border);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 1001; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .stat-sep { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pcard-info { padding: 1.75rem 1.5rem; }
  .cs-info { padding: 1.75rem 1.5rem; }
  .ms-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
}
