:root {
  --ink: #071226;
  --muted: #607086;
  --line: #dfe7f1;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --nav: #071b33;
  --blue: #1265ff;
  --green: #14a15a;
  --orange: #f97316;
  --gold: #f6a313;
  --shadow: 0 18px 48px rgba(7, 18, 38, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  font-weight: 900;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.navlinks a:hover {
  color: var(--blue);
}

.nav-cta {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(18, 101, 255, 0.22);
}

.hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 18, 38, 0.94), rgba(7, 27, 51, 0.74) 52%, rgba(249, 115, 22, 0.48)),
    url("images/logoYenkasaSoftOTechEmblem-512.jpeg") center/cover no-repeat;
}

.hero-inner {
  padding: 90px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: #ffd06a;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  font-size: 1.12rem;
}

.lead {
  max-width: 760px;
  color: #e8f2ff;
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 24px;
}

.actions,
.section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-dark {
  background: var(--nav);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--nav);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

section {
  padding: 86px 0;
}

section:nth-of-type(even) {
  background: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.section-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(7, 18, 38, 0.07);
}

.card.dark {
  background: var(--nav);
  color: #fff;
  border-color: #183553;
}

.card p {
  color: var(--muted);
  margin-top: 8px;
}

.product-description {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.product-description p {
  margin: 0;
  color: var(--muted);
}

.product-media {
  margin-top: 14px;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.media-tile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.media-tile:first-child {
  grid-column: 1 / -1;
}

.media-tile img,
.media-tile video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
}

.media-tile figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.card.dark p {
  color: #cfe0ff;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.about-card {
  background: var(--nav);
  color: #fff;
  border-radius: 8px;
  padding: 28px;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.about-card p {
  color: #d9e8ff;
  margin-top: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(7, 18, 38, 0.07);
}

.team-photo {
  background:
    linear-gradient(135deg, rgba(18, 101, 255, 0.16), rgba(249, 115, 22, 0.18)),
    #eef4ff;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(7, 18, 38, 0.08);
}

.team-body {
  padding: 18px;
}

.team-role {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.team-body dl {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.team-body dl div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.team-body dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-body dd {
  margin-top: 3px;
  color: #26364a;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feature-list li {
  padding-left: 26px;
  position: relative;
  color: #324158;
}

.feature-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 8px;
}

.feature-card {
  min-height: 100%;
}

.feature-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--blue);
  margin-bottom: 14px;
}

.gallery-section {
  background: var(--soft);
}

.gallery-intro {
  margin-bottom: 22px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.media-tile img,
.media-tile video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: var(--soft);
}

.media-tile span {
  display: block;
  padding: 12px;
  font-weight: 850;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(7, 18, 38, 0.94), rgba(7, 27, 51, 0.76)),
    url("images/background.jpeg") center/cover no-repeat;
}

.logo-panel {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 18px;
}

.logo-panel img {
  width: 100%;
  border-radius: 8px;
}

.footer {
  background: var(--nav);
  color: #d9e8ff;
  padding: 30px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.engineering-dashboard-page {
  background: #f6faf7;
}

.eng-dashboard {
  color: #13231a;
}

.eng-hero-section {
  padding: 42px 0 28px;
  background:
    linear-gradient(135deg, rgba(20, 122, 73, 0.11), rgba(246, 163, 19, 0.1)),
    #f6faf7;
}

.eng-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.eng-hero-copy,
.eng-health-panel,
.eng-panel,
.eng-dev-card,
.eng-kpi-card,
.eng-table-wrap {
  background: #fff;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(19, 35, 26, 0.08);
}

.eng-hero-copy {
  padding: clamp(24px, 5vw, 44px);
}

.eng-eyebrow {
  color: #147a49;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.eng-hero h1 {
  max-width: 860px;
  color: #13231a;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.eng-lead {
  max-width: 760px;
  color: #53665b;
  font-size: 1.08rem;
  margin-bottom: 22px;
}

.eng-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eng-project-meta span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e9f5ed;
  color: #3f5549;
  font-weight: 800;
}

.eng-project-meta strong {
  color: #13231a;
}

.eng-health-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 28px;
  color: #13231a;
  text-align: center;
}

.eng-ring {
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#147a49 calc(var(--value) * 1%), #e7efe9 0);
}

.eng-ring span {
  font-size: 2.2rem;
  font-weight: 950;
}

.eng-health-panel p {
  margin: 0 0 8px;
  color: #53665b;
  font-weight: 800;
}

.eng-health-panel strong,
.eng-health-panel span {
  display: block;
}

.eng-health-panel strong {
  color: #147a49;
}

.eng-health-panel span {
  margin-top: 4px;
  color: #53665b;
  font-weight: 800;
}

.eng-section {
  padding: 46px 0;
}

.eng-section-soft {
  background: #eef6f1;
}

.eng-section-head,
.eng-panel-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.eng-section-head {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 440px);
  align-items: end;
}

.eng-kpi-grid,
.eng-dev-grid,
.eng-three-column,
.admin-actions-grid {
  display: grid;
  gap: 14px;
}

.eng-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.eng-kpi-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.eng-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #147a49;
}

.eng-kpi-card.warn::before {
  background: #f6a313;
}

