:root {
  color-scheme: light;

  --bbs-green: #00b879;
  --bbs-green-hover: #009e68;
  --bbs-green-dark: #087b57;
  --bbs-teal: #0099a8;
  --bbs-mint: #35e6b1;
  --bbs-midnight: #08171d;
  --bbs-ink: #07141b;

  --bbs-bg: #f7f9f8;
  --bbs-bg-deep: #f7f9f8;
  --bbs-bg-teal: #edf9f5;
  --bbs-bg-soft: #f7f9f8;

  --bbs-surface: #ffffff;
  --bbs-surface-2: #edf9f5;
  --bbs-surface-3: #dce5e2;

  --bbs-white: #ffffff;
  --bbs-text: #07141b;
  --bbs-text-soft: #66737a;
  --bbs-text-muted: #66737a;
  --bbs-text-disabled: #a1a8b3;

  --bbs-border: #dce5e2;
  --bbs-border-light: #dce5e2;
  --bbs-border-green: rgba(0, 184, 121, 0.3);

  --bbs-green-soft: rgba(0, 184, 121, 0.08);
  --bbs-green-medium: rgba(0, 184, 121, 0.16);
  --bbs-green-glow: rgba(53, 230, 177, 0.2);

  --bbs-success: #00b879;
  --bbs-error: #ff6b6b;
  --bbs-warning: #f5c451;
  --bbs-info: #4da3ff;

  --bbs-shadow: 0 18px 50px rgba(7, 20, 27, 0.08);
  --bbs-shadow-green: 0 14px 32px rgba(0, 184, 121, 0.12);

  --bbs-gradient-dark: linear-gradient(135deg, #07141b 0%, #0b2528 65%, #063b33 100%);
  --bbs-gradient-green: linear-gradient(135deg, #00b879 0%, #0099a8 100%);
  --bbs-gradient-light: linear-gradient(135deg, #ffffff 0%, #edf9f5 100%);
  --bbs-gradient-overlay: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.9) 45%,
    rgba(255, 255, 255, 0.18) 100%
  );
}

html,
body {
  background: var(--bbs-bg-deep);
  color: var(--bbs-text-soft);
}

body {
  min-height: 100vh;
}

/* Preserve the original ItSulu typography scale. */
html,
body {
  font-size: 15px;
  line-height: 170%;
}

.mil-h1,
h1 {
  font-size: 60px;
}

.mil-h2,
h2 {
  font-size: 42px;
}

.mil-h3,
h3 {
  font-size: 26px;
}

.mil-h4,
h4 {
  font-size: 22px;
}

.mil-h5,
h5 {
  font-size: 18px;
}

.mil-h6,
h6 {
  font-size: 16px;
}

.mil-button,
.mil-link {
  font-size: 16px;
}

.mil-text-sm {
  font-size: 13px;
}

@media screen and (max-width: 992px) {
  .mil-h1,
  h1 {
    font-size: 42px;
  }

  .mil-h2,
  h2 {
    font-size: 32px;
  }

  .mil-h3.mil-up-font,
  h3.mil-up-font {
    font-size: 26px;
  }

  .mil-h4,
  h4 {
    font-size: 24px;
  }

  .mil-h5,
  h5 {
    font-size: 22px;
  }
}

::selection {
  background: var(--bbs-green-medium);
  color: var(--bbs-text);
}

.mil-wrapper {
  min-height: 100vh;
  background: var(--bbs-bg-deep);
}

.mil-h1,
.mil-h2,
.mil-h3,
.mil-h4,
.mil-h5,
.mil-h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bbs-text);
}

p,
.mil-light-soft,
.mil-dark-soft {
  color: var(--bbs-text-soft);
}

.mil-light,
.mil-dark,
.mil-link,
.mil-list-title {
  color: var(--bbs-text);
}

