:root {
  --dnv-navy: #002060;
  --dnv-blue: #0067a6;
  --dnv-cyan: #00a3e0;
  --dnv-green: #75bd22;
  --dnv-dark: #0a0e1a;
  --dnv-ink: #111827;
  --dnv-muted: #5a6b7d;
  --dnv-line: #d8e0e8;
  --dnv-bg: #f6f8fa;
  --dnv-card: #ffffff;
  --dnv-shadow: 0 12px 32px rgba(0, 32, 96, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--dnv-ink);
  background: var(--dnv-bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 224, 232, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: inline-block;
  width: auto;
  height: 36px;
  padding: 4px 8px;
  background: #fff;
  border-radius: 4px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--dnv-muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--dnv-blue);
}

.menu-button {
  display: none;
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  background: white;
  padding: 8px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 44px;
  min-height: 680px;
  padding: 108px clamp(20px, 6vw, 92px) 84px;
  color: white;
  background: var(--dnv-navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 163, 224, 0.25), transparent 40%),
    radial-gradient(circle at 20% 90%, rgba(0, 103, 166, 0.18), transparent 40%);
}

.hero-bg {
  position: absolute;
  inset: auto -10% -30% 45%;
  width: 680px;
  height: 680px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 80px);
  transform: rotate(8deg);
  mask-image: radial-gradient(circle, black 35%, transparent 70%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--dnv-cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-description {
  max-width: 780px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

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

.button.primary:hover {
  background: var(--dnv-blue);
}

.button.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  align-self: center;
  min-height: 540px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0,32,96,0.85) 0%, rgba(0,103,166,0.75) 100%),
    url('/assets/capability-bg.png');
  background-size: cover;
  background-position: top right;
  backdrop-filter: blur(22px);
  box-shadow: var(--dnv-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.capability-orbit {
  position: relative;
  display: grid;
  place-items: center;
  height: 420px;
  margin-bottom: 20px;
}

.capability-orbit::before,
.capability-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.capability-orbit::before {
  width: 320px;
  height: 320px;
}

.capability-orbit::after {
  width: 220px;
  height: 220px;
}

.capability-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 140px;
  min-height: 60px;
  padding: 14px 20px;
  border-radius: 8px;
  color: white;
  background: rgba(0, 32, 96, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.capability-orbit span:nth-child(1) { top: 20px; left: 50%; transform: translateX(-50%); }
.capability-orbit span:nth-child(2) { right: 10px; top: 140px; animation-delay: -1s; }
.capability-orbit span:nth-child(3) { bottom: 20px; left: 50%; transform: translateX(-50%); animation-delay: -2s; }
.capability-orbit span:nth-child(4) { left: 10px; top: 140px; animation-delay: -3s; }

@keyframes float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 clamp(20px, 6vw, 92px);
  transform: translateY(-48px);
}

.stat-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  box-shadow: var(--dnv-shadow);
}

.stat-card strong {
  display: block;
  color: var(--dnv-navy);
  font-size: 36px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--dnv-muted);
}

.certificate-query {
  padding-top: 14px;
  padding-bottom: 32px;
}

.certificate-shell {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--dnv-shadow);
}

.certificate-title {
  display: grid;
  place-items: center;
  min-height: 178px;
  padding: 24px;
  color: white;
  background: var(--dnv-navy);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.certificate-table {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-left: 1px solid var(--dnv-line);
  font-size: 20px;
  font-weight: 700;
}

.certificate-table > * {
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--dnv-line);
  display: flex;
  align-items: center;
}

.certificate-table > *:nth-child(2n + 1) {
  border-right: 1px solid var(--dnv-line);
}

.certificate-label {
  justify-content: flex-end;
  color: var(--dnv-ink);
  background: white;
}

.certificate-input-row {
  gap: 10px;
}

.certificate-input-row input {
  height: 34px;
  border: 1px solid var(--dnv-line);
  border-radius: 4px;
  padding: 0 10px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.certificate-input-row .button {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 4px;
}

.certificate-result,
.certificate-company,
#certificateDate {
  justify-content: center;
  text-align: center;
}

.status-valid {
  color: #0a3d1f;
  background: #e8f5e9;
}

.status-invalid {
  color: #7a1f1f;
  background: #fce8e8;
}

.status-neutral {
  color: var(--dnv-ink);
  background: #f0f1f3;
}

.section {
  padding: 72px clamp(20px, 6vw, 92px);
}

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

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dnv-navy);
}

