:root {
  --paper: #f4f6f8;
  --mist: #d8e1e8;
  --ink: #11263b;
  --muted: #51697a;
  --deep: #173248;
  --deep-2: #20384d;
  --line: rgba(17, 38, 59, 0.12);
  --shadow: 0 24px 54px rgba(6, 18, 30, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(32, 56, 77, 0.14), transparent 34%),
    linear-gradient(180deg, #eef2f5 0%, #f7f9fb 100%);
}

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

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(244, 246, 248, 0.72);
  border-bottom: 1px solid rgba(17, 38, 59, 0.08);
}

.nav-shell,
.hero-grid,
.trust-grid,
.section,
.contact-card {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #fff8ee;
}

.brand-name {
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 66px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(8, 22, 34, 0.88) 0%, rgba(16, 37, 58, 0.77) 48%, rgba(16, 37, 58, 0.55) 100%),
    url("./assets/nivium-hero-snow.png") center/cover no-repeat;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #c8d8e3;
}

.hero-copy {
  color: #f5f8fb;
}

.hero-brand-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.hero-brand-title {
  margin-bottom: 0;
  color: #fff8ee;
  font-size: clamp(2.8rem, 4.5vw, 4.25rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #e2edf4;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-brand-arrow {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-brand-swish {
  margin-top: 4px;
  margin-right: -8px;
  width: 176px;
  height: 22px;
  opacity: 0.96;
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 5.2vw, 5.4rem);
  line-height: 0.95;
}

.hero-lead {
  max-width: 39rem;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #d9e4ec;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.button-primary {
  background: #fff8ee;
  color: var(--deep);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ee;
  border-color: rgba(255, 248, 238, 0.28);
}

.button-app-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b627d 0%, #30516a 100%);
  color: #fff8ee;
  border: 3px solid #06080b;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 0 rgba(7, 20, 36, 0.45),
    0 10px 18px rgba(6, 18, 30, 0.2);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-stage {
  position: relative;
  min-height: 760px;
}

.device-stack {
  position: absolute;
  inset: 28px 0 0;
}

.device-card {
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(5, 15, 26, 0.32);
}

.device-card-back {
  position: absolute;
  left: 18px;
  bottom: 210px;
  width: 58%;
  padding: 20px;
  color: #d5e2ea;
  background: linear-gradient(180deg, rgba(24, 49, 69, 0.96), rgba(18, 33, 47, 0.98));
  transform: rotate(-7deg);
}

.device-label {
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #afc7d6;
}

.device-copy {
  margin-bottom: 0;
  line-height: 1.7;
}

.device-card-front {
  position: absolute;
  right: 0;
  width: min(100%, 380px);
  padding: 14px;
  background: linear-gradient(180deg, #0f2234 0%, #091523 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device-topbar {
  width: 36%;
  height: 14px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.device-screen {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, #c5d5df 0%, #dfe8ee 100%);
}

.screen-header h3 {
  margin-bottom: 4px;
  font-size: 1.5rem;
  color: var(--deep);
}

.screen-kicker {
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #4c6577;
}

.profile-image-shell {
  margin-top: 18px;
  border-radius: 18px;
  padding: 12px;
  background: #f5f7f9;
  border: 1px solid rgba(17, 38, 59, 0.1);
}

.profile-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 28px rgba(17, 38, 59, 0.12);
}

.screen-footer {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  color: #fff8ee;
  font-size: 0.82rem;
  font-weight: 800;
}

.screen-footer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3b627d 0%, #30516a 100%);
  border: 2px solid #06080b;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(7, 20, 36, 0.42);
  flex: 1;
}

.trust-band {
  padding: 32px 0 8px;
}

.workflow-banner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  color: var(--deep);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto 36px;
}

.section-heading h2,
.contact-card h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.pricing-title {
  font-size: clamp(2rem, 3.25vw, 3.05rem) !important;
}

.section-heading p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

.section-heading strong {
  color: var(--deep);
  font-weight: 800;
}

.workflow-grid,
.feature-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

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

.feature-grid,
.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 56rem;
  margin: 0 auto;
}

.feature-grid {
  column-gap: 84px;
}

.workflow-card,
.feature-card,
.pricing-card,
.contact-card {
  border-radius: 24px;
  padding: 28px;
  background: rgba(245, 249, 252, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.workflow-card-media {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 7px solid #06080b;
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 54px rgba(6, 18, 30, 0.14);
}

.workflow-image-frame {
  height: 460px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, #a8b8c6 0%, #95a8b8 100%);
  border-left: 0;
  border-right: 0;
  border-top: 2px solid #06080b;
  border-bottom: 0;
  margin-top: auto;
}

.workflow-image-frame-fullbleed {
  padding: 0;
}

.workflow-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.workflow-image-field {
  object-fit: contain;
  object-position: center top;
}

.workflow-image-app {
  width: 94%;
  height: 94%;
  object-fit: contain;
  object-position: center top;
  margin-top: 10px;
  box-shadow: 0 18px 34px rgba(5, 15, 26, 0.28);
}

.workflow-image-photo-fill {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 44%;
  margin-top: 0;
}

.workflow-image-profile {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  box-shadow: 0 18px 34px rgba(17, 38, 59, 0.16);
}

.workflow-body {
  padding: 24px;
  min-height: 304px;
  border-bottom: 2px solid #06080b;
}

.step-number,
.pricing-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--deep), var(--deep-2));
  color: #fff8ee;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.workflow-card p,
.feature-card p,
.pricing-card li {
  color: var(--muted);
  line-height: 1.72;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(12, 29, 46, 0.8) 0%, rgba(18, 41, 59, 0.76) 50%, rgba(32, 56, 77, 0.88) 100%),
    url("/assets/images/nivium-mid-band.png") center 8px/cover no-repeat,
    linear-gradient(180deg, #173248 0%, #20384d 100%);
}

.section-heading-band {
  padding: 8px 0 4px;
}

.section-heading-light .eyebrow,
.section-heading-light h2,
.section-heading-light p {
  color: #eff6fa;
}

.section-heading-light p {
  color: #d6e2ea;
}

.feature-card-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-card-dark h3,
.feature-card-dark p {
  color: #f0f5f9;
}

.feature-card-dark p {
  color: #d6e2ea;
}

.pricing-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.pricing-card {
  background: linear-gradient(180deg, #173248 0%, #20384d 100%);
}

.pricing-card h3,
.pricing-card li {
  color: #eff5f9;
}

.pricing-card .pricing-tier {
  background: #fff8ee;
  color: var(--deep);
}

.pricing-card-featured {
  background: linear-gradient(180deg, #173248 0%, #20384d 100%);
}

.pricing-card-featured h3,
.pricing-card-featured li {
  color: #eff5f9;
}

.pricing-card-featured .pricing-tier {
  background: #fff8ee;
  color: var(--deep);
}

.section-contact {
  padding-bottom: 110px;
}

.contact-card {
  background: linear-gradient(180deg, #173248 0%, #20384d 100%);
  color: #fff8ee;
}

.contact-card p {
  color: #d6e2ea;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.workflow-actions {
  margin-top: 34px;
  transform: translateY(24px);
}

.button-download {
  min-height: 66px;
  min-width: 320px;
  padding: 0 34px;
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .workflow-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-brand-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-brand-stack {
    align-items: flex-start;
  }

  .hero-brand-swish {
    margin-right: 0;
  }

  .hero-stage {
    min-height: 860px;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 720px;
  }

  .device-card-back {
    width: 72%;
  }

  .section,
  .section-contact {
    padding: 74px 0;
  }
}
