/* iHRM Marketing — aligned with testez.ihrm.ro ihrm-corporate v2.1 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ihrm-primary: #1e3a5f;
  --ihrm-primary-light: #2d4f7c;
  --ihrm-accent: #2563eb;
  --ihrm-accent-soft: rgba(37, 99, 235, 0.1);
  --ihrm-success: #059669;
  --ihrm-surface: #f8fafc;
  --ihrm-surface-elevated: #ffffff;
  --ihrm-border: rgba(30, 58, 95, 0.1);
  --ihrm-text: #1e293b;
  --ihrm-text-muted: #64748b;
  --ihrm-radius: 0.5rem;
  --ihrm-radius-lg: 0.75rem;
  --ihrm-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --ihrm-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --ihrm-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.1);
  --ihrm-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--ihrm-surface);
  color: var(--ihrm-text);
  margin: 0;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--ihrm-accent); }
a:hover { color: var(--ihrm-primary-light); }

/* Navbar */
.ihrm-navbar {
  background: var(--ihrm-primary);
  padding: 0.85rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  box-shadow: var(--ihrm-shadow-md);
}

.ihrm-navbar .navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.02em;
}

.ihrm-navbar .navbar-brand .i {
  font-style: italic;
  font-weight: 300;
  opacity: 0.9;
}

.ihrm-navbar .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
  transition: color var(--ihrm-transition);
}

.ihrm-navbar .nav-link:hover { color: #fff !important; }

.ihrm-navbar .nav-cta {
  background: var(--ihrm-accent);
  color: #fff !important;
  border-radius: var(--ihrm-radius);
  padding: 0.45rem 1rem !important;
  margin-left: 0.5rem;
}

.ihrm-navbar .nav-cta:hover {
  background: #1d4ed8;
  color: #fff !important;
}

.ihrm-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.ihrm-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* Hero */
#hero {
  background: linear-gradient(135deg, var(--ihrm-primary) 0%, var(--ihrm-primary-light) 55%, #1d4ed8 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.25), transparent 50%);
  pointer-events: none;
}

#hero .container { position: relative; z-index: 1; }

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

#hero .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

#hero .btn-hero {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ihrm-radius);
  font-size: 1rem;
  transition: var(--ihrm-transition);
}

#hero .btn-light {
  background: #fff;
  color: var(--ihrm-primary);
  border: none;
}

#hero .btn-light:hover {
  background: var(--ihrm-surface);
  transform: translateY(-2px);
  box-shadow: var(--ihrm-shadow-lg);
}

#hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Sections */
section { padding: 4.5rem 0; }

section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ihrm-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

section .section-lead {
  color: var(--ihrm-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.bg-section { background: var(--ihrm-surface); }

/* Feature cards */
.feature-card {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  background: var(--ihrm-surface-elevated);
  box-shadow: var(--ihrm-shadow);
  transition: transform var(--ihrm-transition), box-shadow var(--ihrm-transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ihrm-shadow-lg);
}

.feature-card .card-body { padding: 1.75rem; text-align: center; }

.feature-icon {
  font-size: 2.25rem;
  color: var(--ihrm-accent);
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-weight: 600;
  color: var(--ihrm-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--ihrm-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* Benefits */
#beneficii ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#beneficii li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ihrm-text);
}

#beneficii li i {
  color: var(--ihrm-success);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Contact */
#contact .form-control {
  border-radius: var(--ihrm-radius);
  border: 1px solid var(--ihrm-border);
  padding: 0.65rem 0.9rem;
}

#contact .form-control:focus {
  border-color: var(--ihrm-accent);
  box-shadow: 0 0 0 3px var(--ihrm-accent-soft);
}

#contact .btn-primary {
  background: var(--ihrm-primary);
  border: none;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: var(--ihrm-radius);
}

#contact .btn-primary:hover { background: var(--ihrm-primary-light); }

