:root {
  --navy: #082b63;
  --blue: #0b4c9c;
  --green: #16833a;
  --gold: #c79a2b;
  --ink: #102033;
  --muted: #66758a;
  --line: #dce5ef;
  --surface: #f7fafc;
  --white: #ffffff;
  --danger: #a62639;
  --shadow: 0 18px 40px rgba(8, 43, 99, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--surface);
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  min-width: 210px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.2rem;
}

.brand small {
  color: var(--green);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a,
.nav-button,
.button,
.menu-toggle,
.side-link {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav a {
  color: var(--navy);
  padding: 10px 12px;
  font-weight: 700;
}

.nav-button {
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 700;
  background: #eaf2ff;
}

.nav a.active,
.nav a:hover,
.nav-button:hover {
  background: #eaf2ff;
}

.hidden {
  display: none !important;
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(8, 43, 99, 0.94), rgba(11, 76, 156, 0.8)),
    url("assets/skillsng-logo.jpeg") center / min(70vw, 760px) no-repeat;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.1;
}

h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.hero-copy p:not(.eyebrow) {
  max-width: 690px;
  color: #edf5ff;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions,
.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
}

.button:hover,
.side-link:hover {
  transform: translateY(-1px);
}

.hero-panel {
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.pipeline span,
.pipeline a {
  min-width: 0;
  padding: 8px 4px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  background: var(--navy);
  border-radius: 6px;
  text-decoration: none;
}

.pipeline a:hover {
  background: var(--green);
}

.band {
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 32px;
  align-items: center;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.feature-grid,
.content-grid,
.access-grid,
.security-grid,
.metrics {
  display: grid;
  gap: 16px;
}

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

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

.feature-card,
.work-card,
.security-grid article,
.metrics div,
.verify-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(8, 43, 99, 0.08);
}

.feature-card,
.work-card,
.security-grid article,
.metrics div {
  padding: 18px;
}

.feature-card {
  border-top: 4px solid var(--gold);
}

.feature-card:nth-child(2),
.security-grid article:nth-child(2) {
  border-top-color: var(--green);
}

.feature-card:nth-child(3),
.security-grid article:nth-child(3) {
  border-top-color: var(--blue);
}

.feature-card:nth-child(4),
.security-grid article:nth-child(4) {
  border-top-color: var(--gold);
}

.feature-card p,
.work-card p,
.band p,
.security-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.verify-form {
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9c7d8;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(199, 154, 43, 0.55);
  outline-offset: 2px;
}

output {
  display: block;
  min-height: 24px;
  margin-top: 12px;
  color: var(--green);
  font-weight: 800;
}

.dashboard-view {
  padding: clamp(16px, 4vw, 40px);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
}

.sidebar,
.dashboard-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 18px;
}

.sidebar h2 {
  font-size: 1.45rem;
}

.side-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  color: var(--navy);
  font-weight: 800;
  text-align: left;
  background: #eef5fb;
}

.side-link.active {
  color: var(--white);
  background: var(--navy);
}

.dashboard-content {
  min-height: 620px;
  padding: clamp(16px, 3vw, 28px);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metrics strong {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
}

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

.progress {
  height: 10px;
  overflow: hidden;
  background: #dfe8f2;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 8px 10px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  background: #eaf2ff;
  border-radius: 999px;
}

.portfolio-form {
  display: grid;
  gap: 16px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.form-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.form-note a {
  color: var(--green);
  font-weight: 800;
}

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

.upload-zone {
  position: relative;
  border: 2px dashed #96abc4;
  border-radius: 8px;
  background: #f6fbff;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone label {
  min-height: 140px;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.upload-zone span {
  color: var(--muted);
  font-weight: 400;
}

.file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f3f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  overflow: hidden;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.data-table th,
.data-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--navy);
  background: #edf4fb;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.timeline,
.state-flow {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.9;
}

.state-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.state-flow li {
  padding: 12px;
  color: var(--navy);
  font-weight: 800;
  background: #eef5fb;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 5vw, 72px);
  color: var(--white);
  background: var(--navy);
}

@media (max-width: 1040px) {
  .feature-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .split,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    padding: 12px;
  }

  .pipeline,
  .feature-grid,
  .content-grid,
  .access-grid,
  .security-grid,
  .metrics,
  .form-grid,
  .state-flow {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }
}
