/* Alfion STS single-page site. Follows the previous site's layout: light sections, blue gradient accent, Poppins headings. */

:root {
  --blue-1: #60bdfc;
  --blue-2: #6381e5;
  --grad: linear-gradient(45deg, #60bdfc 0%, #6381e5 100%);
  --text: #272727;
  --muted: #5f6672;
  --light: #f7f9fb;
  --light-2: #eef1f5;
  --line: #e4e9ee;
  --dark: #1f2329;
  --banner-1: #1b2a44;
  --banner-2: #2b4a7a;

  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(39, 39, 39, 0.08);
  --header-h: 64px;

  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--text);
  --bs-body-bg: #ffffff;
  --bs-heading-color: var(--text);
  --bs-link-color: var(--blue-2);
  --bs-link-hover-color: #4a68cf;
  --bs-link-color-rgb: 99, 129, 229;
  --bs-link-hover-color-rgb: 74, 104, 207;
  --bs-border-color: var(--line);
}

/* Base --------------------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { background: #fff; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

p { max-width: 70ch; }

:focus-visible { outline: 3px solid var(--blue-1); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--dark); color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

/* Buttons ------------------------------------------------------------ */

.btn { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; border-radius: 999px; padding: 0.6rem 1.5rem; }

.btn-primary {
  --bs-btn-bg: var(--blue-2);
  --bs-btn-border-color: transparent;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #4a68cf;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: #4a68cf;
  --bs-btn-active-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 99, 129, 229;
  background-image: var(--grad);
  border: 0;
}
.btn-primary:hover, .btn-primary:focus-visible { background-image: linear-gradient(45deg, #4fb0f5 0%, #5571dc 100%); }
.btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, 0.6); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--banner-1); --bs-btn-hover-border-color: #fff; }

/* Header ------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(39, 39, 39, 0.08); }

.topbar { background: var(--light); font-size: 0.85rem; color: var(--muted); }
.topbar .container { display: flex; gap: 1.5rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--blue-2); }
.topbar i { color: var(--blue-2); margin-right: 0.4rem; }

.navbar { padding: 0.55rem 0; }
.navbar-brand { padding: 0; margin-right: 1rem; }
.navbar-brand img { display: block; height: 36px; width: auto; }
.nav-tools { display: flex; align-items: center; gap: 0.5rem; }

.navbar-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.5rem 0.8rem;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--blue-2); }

.lang-switch { display: flex; gap: 0.1rem; margin: 0; }
.lang-switch a {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.75rem;
  color: var(--muted); text-decoration: none; padding: 0.3rem 0.45rem; border-radius: 5px;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-current { color: var(--blue-2); background: var(--light-2); }

.navbar-toggler { border: 1px solid var(--line); padding: 0.35rem 0.55rem; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .topbar { display: none; }
  .navbar-collapse { border-top: 1px solid var(--line); margin-top: 0.6rem; padding: 0.4rem 0 0.6rem; }
  .navbar-nav .nav-link { padding: 0.55rem 0.25rem; }
}

/* Sections ----------------------------------------------------------- */

.section { padding: 52px 0; }
.section--light { background: var(--light); }
.section-title { text-align: center; font-size: 1.75rem; margin-bottom: 0.4rem; }
.section-lead { text-align: center; color: var(--muted); max-width: 44rem; margin: 0 auto 2rem; }
.section-title + .row { margin-top: 1.5rem; }

@media (max-width: 767.98px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .section-lead { margin-bottom: 1.5rem; }
}

/* Banner ------------------------------------------------------------- */

.banner {
  padding: 56px 0 60px;
  color: #fff;
  background: linear-gradient(120deg, var(--banner-1) 0%, var(--banner-2) 70%, #35609a 100%);
}
.banner__kicker { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-1); margin: 0 0 0.75rem; }
.banner__title { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 600; margin: 0 0 1.25rem; min-height: 1.3em; }
.banner__text { max-width: 760px; margin: 0 0 0.6rem; color: rgba(255, 255, 255, 0.86); font-size: 1.05rem; }
.banner__text:last-of-type { margin-bottom: 1.6rem; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The three rotating words of the headline: one orchestrated motion, cross-fade every three seconds. */
.rotator { display: inline-grid; }
.rotator > span { grid-area: 1 / 1; opacity: 0; animation: rotate-words 9s infinite; }
.rotator > span:nth-child(2) { animation-delay: 3s; }
.rotator > span:nth-child(3) { animation-delay: 6s; }

@keyframes rotate-words {
  0% { opacity: 0; transform: translateY(0.3em); }
  6%, 28% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: translateY(-0.3em); }
}

@media (max-width: 575.98px) {
  .banner { padding: 40px 0 44px; }
}

/* Features ----------------------------------------------------------- */

.feature { text-align: center; padding: 0.5rem 0.75rem; }
.feature__icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #eef6fe; color: var(--blue-2); font-size: 1.6rem; margin-bottom: 0.9rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.feature p { margin: 0 auto; font-size: 0.97rem; color: var(--muted); max-width: 34ch; }
.feature strong { color: var(--text); font-weight: 600; }

/* New features ------------------------------------------------------- */

