:root {
  --navy: #0c1830;
  --blue: #2563eb;
  --orange: #ff8a3d;
  --green: #18a673;
  --purple: #805ad5;
  --teal: #0891b2;
  --text: #172033;
  --muted: #687386;
  --light: #f7f9fc;
  --white: #ffffff;
  --border: #e4e9f1;
  --shadow: 0 18px 50px rgba(22, 39, 75, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.announcement {
  padding: 9px 20px;
  color: white;
  background: var(--navy);
  text-align: center;
  font-size: 0.85rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(15px);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #4e596d;
  font-size: 0.94rem;
  font-weight: 700;
}

nav a:hover,
.back-link:hover {
  color: var(--blue);
}

.dropdown {
  position: relative;
}

.dropdown-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #4e596d;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.dropdown-button:hover {
  color: var(--blue);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 235px;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: 0.2s ease;
}

.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
}

.dropdown-menu a:hover {
  color: var(--blue);
  background: #eef4ff;
}

.mobile-menu {
  display: none;
  border: 0;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-orange {
  color: white;
  background: var(--orange);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--navy);
  background: white;
}

.hero {
  padding: 100px 0 90px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 138, 61, 0.15), transparent 30%),
    radial-gradient(circle at 8% 20%, rgba(37, 99, 235, 0.11), transparent 28%),
    var(--light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf2ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  color: var(--navy);
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

h1 span {
  color: var(--blue);
}

.hero-copy {
  max-width: 650px;
  margin: 25px 0 32px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.dashboard,
.portal-preview {
  padding: 22px;
  border-radius: 25px;
  color: white;
  background: var(--navy);
  box-shadow: 0 25px 60px rgba(12, 24, 48, 0.23);
}

.dashboard-header,
.preview-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-weight: 800;
}

.status {
  color: #6ee7b7;
  font-size: 0.75rem;
}

.dashboard-content {
  display: grid;
  gap: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric,
.dashboard-card,
.preview-box {
  padding: 16px;
  border-radius: 14px;
  background: white;
}

.metric small {
  color: var(--muted);
  font-size: 0.7rem;
}

.metric strong {
  display: block;
  margin: 5px 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.metric em {
  color: var(--green);
  font-size: 0.7rem;
  font-style: normal;
}

.card-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-title span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.bars {
  height: 125px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 10px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 30px,
    #edf1f6 31px
  );
}

.bar {
  width: 11%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, var(--blue), #79a3ff);
}

.bar:nth-child(1) { height: 45%; }
.bar:nth-child(2) { height: 65%; }
.bar:nth-child(3) { height: 52%; }
.bar:nth-child(4) { height: 80%; }
.bar:nth-child(5) { height: 68%; }
.bar:nth-child(6) { height: 95%; }
.bar:nth-child(7) { height: 77%; }

.live-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f5;
  color: var(--muted);
  font-size: 0.76rem;
}

.live-row:last-child {
  border-bottom: 0;
}

.live-row strong {
  display: block;
  color: var(--navy);
}

.live-tag {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: #e8faf3;
  font-size: 0.65rem;
  font-weight: 800;
}

section {
  padding: 90px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.03rem;
}

.products,
.white-section {
  background: white;
}

.light-section {
  background: var(--light);
}

.product-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card,
.info-card {
  padding: 27px 23px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  transition: 0.2s ease;
}

.product-card:hover,
.info-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.product-icon,
.info-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border-radius: 13px;
  color: white;
  background: var(--blue);
  font-weight: 900;
  font-size: 1.2rem;
}

.icon-orange { background: var(--orange); }
.icon-green { background: var(--green); }
.icon-purple { background: var(--purple); }
.icon-teal { background: var(--teal); }

.product-card h3,
.info-card h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 1.1rem;
}

.product-card p,
.info-card p {
  color: var(--muted);
  font-size: 0.91rem;
}

.product-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-card {
  padding: 30px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 35px rgba(22, 39, 75, 0.06);
}

.detail-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.25rem;
}

.detail-card p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 11px;
  margin-top: 19px;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 25px;
  color: var(--muted);
  font-size: 0.91rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.workflow-card {
  min-height: 170px;
  padding: 23px;
  border-radius: 18px;
  color: white;
  background: var(--navy);
}

.workflow-card:nth-child(2) { background: var(--blue); }
.workflow-card:nth-child(3) { background: var(--orange); }
.workflow-card:nth-child(4) { background: var(--green); }

.workflow-number {
  opacity: 0.7;
  font-size: 0.8rem;
  font-weight: 900;
}

.workflow-card h3 {
  margin-top: 30px;
  font-size: 1.05rem;
}

.workflow-card p {
  margin-top: 7px;
  opacity: 0.85;
  font-size: 0.84rem;
}

.cta {
  padding: 80px 0;
  color: white;
  background: var(--navy);
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta p {
  max-width: 720px;
  margin: 0 auto 25px;
  color: #b8c4da;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.contact-info p {
  margin-bottom: 22px;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 14px;
  color: var(--navy);
  font-weight: 700;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf2ff;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 28px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-message {
  display: none;
  color: var(--green);
  font-weight: 700;
}

footer {
  padding: 30px 0;
  color: #9aa8bd;
  background: #081226;
  text-align: center;
  font-size: 0.85rem;
}

.back-link {
  color: var(--blue);
  font-weight: 800;
}

.printer-machine {
  width: 240px;
  height: 180px;
  position: relative;
  margin: 25px auto;
  border-radius: 18px 18px 12px 12px;
  background: #d9e1ec;
  box-shadow: inset 0 -14px 0 #b5c1d0;
}

.printer-machine::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 25px;
  right: 25px;
  height: 35px;
  border-radius: 7px;
  background: #263751;
}

.printer-machine::after {
  content: "";
  position: absolute;
  top: 76px;
  left: 42px;
  right: 42px;
  height: 70px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    to bottom,
    white 0,
    white 13px,
    #d6dde8 14px
  );
}

@media (max-width: 1000px) {
  .product-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: white;
  }

  nav.open {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 50px;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-button {
    width: 100%;
    justify-content: space-between;
    padding: 8px 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    padding: 5px 0 5px 15px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown.open .dropdown-menu {
    display: grid;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  section,
  .hero {
    padding: 70px 0;
  }

  .metric-row,
  .product-grid,
  .card-grid,
  .detail-grid,
  .workflow-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .printer-machine {
    width: 210px;
  }
}