/* Footer */
footer {
  background: var(--ihrm-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.ihrm-ecosystem-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.ihrm-ecosystem-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  transition: color var(--ihrm-transition);
}

.ihrm-ecosystem-link:hover { color: #93c5fd; }

footer .copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* About icon */
.about-icon {
  font-size: 3.5rem;
  color: var(--ihrm-accent);
  margin-bottom: 1rem;
}

.hero-version-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.platform-subtitle {
  color: var(--ihrm-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.platform-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.platform-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ihrm-text);
}

.platform-list li i {
  color: var(--ihrm-accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
}

.role-card .role-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.role-card .role-card-header .feature-icon {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.role-card h4 {
  margin: 0;
  color: var(--ihrm-primary);
}

.module-card h4 {
  color: var(--ihrm-primary);
  margin-bottom: 1rem;
}

.api-table {
  background: var(--ihrm-surface-elevated);
  border-radius: var(--ihrm-radius-lg);
  overflow: hidden;
  box-shadow: var(--ihrm-shadow);
}

.api-table thead th {
  background: var(--ihrm-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  padding: 0.85rem 1rem;
}

.api-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: var(--ihrm-border);
  font-size: 0.9rem;
}

.api-method {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  letter-spacing: 0.03em;
}

.api-method-get { background: #dbeafe; color: #1d4ed8; }
.api-method-post { background: #dcfce7; color: #166534; }

#platform code,
#api code {
  font-size: 0.85em;
  color: var(--ihrm-primary-light);
}

/* ── Interactive & motion ───────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--ihrm-accent), #60a5fa, var(--ihrm-primary-light));
  z-index: 1100;
  transition: width 0.08s linear;
}

.ihrm-navbar.is-scrolled {
  box-shadow: var(--ihrm-shadow-lg);
  padding: 0.55rem 0;
}

.ihrm-navbar .nav-link.active {
  color: #fff !important;
  position: relative;
}

.ihrm-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: #93c5fd;
  border-radius: 2px;
}

/* Hero animation */
#hero.hero-animated {
  position: relative;
  overflow: hidden;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 280px;
  height: 280px;
  background: #3b82f6;
  top: 10%;
  left: 5%;
}

.hero-orb-2 {
  width: 220px;
  height: 220px;
  background: #1e40af;
  bottom: 15%;
  right: 8%;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 160px;
  height: 160px;
  background: #60a5fa;
  top: 40%;
  right: 30%;
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.08); }
}

.hero-title-animate {
  animation: fadeUp 0.8s ease both;
}

.hero-cta-animate {
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero-stats-row {
  animation: fadeUp 0.8s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.ihrm-pulse-badge {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(147, 197, 253, 0); }
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ihrm-radius-lg);
  padding: 1rem;
  backdrop-filter: blur(8px);
  transition: transform var(--ihrm-transition), background var(--ihrm-transition), border-color var(--ihrm-transition);
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(147, 197, 253, 0.5);
}

.hero-stat-card strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-stat-card span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Reveal on scroll */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease var(--reveal-delay, 0s), transform 0.65s ease var(--reveal-delay, 0s);
}

.reveal-item.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards interactive */
.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ihrm-shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}

.btn-interactive {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.ihrm-cap-card .cap-hover-hint {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--ihrm-accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}

.ihrm-cap-card:hover .cap-hover-hint {
  opacity: 1;
  transform: translateY(0);
}

.cap-icon-wrap {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ihrm-accent-soft);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.ihrm-cap-card:hover .cap-icon-wrap {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(37, 99, 235, 0.18);
}

/* Role tabs */
.ihrm-role-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ihrm-role-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--ihrm-border);
  background: var(--ihrm-surface-elevated);
  color: var(--ihrm-text);
  padding: 0.55rem 1rem;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ihrm-role-tab:hover {
  border-color: var(--ihrm-accent);
  color: var(--ihrm-accent);
  transform: translateY(-2px);
}

.ihrm-role-tab.active {
  background: var(--ihrm-accent);
  border-color: var(--ihrm-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ihrm-role-panels {
  position: relative;
  min-height: 200px;
}

.ihrm-role-panel {
  display: none;
  animation: panelIn 0.35s ease;
}

.ihrm-role-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.role-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.role-panel-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--ihrm-radius-lg);
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.role-panel-card h3 {
  margin: 0;
  color: var(--ihrm-primary);
  font-size: 1.35rem;
}

/* Accordion */
.ihrm-accordion .accordion-item {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--ihrm-shadow);
}

.ihrm-accordion .accordion-button {
  font-weight: 600;
  color: var(--ihrm-primary);
  background: var(--ihrm-surface-elevated);
}

.ihrm-accordion .accordion-button:not(.collapsed) {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-accent);
  box-shadow: none;
}

.ihrm-accordion .accordion-button:focus {
  box-shadow: 0 0 0 3px var(--ihrm-accent-soft);
}

/* API table interactive */
.api-row {
  transition: background 0.2s ease;
}

.api-row:hover {
  background: var(--ihrm-accent-soft);
}

.api-copy-btn {
  transition: all 0.2s ease;
}

.api-copy-btn.copied {
  background: var(--ihrm-success) !important;
  border-color: var(--ihrm-success) !important;
  color: #fff !important;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ihrm-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
  box-shadow: var(--ihrm-shadow-lg);
  text-decoration: none;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #1d4ed8;
  color: #fff;
}

.ihrm-fade-in {
  animation: fadeUp 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item, .hero-orb, .ihrm-pulse-badge { animation: none !important; transition: none !important; }
  .reveal-item { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  section { padding: 3rem 0; }
  #hero { padding-top: 6rem; min-height: auto; }
  .ihrm-role-tabs { gap: 0.35rem; }
  .ihrm-role-tab { font-size: 0.8rem; padding: 0.45rem 0.75rem; }
}
