:root {
  --ink: #152033;
  --muted: #607086;
  --line: #d9e1ea;
  --soft: #f4f7fb;
  --panel: #ffffff;
  --brand: #0f8f74;
  --brand-dark: #07634f;
  --accent: #f6b73c;
  --danger: #c43838;
  --shadow: 0 18px 50px rgba(23, 37, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfe;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

.notice-bar {
  overflow: hidden;
  background: var(--ink);
  color: white;
  white-space: nowrap;
}

.notice-track {
  display: inline-block;
  min-width: 100%;
  padding: 9px 0;
  animation: ticker 20s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.hero {
  min-height: 640px;
  padding: 44px clamp(18px, 5vw, 72px) 34px;
  background:
    linear-gradient(135deg, rgba(15, 143, 116, 0.13), rgba(246, 183, 60, 0.12)),
    #f8fbfd;
}

.slider {
  position: relative;
  max-width: 1180px;
  min-height: 540px;
  margin: 0 auto;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: 42px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.eyebrow,
.section-heading p,
.dash-header p {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.slide h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.slide p {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.btn.primary {
  background: var(--brand);
  color: white;
}

.btn.dark {
  background: var(--ink);
  color: white;
}

.btn.ghost {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.btn.full {
  width: 100%;
}

.btn.small {
  min-height: 38px;
  padding: 9px 12px;
  white-space: nowrap;
}

.product-panel,
.form-card,
.login-card,
.admin-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.product-panel {
  overflow: hidden;
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #edf4f1;
}

.panel-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.metric-grid div {
  min-height: 120px;
  padding: 22px;
  background: white;
}

.metric-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.metric-grid span,
.muted,
small {
  color: var(--muted);
}

.slider-dots {
  position: absolute;
  bottom: 4px;
  left: 0;
  display: flex;
  gap: 9px;
}

.slider-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #c5d1dc;
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--brand);
}

.card-showcase {
  padding: 66px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fb 100%);
}

.showcase-heading {
  max-width: 1120px;
  margin: 0 auto 26px;
}

.showcase-heading p {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.showcase-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 230px 1fr;
  min-height: 348px;
  border: 1px solid rgba(217, 225, 234, 0.9);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 48px rgba(21, 32, 51, 0.14);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.55s ease var(--delay),
    transform 0.55s ease var(--delay),
    box-shadow 0.25s ease;
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 26px 60px rgba(21, 32, 51, 0.2);
}

.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(15, 143, 116, 0.08), rgba(246, 183, 60, 0.11)),
    #f3f7fa;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  filter: drop-shadow(0 12px 20px rgba(21, 32, 51, 0.18));
  transition: transform 0.55s ease, filter 0.55s ease;
}

.feature-card:hover .feature-media img {
  transform: scale(1.06) rotate(-1deg);
  filter: drop-shadow(0 18px 26px rgba(21, 32, 51, 0.24)) saturate(1.08) contrast(1.03);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(255, 255, 255, 0.42) 50%, transparent 58%, transparent 100%);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 0.25s ease, transform 0.55s ease;
}

.feature-card:hover::after {
  opacity: 1;
  transform: translateX(70%);
}

.feature-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 22px;
  color: var(--ink);
}

.feature-copy span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f8f0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.feature-copy h3 {
  margin: 0;
  font-size: 24px;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats-band div {
  padding: 24px clamp(18px, 5vw, 72px);
  background: white;
}

.stats-band strong {
  display: block;
  font-size: 32px;
}

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

.forms-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px 18px 72px;
}

.forms-band.download-only {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  padding-bottom: 28px;
}

.hardware-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 72px;
}

.hardware-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 143, 116, 0.12), rgba(246, 183, 60, 0.12)),
    #f3f7fa;
  box-shadow: var(--shadow);
}

.hardware-visual::before {
  content: "Hardware ID";
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(21, 32, 51, 0.82);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.hardware-visual img {
  width: min(92%, 470px);
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(21, 32, 51, 0.22));
  transform: rotate(-1deg);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.hardware-visual:hover img {
  transform: rotate(0deg) scale(1.04);
  filter: drop-shadow(0 24px 34px rgba(21, 32, 51, 0.28));
}

.hardware-placeholder {
  display: grid;
  gap: 8px;
  width: min(82%, 360px);
  padding: 34px;
  border: 1px dashed #aebdca;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.hardware-placeholder strong {
  font-size: 30px;
}

.hardware-placeholder span,
.form-intro {
  color: var(--muted);
  line-height: 1.55;
}

.hardware-form {
  align-content: start;
}

.form-intro {
  margin: -8px 0 4px;
}

.software-preview {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 76px;
}

.software-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101827;
  box-shadow: 0 24px 70px rgba(21, 32, 51, 0.2);
}