.news { display: flex; gap: 0.9rem; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.news__icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.15rem; }
.news h3 { font-size: 1rem; margin: 0.2rem 0 0.3rem; }
.news p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.badge-new { display: inline-block; vertical-align: middle; margin-left: 0.3rem; background: var(--grad); color: #fff; font: 600 0.65rem var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; }

/* Video -------------------------------------------------------------- */

.video__title { font-size: 1.5rem; margin-bottom: 0.25rem; }
.video__subtitle { font-family: var(--font-display); font-weight: 500; color: var(--blue-2); margin-bottom: 1rem; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  border: 0; cursor: pointer; color: #fff; font: 500 0.95rem var(--font-display);
  background: linear-gradient(45deg, rgba(96, 189, 252, 0.75), rgba(99, 129, 229, 0.75));
}
.video__play i { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--blue-2); font-size: 2.4rem; }
.video__play:hover i { background: #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ ---------------------------------------------------------------- */

.faq { --bs-accordion-bg: transparent; --bs-accordion-border-color: transparent; --bs-accordion-btn-focus-box-shadow: none; }
.faq .accordion-item { background: transparent; border: 0; margin-bottom: 0.5rem; }
.faq .accordion-button {
  background: var(--light-2); color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  border-radius: 999px !important; padding: 0.55rem 1rem 0.55rem 0.55rem; box-shadow: none; gap: 0.75rem;
}
.faq .accordion-button:not(.collapsed) { background: var(--light-2); color: var(--blue-2); }
.faq .accordion-button::after { display: none; }
.faq .accordion-button::before {
  content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font: 600 1.1rem/1 var(--font-display);
}
.faq .accordion-button:not(.collapsed)::before { content: "\2212"; }
.faq .accordion-body { padding: 0.9rem 1rem 1rem 3rem; color: var(--muted); font-size: 0.97rem; }
.faq .accordion-body p:last-child { margin-bottom: 0; }
.faq .accordion-body ul { padding-left: 1.1rem; margin-bottom: 0.5rem; }
.faq .accordion-body li { font-weight: 600; color: var(--text); }

.summary__title { font-size: 1.15rem; margin-bottom: 1rem; }
.summary li { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; color: var(--muted); font-size: 0.97rem; }
.summary li i { color: var(--blue-2); margin-top: 0.25rem; font-size: 0.8rem; }
.summary strong { color: var(--text); font-weight: 600; }

/* References --------------------------------------------------------- */

.ref { height: 100%; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 0.75rem 0.9rem; }
.ref img { height: 60px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 0.7rem; }
.ref h3 { font-size: 0.86rem; font-weight: 500; margin: 0 0 0.15rem; }
.ref p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Contact ------------------------------------------------------------ */

.contact-info li { display: flex; gap: 0.7rem; margin-bottom: 0.75rem; font-size: 0.97rem; }
.contact-info i { color: var(--blue-2); margin-top: 0.2rem; }
.contact-info a { color: var(--text); text-decoration: none; }
.contact-info a:hover { color: var(--blue-2); }
.contact-info__company { font-family: var(--font-display); font-weight: 600; margin-bottom: 1rem; }

.demo-form .form-control { background: var(--light-2); border: 1px solid transparent; border-radius: 10px; padding: 0.7rem 0.95rem; font-size: 0.97rem; }
.demo-form .form-control:focus { background: #fff; border-color: var(--blue-1); box-shadow: 0 0 0 0.2rem rgba(96, 189, 252, 0.25); }
.demo-form .form-check-label { font-size: 0.9rem; color: var(--muted); }
.form-check-input:checked { background-color: var(--blue-2); border-color: var(--blue-2); }
.form-check-input:focus { border-color: var(--blue-1); box-shadow: 0 0 0 0.2rem rgba(96, 189, 252, 0.25); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-alert { font-size: 0.95rem; }

/* Footer ------------------------------------------------------------- */

.site-footer { background: var(--dark); color: #aab2bd; padding: 2.5rem 0 1.25rem; font-size: 0.9rem; }
.footer-title { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #cfd6de; margin-bottom: 0.9rem; }
.footer-heading { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 0.75rem; }
.footer-links li { margin-bottom: 0.35rem; }
.site-footer a { color: #d7dde4; text-decoration: none; }
.site-footer a:hover { color: var(--blue-1); }
.social { display: flex; gap: 0.75rem; margin: 0; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 1rem; }
.social a:hover { background: var(--grad); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 1.75rem; padding-top: 1rem; font-size: 0.82rem; color: #8b94a1; }

/* Privacy and status pages ------------------------------------------- */

.prose { max-width: 70ch; }
.prose h1 { font-size: 1.75rem; }
.prose h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.status-page { max-width: 36rem; margin-inline: auto; text-align: center; padding: 2rem 0; }
.status-page p { margin-inline: auto; }
.status-code { font: 600 4.5rem var(--font-display); color: var(--line); line-height: 1; margin: 0 0 0.5rem; }

/* Motion and print --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotator > span { animation: none; }
  .rotator > span:first-child { opacity: 1; }
}

@media print {
  .site-header, .site-footer, .video__play, .skip-link, .banner__actions { display: none !important; }
  .section { padding: 1rem 0; }
}