.mil-deep-bg h1,
.mil-deep-bg h2,
.mil-deep-bg h3,
.mil-deep-bg h4,
.mil-deep-bg h5,
.mil-deep-bg h6,
.mil-gradient-bg h1,
.mil-gradient-bg h2,
.mil-gradient-bg h3,
.mil-gradient-bg h4,
.mil-gradient-bg h5,
.mil-gradient-bg h6,
.mil-deep-bg .mil-light,
.mil-gradient-bg .mil-light {
  color: var(--bbs-white);
}

.mil-accent,
.mil-breadcrumbs li a:hover,
.mil-top-panel .mil-navigation nav ul li a:hover,
.mil-top-panel .mil-navigation nav ul li.mil-has-children ul li a:hover {
  color: #00b879;
}

.mil-dark-bg {
  background-color: var(--bbs-bg-deep);
}

.mil-deep-bg {
  background: var(--bbs-gradient-dark);
}

.mil-gradient-bg {
  background: var(--bbs-gradient-dark);
}

.mil-add-page .mil-overlay {
  background: var(--bbs-gradient-overlay);
}

.mil-add-page > .container {
  z-index: 2;
}

/* Header and navigation */
.mil-top-panel,
.mil-top-panel.mil-top-panel-transparent {
  background: #073f36;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mil-top-panel .mil-navigation nav ul li a,
.mil-top-panel.mil-top-panel-transparent .mil-navigation nav ul li a {
  color: rgba(255, 255, 255, 0.88);
}

.mil-top-panel .mil-navigation nav ul li.mil-has-children::before,
.mil-top-panel .mil-navigation nav ul li.mil-has-children > a::before {
  border-color: #00b879;
}

.mil-top-panel .mil-navigation nav ul li.mil-has-children ul {
  background: rgba(4, 54, 46, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--bbs-shadow);
}

.mil-top-panel .mil-navigation nav ul li.mil-has-children ul li a {
  color: rgba(255, 255, 255, 0.78);
}

.mil-top-panel .mil-navigation nav .bbs-nav-cta {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bbs-gradient-green);
  color: #ffffff;
  font-weight: 600;
}

.mil-top-panel .mil-navigation nav .bbs-nav-cta:hover {
  background: var(--bbs-green-hover);
  color: #ffffff;
  box-shadow: var(--bbs-shadow-green);
}

.mil-menu-btn span,
.mil-menu-btn span::before,
.mil-menu-btn span::after,
.mil-top-panel.mil-top-panel-transparent .mil-menu-btn span,
.mil-top-panel.mil-top-panel-transparent .mil-menu-btn span::before,
.mil-top-panel.mil-top-panel-transparent .mil-menu-btn span::after {
  background: #ffffff;
}

.mil-menu-btn {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #ffffff;
}

/* Buttons and links */
.mil-button {
  border-color: transparent;
  color: #ffffff;
  box-shadow: none;
}

.mil-button.mil-accent-bg {
  background: var(--bbs-gradient-green);
  color: #ffffff;
}

.mil-button.mil-accent-bg:hover {
  background: var(--bbs-green-hover);
  filter: none;
  box-shadow: var(--bbs-shadow-green);
  transform: translateY(-1px);
}

.mil-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.mil-button.mil-border {
  background: #ffffff;
  border: 1px solid var(--bbs-border-light);
  color: var(--bbs-text);
}

.mil-button.mil-border:hover {
  border-color: #00b879;
  color: #00b879;
  box-shadow: none;
}

.mil-link:hover {
  color: #00b879;
}

.mil-link i {
  background: #00b879;
  color: #02100b;
}

/* Reusable surfaces and cards */
.bbs-card,
.mil-card,
.mil-price-card,
.mil-review {
  background: var(--bbs-surface);
  border: 1px solid var(--bbs-border);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.bbs-card:hover,
.mil-card:hover,
.mil-price-card:hover,
.mil-review:hover {
  background: var(--bbs-surface-2);
  border-color: var(--bbs-border-green);
  box-shadow: var(--bbs-shadow-green);
}

/* Inner-page banners */
.mil-banner-sm {
  background: var(--bbs-gradient-dark);
  border-bottom: 1px solid var(--bbs-border);
}

.mil-banner-sm .mil-background-image {
  filter: none;
  opacity: 0.08;
}

.mil-banner-sm h1 {
  color: var(--bbs-white);
}

.mil-breadcrumbs li a,
.mil-breadcrumbs li span {
  color: var(--bbs-text-muted);
}

.mil-breadcrumbs li::after {
  background: #00b879;
}

/* Contact page and forms */
.mil-contact {
  background: var(--bbs-bg-deep);
  color: var(--bbs-text-soft);
}

.mil-contact form > h4 {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bbs-border);
}