.section-heading p:not(.eyebrow),
.trust p,
.contact p {
  color: var(--dnv-muted);
  font-size: 16px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.case-card,
.process-card {
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  background: var(--dnv-card);
  box-shadow: var(--dnv-shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 26px;
}

.badge {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--dnv-navy);
  background: rgba(0, 163, 224, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.service-card h3,
.case-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--dnv-navy);
}

.service-card p,
.case-card p,
.process-card p {
  color: var(--dnv-muted);
  line-height: 1.75;
}

.service-card ul,
.trust ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.trust li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: var(--dnv-muted);
  border-top: 1px solid var(--dnv-line);
}

.service-card li::before,
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dnv-cyan);
}

.visual-proof {
  padding-top: 24px;
  background: white;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.visual-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--dnv-shadow);
}

.visual-card.large {
  grid-row: span 2;
  min-height: 600px;
}

.visual-card.wide {
  grid-column: span 2;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  display: block;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 32, 96, 0.82));
}

.visual-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  color: white;
}

.visual-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--dnv-cyan);
  font-size: 12px;
  font-weight: 800;
}

.visual-card h3 {
  margin: 0;
  max-width: 520px;
  font-size: 22px;
  line-height: 1.35;
}

.dark {
  color: white;
  background: var(--dnv-navy);
}

.dark .section-heading p:not(.eyebrow),
.dark .process-card p {
  color: rgba(255, 255, 255, 0.72);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.process-card .step {
  color: var(--dnv-cyan);
  font-size: 42px;
  font-weight: 900;
}

.process-card h3 {
  color: var(--dnv-green);
}

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

.filter {
  border: 1px solid var(--dnv-line);
  border-radius: 4px;
  padding: 10px 14px;
  background: white;
  color: var(--dnv-muted);
  cursor: pointer;
}

.filter.active {
  color: white;
  background: var(--dnv-navy);
  border-color: var(--dnv-navy);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.case-card {
  padding: 24px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.case-meta span {
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--dnv-muted);
  background: #f0f3f6;
  font-size: 12px;
}

.trust,
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.trust {
  background: white;
}

.trust ul {
  padding: 28px;
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  background: var(--dnv-bg);
}

.contact {
  background: white;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--dnv-shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--dnv-muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--dnv-line);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--dnv-ink);
  background: white;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--dnv-cyan);
}

textarea {
  resize: vertical;
}

.contact-meta {
  margin: 0;
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 92px);
  color: rgba(255, 255, 255, 0.7);
  background: var(--dnv-navy);
}

footer a {
  color: white;
}

footer a:hover {
  text-decoration: underline;
}

.footer-icp {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.admin-body {
  background: var(--dnv-bg);
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 72px;
}

.admin-hero,
.admin-panel {
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--dnv-shadow);
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 20px;
}

.admin-hero h1 {
  margin: 0 0 8px;
  color: var(--dnv-navy);
}

.admin-panel {
  padding: 24px;
}

.admin-login {
  display: flex;
  gap: 12px;
  align-items: end;
  max-width: 560px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin-top: 20px;
}

.admin-tabs {
  display: grid;
  gap: 8px;
  align-self: start;
}

.admin-tab {
  border: 1px solid var(--dnv-line);
  border-radius: 4px;
  padding: 13px 14px;
  background: white;
  color: var(--dnv-muted);
  text-align: left;
  cursor: pointer;
}

.admin-tab.active {
  color: white;
  background: var(--dnv-navy);
  border-color: var(--dnv-navy);
}

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

.editor-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--dnv-line);
  border-radius: 8px;
  background: #fbfdff;
}

.editor-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.array-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.danger {
  color: #b42318;
  border: 1px solid #ffd7d3;
  background: #fff1f0;
}

.status {
  min-height: 22px;
  color: var(--dnv-muted);
}

@media (max-width: 1180px) {
  .hero-panel {
    background-position: center 30%;
  }

  .service-grid,
  .case-grid,
  .visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-card.large,
  .visual-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-button {
    display: inline-block;
  }

  nav {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--dnv-line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--dnv-shadow);
  }

  nav.open {
    display: flex;
  }

  .hero,
  .trust,
  .contact,
  .certificate-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .certificate-table {
    grid-template-columns: 1fr;
    border-left: 0;
    font-size: 17px;
  }

  .certificate-table > *:nth-child(2n + 1) {
    border-right: 0;
    justify-content: center;
    background: #f7f9fc;
  }

  .certificate-input-row {
    flex-direction: column;
  }

  .hero-panel {
    background-position: center 20%;
    min-height: 380px;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .stats,
  .process-grid,
  .service-grid,
  .case-grid,
  .visual-grid {
    grid-template-columns: 1fr;
    transform: none;
    padding-top: 24px;
  }

  .visual-card.large,
  .visual-card.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .section-heading.split,
  .admin-hero,
  .admin-login,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-row {
    grid-template-columns: 1fr;
  }
}