.software-frame::before {
  content: "";
  display: block;
  height: 42px;
  background:
    radial-gradient(circle at 22px 50%, #ff6868 0 6px, transparent 7px),
    radial-gradient(circle at 44px 50%, #f6b73c 0 6px, transparent 7px),
    radial-gradient(circle at 66px 50%, #32c48d 0 6px, transparent 7px),
    #152033;
}

.software-frame img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  background: #f6f8fb;
  transition: transform 0.45s ease;
}

.software-frame:hover img {
  transform: scale(1.015);
}

.form-card,
.login-card,
.admin-section {
  padding: 24px;
}

.section-heading h2,
.login-card h1,
.dash-header h1 {
  margin: 0 0 22px;
  font-size: 30px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #314059;
  font-weight: 800;
}

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

fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(15, 143, 116, 0.14);
}

.toast,
.popup,
.inline-alert {
  border-radius: 8px;
}

.toast {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 40;
  max-width: 360px;
  padding: 14px 16px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.toast.error,
.inline-alert.error {
  background: #fff2f2;
  color: var(--danger);
  border: 1px solid #f2caca;
}

.popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(370px, calc(100vw - 36px));
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.popup.show {
  opacity: 1;
  transform: translateY(0);
}

.popup h3 {
  margin: 0 28px 10px 0;
}

.popup p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  cursor: pointer;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e7f5f0, #fff7e8);
}

.login-shell {
  width: min(420px, calc(100vw - 36px));
}

.login-card {
  display: grid;
  gap: 18px;
}

.inline-alert {
  padding: 12px 14px;
  background: #effaf6;
  color: var(--brand-dark);
  border: 1px solid #bde7d8;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--soft);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--ink);
  color: white;
}

.sidebar a:not(.brand) {
  padding: 12px;
  border-radius: 8px;
  color: #dfe7f0;
}

.sidebar a:not(.brand):hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar a.active {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.dashboard {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 22px;
  padding: 28px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.dash-stats span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.admin-help-grid div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(21, 32, 51, 0.08);
}

.admin-help-grid strong {
  color: var(--ink);
  font-size: 17px;
}

.admin-help-grid span {
  color: var(--muted);
  line-height: 1.45;
}

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

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

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 5px;
}

code {
  display: inline-block;
  max-width: 260px;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--soft);
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff8e7;
  color: #936611;
  font-weight: 800;
}

.status.approved {
  background: #e9f8f0;
  color: var(--brand-dark);
}

.status.paid {
  background: #e9f8f0;
  color: var(--brand-dark);
}

.status.failed,
.status.error {
  background: #fff2f2;
  color: var(--danger);
}

.inline-form {
  display: contents;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.error-text {
  color: var(--danger);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

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

.slide-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.success-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 143, 116, 0.15), rgba(246, 183, 60, 0.12)),
    #f7fafc;
}

.success-shell {
  width: min(860px, 100%);
}

.success-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-size: 42px;
  font-weight: 900;
}

.success-card h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.04;
}

.success-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.success-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 8px 0;
}

.success-details span {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.success-details strong {
  color: var(--ink);
}

.download-cta {
  min-width: min(320px, 100%);
  min-height: 54px;
  font-size: 17px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.next-steps {
  width: 100%;
  padding: 18px;
  border-radius: 8px;
  background: #fff9ed;
  text-align: left;
}

.next-steps h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.next-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .site-header,
  .dash-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 6px;
  }

  nav a {
    display: grid;
    place-items: center;
    flex: 1 1 104px;
    min-width: 0;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
    padding: 28px 18px 24px;
  }

  .slider {
    min-height: 0;
    padding-bottom: 36px;
  }

  .slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
  }

  .slide.active {
    display: grid;
  }

  .product-panel {
    margin-bottom: 0;
  }

  .slide p {
    font-size: 18px;
  }

  .slider-dots {
    bottom: 0;
  }

  .forms-band,
  .stats-band,
  .feature-cards,
  .hardware-section,
  .admin-help-grid,
  .success-details,
  .admin-grid,
  .dashboard-body,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .feature-card {
    min-height: 320px;
  }

  .hardware-section {
    padding-bottom: 54px;
  }

  .hardware-visual {
    min-height: 320px;
  }

  .success-actions .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 14px 16px;
  }

  nav a {
    flex-basis: 100%;
  }

  .slide h1 {
    font-size: 38px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid div {
    min-height: 92px;
    padding: 18px;
  }

  .card-showcase,
  .forms-band,
  .forms-band.download-only,
  .hardware-section,
  .software-preview {
    padding-left: 14px;
    padding-right: 14px;
  }

  .feature-card {
    grid-template-rows: 210px 1fr;
  }

  .success-body {
    padding: 14px;
  }

  .success-card {
    padding: 24px 16px;
    overflow: hidden;
  }

  .success-card h1 {
    font-size: 32px;
  }

  .success-copy {
    max-width: 100%;
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .dashboard {
    padding: 16px;
  }
}
