/* =========================================================
   Northern Geek — eis.css
   Page-specific styles for the HRIS / EIS product page.
   Everything else (tokens, nav, hero, footer, mockups,
   reveal animations) comes from style.css / animation.css.
   ========================================================= */

/* ---------- Section rhythm for page-only sections ---------- */
.what-is,
.problems,
.benefits,
.industries,
.faq {
  padding: var(--space-8) 0;
}
.problems {
  background: var(--bg-secondary);
}

/* ---------- 2. What is HRIS / EIS ---------- */
.definition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.definition-card {
  padding: var(--space-5);
}
.definition-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  margin-bottom: var(--space-3);
}
.definition-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}
.definition-card p {
  font-size: 0.98rem;
}

/* ---------- Workflow diagram: Employee → HRIS → HR → Management ---------- */
.workflow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-2);
}
.workflow-node {
  flex: 1;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: var(--space-4) var(--space-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.workflow-node:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.workflow-node.is-core {
  background: linear-gradient(
    160deg,
    rgba(0, 122, 255, 0.16),
    rgba(0, 198, 255, 0.06)
  );
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 0 34px rgba(0, 122, 255, 0.15);
}
.workflow-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.18),
    rgba(0, 198, 255, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.workflow-icon svg {
  width: 22px;
  height: 22px;
}
.workflow-node strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.workflow-node > span:last-child {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.workflow-arrow {
  align-self: center;
  flex-shrink: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  position: relative;
}
.workflow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent-2);
  border-right: 2px solid var(--accent-2);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- 3. Problems ---------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.problem-card {
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.problem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 92, 92, 0.4);
  background: var(--card-hover);
}
.problem-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 92, 92, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5c5c;
  margin-bottom: var(--space-3);
  position: relative;
}
.problem-icon svg {
  width: 20px;
  height: 20px;
}
.problem-icon::after {
  content: "✕";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 92, 92, 0.9);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.problem-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}
.problem-card p {
  font-size: 0.88rem;
}

/* ---------- 4. Solve list (split section) ---------- */
.solve-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.solve-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: var(--space-3);
  border-left: 2px solid var(--accent);
}
.solve-list strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.solve-list span {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- 5. Core feature cards ---------- */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.feature-card {
  padding: var(--space-4) var(--space-3);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  background: var(--card-hover);
}
.feature-ic {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.18),
    rgba(0, 198, 255, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.feature-ic svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.85rem;
}

/* ---------- Real product screenshots: browser-style frame ---------- */
.shot-frame {
  width: min(640px, 92vw);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.shot-frame-wide {
  width: min(760px, 92vw);
}
.shot-frame-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.shot-frame-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Real product screenshots: stacked phone frames ---------- */
.phone-stack {
  position: relative;
  width: min(300px, 78vw);
  padding: 40px 60px 0 0;
}
.phone-frame {
  position: relative;
  border-radius: 42px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  border: 1px solid var(--border);
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-behind {
  position: absolute;
  top: 0;
  right: 0;
  width: 74%;
  opacity: 0.55;
  filter: brightness(0.75) saturate(0.9);
  transform: rotate(5deg);
  z-index: 0;
}
.phone-front {
  position: relative;
  z-index: 1;
}

/* ---------- 7/8. Dashboard chips ---------- */
.dash-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: var(--space-5);
}
.dash-chips span {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
}

/* ---------- 9. Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}
.benefit-card {
  padding: var(--space-4);
}
.benefit-ic {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.18),
    rgba(0, 198, 255, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.benefit-ic svg {
  width: 22px;
  height: 22px;
}
.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}
.benefit-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.benefit-card li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.benefit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ---------- 10. Security ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.security-tile {
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.security-tile:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.security-tile svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.security-tile h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}
.security-tile p {
  font-size: 0.88rem;
}

/* ---------- 11. Industries ---------- */
.industry-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  max-width: 820px;
  margin: 0 auto;
}
.industry-chips span {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.industry-chips span:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- 13. FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item[open] {
  border-color: rgba(0, 122, 255, 0.4);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--accent-2);
}
.faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
  border-color: var(--accent);
}
.faq-item p {
  padding: 0 var(--space-4) var(--space-3);
  font-size: 0.94rem;
}

/* =========================================================
   Responsive — mirrors responsive.css breakpoints
   ========================================================= */

@media (max-width: 1024px) {
  .problems-grid,
  .feature-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .definition-grid {
    grid-template-columns: 1fr;
  }

  /* Workflow stacks vertically, arrows point down */
  .workflow {
    flex-direction: column;
    align-items: center;
  }
  .workflow-node {
    width: 100%;
    max-width: 340px;
  }
  .workflow-arrow {
    width: 2px;
    height: 26px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
  }
  .workflow-arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%) rotate(135deg);
  }

  .problems-grid,
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ess-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .problems-grid,
  .feature-cards-grid,
  .benefits-grid,
  .security-grid,
  .ess-list {
    grid-template-columns: 1fr;
  }
  .faq-item summary {
    font-size: 0.94rem;
    padding: var(--space-3);
  }
  .faq-item p {
    padding: 0 var(--space-3) var(--space-3);
  }
  .industry-chips span {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  .dash-chips span {
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }
}
