/* ==========================================================================
   MODERN IT SOLUTIONS Sp. z o.o. — theme
   Built on Bootstrap 5. Brand accent: #f97316 (Signal Orange) + #38bdf8 cyan.
   ========================================================================== */

:root {
  --mis-navy: #0b1220;
  --mis-navy-2: #0f1b2e;
  --mis-slate: #1b2a41;
  --mis-orange: #f97316;
  --mis-orange-2: #fb923c;
  --mis-cyan: #38bdf8;
  --mis-ink: #0b1220;
  --mis-muted: #5b6b82;
  --mis-line: rgba(15, 27, 46, .08);
  --mis-radius: 16px;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: #243043;
  --bs-body-bg: #ffffff;
  scroll-behavior: smooth;
}

* { scroll-margin-top: 84px; }

body {
  font-family: var(--bs-body-font-family);
  color: #243043;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display-4, .display-5 {
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--mis-ink);
}

.text-orange { color: var(--mis-orange) !important; }
.bg-navy { background-color: var(--mis-navy) !important; }

.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--mis-orange);
  margin-bottom: .75rem;
}

.lead-muted { color: var(--mis-muted); font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .7rem 1.6rem; }
.btn-brand {
  background: linear-gradient(135deg, var(--mis-orange), var(--mis-orange-2));
  border: none; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(249, 115, 22, .7);
}
.btn-brand:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline-light-soft {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; background: transparent;
}
.btn-outline-light-soft:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(11, 18, 32, .85);
  backdrop-filter: saturate(160%) blur(12px);
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled { background: rgba(11, 18, 32, .97); box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .6); }
.navbar-brand { font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.05; }
.navbar-brand:hover, .navbar-brand:focus { color: #fff; }
.navbar-brand:hover .sub, .navbar-brand:focus .sub { color: rgba(255, 255, 255, .55); }
.navbar-brand img { height: 34px; width: 34px; }
.navbar-brand .brand-name { font-size: 1.02rem; font-weight: 800; white-space: nowrap; }
.navbar-brand .brand-name .sub { font-weight: 500; color: rgba(255, 255, 255, .55); letter-spacing: .02em; }
.navbar .nav-link { color: rgba(255, 255, 255, .82); font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.lang-switch a { color: rgba(255, 255, 255, .6); font-weight: 600; text-decoration: none; padding: 0 .25rem; }
.lang-switch a.active { color: var(--mis-orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(56, 189, 248, .18), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(249, 115, 22, .20), transparent 55%),
    linear-gradient(180deg, var(--mis-navy), var(--mis-navy-2));
  overflow: hidden;
  padding: 160px 0 110px;
}
@media (max-width: 768px) { .hero { padding: 130px 0 70px; } }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; }
.hero p.lead { color: rgba(255, 255, 255, .8); font-size: 1.2rem; max-width: 40ch; }
.hero-tagline {
  display: inline-block; margin-top: 1.5rem;
  font-style: italic; color: rgba(255, 255, 255, .65);
  border-left: 2px solid var(--mis-orange); padding-left: .85rem;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-tag {
  font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; padding: .35rem .85rem;
}
.tech-tag .bi { color: var(--mis-orange); margin-right: .3rem; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
  pointer-events: none;
}
.hero-stats { gap: 2.5rem; }
.hero-stats > div { text-align: center; }
.hero-stats .num { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stats .lbl { color: rgba(255, 255, 255, .6); font-size: .85rem; }

/* ---------- Service cards ---------- */
.service-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--mis-line);
  border-radius: var(--mis-radius);
  padding: 2rem 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(11, 18, 32, .25);
  border-color: rgba(249, 115, 22, .4);
}
.service-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--mis-orange);
  background: rgba(249, 115, 22, .1);
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--mis-muted); margin-bottom: 0; font-size: .975rem; }

/* ---------- Feature / split ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: .75rem; padding: .55rem 0; align-items: flex-start; }
.feature-list .bi { color: var(--mis-orange); flex: 0 0 auto; margin-top: .2rem; }
.panel-dark {
  background: linear-gradient(160deg, var(--mis-slate), var(--mis-navy));
  color: #fff; border-radius: 22px; padding: 2.5rem;
}
.panel-dark h2, .panel-dark h3 { color: #fff; }

/* ---------- Partners ---------- */
.partner-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid var(--mis-line); border-radius: 999px;
  padding: .6rem 1.25rem; font-weight: 600; color: var(--mis-ink);
  background: #fff;
}
.partner-badge .bi { color: var(--mis-orange); }

/* ---------- Research ---------- */
.research { background: #f6f8fb; }
.stat-pill {
  background: #fff; border: 1px solid var(--mis-line); border-radius: var(--mis-radius);
  padding: 1.5rem; height: 100%;
}
.stat-pill .num { font-size: 1.9rem; font-weight: 800; color: var(--mis-orange); }
.stat-pill .lbl { color: var(--mis-muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--mis-navy); color: #fff; }
.contact h2 { color: #fff; }
.contact .form-control, .contact .form-select {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; border-radius: 12px; padding: .8rem 1rem;
}
.contact .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.contact .form-control:focus, .contact .form-select:focus {
  background: rgba(255, 255, 255, .1);
  border-color: var(--mis-orange);
  box-shadow: 0 0 0 .2rem rgba(249, 115, 22, .2);
  color: #fff;
}
.contact a { color: var(--mis-orange-2); text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.legal-line { color: rgba(255, 255, 255, .55); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #070c16; color: rgba(255, 255, 255, .6); padding: 2.5rem 0; }
.site-footer a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  :root { scroll-behavior: auto; }
}