.eng-kpi-card span,
.task-label,
.quality-stack span,
.final-score span {
  color: #60726a;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eng-kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.1rem;
  line-height: 1;
}

.eng-kpi-card p {
  color: #60726a;
  font-weight: 800;
  margin-top: 8px;
}

.eng-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #53665b;
  font-weight: 850;
}

.eng-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #147a49;
}

.status-dot.warn {
  background: #f6a313;
}

.status-dot.danger {
  background: #d12f2f;
}

.eng-table-wrap {
  overflow-x: auto;
}

.eng-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.eng-table th,
.eng-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #dce8e1;
  text-align: left;
  vertical-align: middle;
}

.eng-table th {
  color: #60726a;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.eng-table td span {
  display: block;
  color: #60726a;
  font-size: 0.86rem;
}

.metric-chip,
.score-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 900;
}

.metric-chip.good,
.score-pill.good {
  background: #e3f6ea;
  color: #147a49;
}

.metric-chip.warn,
.score-pill.warn {
  background: #fff4d7;
  color: #9a6200;
}

.eng-dev-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eng-dev-card {
  padding: 18px;
}

.eng-dev-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.eng-dev-top h3,
.eng-dev-top p {
  margin: 0;
}

.eng-dev-top p,
.eng-last-active {
  color: #60726a;
  font-weight: 750;
}

.eng-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #147a49;
  color: #fff;
  font-weight: 950;
}

.eng-avatar.warn {
  background: #f6a313;
  color: #13231a;
}

.eng-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.eng-metric-list div,
.task-stats span,
.bug-grid span,
.formula-list span,
.profile-tabs span,
.admin-actions-grid a {
  border: 1px solid #dce8e1;
  border-radius: 8px;
  background: #fbfdfb;
}

.eng-metric-list div {
  padding: 10px;
}

.eng-metric-list dt {
  color: #60726a;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eng-metric-list dd {
  margin-top: 2px;
  color: #13231a;
  font-weight: 900;
}

.eng-last-active {
  margin-top: 14px;
}

.eng-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 16px;
  align-items: start;
}

.eng-three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eng-panel {
  padding: 20px;
}

.task-card {
  display: grid;
  gap: 16px;
}

.task-card h3 {
  font-size: 1.45rem;
  margin-top: 4px;
}

.task-card span {
  color: #60726a;
  font-weight: 800;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress-row strong {
  color: #147a49;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8e1;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #147a49, #f6a313);
}

.milestone-list {
  display: grid;
  gap: 9px;
  list-style: none;
}

.milestone-list li {
  color: #60726a;
  font-weight: 850;
}

.milestone-list li::before {
  content: "□";
  margin-right: 8px;
}

.milestone-list li.done {
  color: #13231a;
}

.milestone-list li.done::before {
  content: "✓";
  color: #147a49;
}

.task-stats,
.bug-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.task-stats span,
.bug-grid span,
.formula-list span {
  padding: 12px;
  color: #60726a;
  font-weight: 850;
}

.task-stats strong,
.bug-grid strong,
.formula-list strong {
  display: block;
  color: #13231a;
  font-size: 1.1rem;
}

.quality-stack {
  display: grid;
  gap: 12px;
}

.quality-stack div {
  padding: 14px;
  border-left: 4px solid #147a49;
  border-radius: 8px;
  background: #fbfdfb;
}

.quality-stack strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.quality-stack p {
  color: #60726a;
  font-weight: 800;
  margin-top: 2px;
}

.activity-feed {
  display: grid;
  gap: 14px;
  list-style: none;
  counter-reset: activity;
}

.activity-feed li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0 0 14px 22px;
  border-bottom: 1px solid #dce8e1;
}

.activity-feed li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f6a313;
}

.activity-feed time,
.activity-feed small {
  color: #60726a;
  font-weight: 800;
}

.activity-feed span {
  color: #13231a;
}

.bug-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trend-chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #eef6f1;
}

.trend-chart i {
  flex: 1;
  min-width: 14px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f6a313, #147a49);
}

.formula-list {
  display: grid;
  gap: 8px;
}

.formula-list span {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.final-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background: #13231a;
  color: #fff;
}

.final-score span {
  color: #d7eadf;
}

.final-score strong {
  font-size: 2rem;
  color: #f6a313;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tabs span,
.admin-actions-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  color: #13231a;
  font-weight: 900;
}

.profile-tabs span.active,
.admin-actions-grid a:hover {
  background: #147a49;
  color: #fff;
  border-color: #147a49;
}

.admin-actions-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .hero-inner,
  .section-head,
  .grid-2,
  .grid-3,
  .about-layout,
  .team-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 64px 0;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .eng-hero,
  .eng-section-head,
  .eng-two-column,
  .eng-three-column,
  .eng-dev-grid {
    grid-template-columns: 1fr;
  }

  .eng-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions-grid,
  .task-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .eng-hero-section {
    padding-top: 18px;
  }

  .eng-project-meta span,
  .eng-dev-top {
    width: 100%;
  }

  .eng-kpi-grid,
  .eng-metric-list,
  .admin-actions-grid,
  .task-stats,
  .bug-grid {
    grid-template-columns: 1fr;
  }

  .eng-ring {
    width: 148px;
  }
}