.bbs-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mil-input-frame label {
  margin-bottom: 10px;
  color: var(--bbs-text);
}

.mil-input-frame input,
.mil-input-frame textarea,
.mil-input-frame.mil-dark-input input,
.mil-input-frame.mil-dark-input textarea {
  width: 100%;
  border: 1px solid var(--bbs-border);
  border-radius: 12px;
  background: var(--bbs-bg-soft);
  color: var(--bbs-text);
  caret-color: #00b879;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.mil-input-frame input,
.mil-input-frame.mil-dark-input input {
  height: 58px;
  padding: 0 18px;
}

.mil-input-frame textarea,
.mil-input-frame.mil-dark-input textarea {
  padding: 18px;
}

.mil-input-frame input:hover,
.mil-input-frame textarea:hover,
.mil-input-frame.mil-dark-input input:hover,
.mil-input-frame.mil-dark-input textarea:hover {
  border-color: var(--bbs-border-light);
}

.mil-input-frame input:focus,
.mil-input-frame textarea:focus,
.mil-input-frame.mil-dark-input input:focus,
.mil-input-frame.mil-dark-input textarea:focus {
  border-color: #00b879;
  outline: none;
  background: var(--bbs-surface);
  box-shadow: 0 0 0 3px var(--bbs-green-soft);
}

.mil-input-frame input::placeholder,
.mil-input-frame textarea::placeholder,
.mil-input-frame.mil-dark-input input::placeholder,
.mil-input-frame.mil-dark-input textarea::placeholder {
  color: #66736e;
  opacity: 1;
}

.mil-attach-frame.mil-dark {
  padding: 22px;
  border: 1px dashed var(--bbs-border-light);
  border-radius: 12px;
  background: var(--bbs-bg-soft);
}

.mil-attach-frame.mil-dark i,
.mil-attach-frame.mil-dark .mil-custom-file-input {
  color: var(--bbs-text);
}

.mil-attach-frame.mil-dark .mil-custom-file-input:hover {
  color: #00b879;
}

.mil-contact aside {
  align-self: flex-start;
  padding: 34px;
  border: 1px solid var(--bbs-border);
  border-radius: 16px;
  background: var(--bbs-surface);
  box-shadow: var(--bbs-shadow);
}

.mil-divider {
  background: var(--bbs-border);
}

.mil-divider::before,
.mil-divider::after {
  border-color: var(--bbs-surface-3);
}

.mil-icon-frame.mil-icon-bg,
.mil-number-icon {
  /* background: #fff; */
  border: 1px solid var(--bbs-border-green);
}

.mil-icon-frame.mil-icon-bg i {
  position: relative;
  z-index: 1;
  color: #00b879;
  font-size: 24px;
}

/* Newsletter field */
.mil-subscribe-form input {
  border: 1px solid var(--bbs-border-light);
  background: #ffffff;
  color: var(--bbs-text);
  box-shadow: var(--bbs-shadow);
}

.mil-subscribe-form input::placeholder {
  color: var(--bbs-text-muted);
}

.mil-subscribe-form input:focus {
  border-color: #00b879;
  box-shadow:
    var(--bbs-shadow),
    0 0 0 3px var(--bbs-green-soft);
}

/* Footer */
.mil-addition-bottom {
  background: rgba(247, 250, 249, 0.94);
  border-top: 1px solid var(--bbs-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mil-addition-bottom p {
  color: var(--bbs-text-muted);
}

.bb-page-loading {
  overflow: hidden;
}

.bb-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(110deg, #ffffff 0%, #f4f9f7 45%, #e9f5f0 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.bb-preloader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bb-preloader__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bb-preloader__mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid var(--bbs-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 24px rgba(6, 216, 137, 0.18);
}

.bb-preloader__mark img {
  display: block;
  width: 56px;
  height: auto;
  object-fit: contain;
}

.bb-preloader__ring {
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: rgba(6, 216, 137, 0.95);
  border-left-color: rgba(6, 216, 137, 0.2);
  border-radius: 50%;
  animation: bb-preloader-spin 1.15s linear infinite;
}

@keyframes bb-preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-preloader,
  .bb-preloader__ring {
    animation: none;
    transition-duration: 0.01ms;
  }
}

.bb-logo {
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 11px;
  flex-shrink: 0;
  overflow: visible;
}

.bb-logo img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.bb-logo__copy {
  display: flex;
  flex-direction: column;
  color: var(--bbs-text);
  line-height: 1.1;
}

.bb-logo__copy strong {
  font-family: Syne, sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bb-logo__copy small {
  margin-top: 5px;
  color: var(--bbs-text-muted);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.bb-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.bb-footer-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mil-form-message {
  margin-top: 12px;
  font-size: 14px;
}

.mil-form-error {
  color: var(--bbs-error);
}

.mil-form-success {
  color: var(--bbs-success);
}

.mil-subscribe-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

@media screen and (max-width: 1200px) {
  .mil-top-panel .mil-navigation {
    background: #073f36;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--bbs-shadow);
  }

  .mil-top-panel .mil-navigation nav ul li.mil-has-children ul {
    background: #06372f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .mil-top-panel.mil-top-panel-transparent .mil-navigation nav ul li a {
    color: #ffffff;
  }
}

@media screen and (max-width: 768px) {
  .mil-contact aside {
    padding: 26px;
  }

  .mil-subscribe-form input {
    padding-right: 30px;
  }
}

/* technologies */
.bbs-tech-stack {
  width: 100%;
  overflow: hidden;

  border-top: 1px solid var(--bbs-border);
  border-left: 1px solid var(--bbs-border);
}

.bbs-tech-marquee {
  width: 100%;
  overflow: hidden;

  container-type: inline-size;
}

.bbs-tech-track {
  display: flex;
  width: max-content;

  will-change: transform;

  animation: bbs-tech-scroll 45s linear infinite;
}

.bbs-tech-group {
  display: flex;
  flex-shrink: 0;
}

/* 6 visible at once */
.bbs-tech-item {
  width: calc(100cqw / 6);
  min-width: calc(100cqw / 6);
  height: 150px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 16px;
  padding: 24px;

  background: #ffffff;

  border-right: 1px solid var(--bbs-border);
  border-bottom: 1px solid var(--bbs-border);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.bbs-tech-icon {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #f7f9f8;
}

.bbs-tech-icon img {
  width: 36px;
  height: 36px;

  object-fit: contain;

  filter: none;

  transition: transform 0.25s ease;
}

.bbs-tech-item > span {
  color: var(--bbs-text);

  font-size: 14px;
  font-weight: 600;

  text-align: center;
  white-space: nowrap;
}

.bbs-tech-item:hover {
  background: var(--bbs-surface-2);
  border-color: rgba(6, 216, 137, 0.3);
}

.bbs-tech-item:hover img {
  transform: scale(1.1);
}

.bbs-tech-stack:hover .bbs-tech-track {
  animation-play-state: paused;
}

@keyframes bbs-tech-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 991px) {
  .bbs-tech-item {
    width: calc(100cqw / 4);
    min-width: calc(100cqw / 4);
  }
}

@media (max-width: 575px) {
  .bbs-tech-item {
    width: calc(100cqw / 2);
    min-width: calc(100cqw / 2);

    height: 130px;
  }

  .bbs-tech-icon {
    width: 54px;
    height: 54px;
  }

  .bbs-tech-icon img {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbs-tech-track {
    animation: none;
  }
}
