/* =============================================================
 * enterprise-base.css
 * Reusable BitFire foundation: tokens, reset, layout helpers,
 * navigation, buttons, sections, forms, and footer.
 * Load this before a page-specific stylesheet.
 * ============================================================= */

:root {
  --ink: #071322;
  --ink-soft: #0a1929;
  --panel: #0b1b30;
  --panel-soft: #112941;
  --paper: #f4f7fa;
  --paper-soft: #e8eef4;
  --white: #fbfdff;
  --text: #eef7fc;
  --text-soft: #a8bac7;
  --text-dark: #0b1b30;
  --text-dark-soft: #526677;
  --line: rgba(196, 229, 247, 0.12);
  --line-dark: rgba(11, 27, 48, 0.14);
  --mint: #5badda;
  --mint-strong: #218bc9;
  --ember: #45b7e8;
  --ember-soft: #a7d2e9;
  --danger: #ff6b67;
  --content: 1200px;
  --radius-lg: 32px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  --nav-height: 76px;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 0.9375rem;
  --fs-base: 1rem;
  --fs-lead: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.625rem;
  --fs-3xl: 2.5rem;
  --fs-heading-sm: clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-heading-md: clamp(1.75rem, 3vw, 2.7rem);
  --fs-heading-lg: clamp(2.45rem, 4.5vw, 4.2rem);
  --fs-heading-xl: clamp(2.7rem, 5vw, 4.8rem);
  --fs-display-lg: clamp(3.25rem, 6.6vw, 6.5rem);
  --fs-display-xl: clamp(3.5rem, 7.5vw, 7rem);
  --fs-decorative: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: Inter, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

/* Standardized type scale. Use these classes in markup instead of
   defining one-off component font sizes. The minimum size is 13px. */
.fs-xs { font-size: var(--fs-xs) !important; }
.fs-sm { font-size: var(--fs-sm) !important; }
.fs-md { font-size: var(--fs-md) !important; }
.fs-base { font-size: var(--fs-base) !important; }
.fs-lead { font-size: var(--fs-lead) !important; }
.fs-xl { font-size: var(--fs-xl) !important; }
.fs-2xl { font-size: var(--fs-2xl) !important; }
.fs-3xl { font-size: var(--fs-3xl) !important; }
.fs-heading-sm { font-size: var(--fs-heading-sm) !important; }
.fs-heading-md { font-size: var(--fs-heading-md) !important; }
.fs-heading-lg { font-size: var(--fs-heading-lg) !important; }
.fs-heading-xl { font-size: var(--fs-heading-xl) !important; }
.fs-display-lg { font-size: var(--fs-display-lg) !important; }
.fs-display-xl { font-size: var(--fs-display-xl) !important; }
.fs-decorative { font-size: var(--fs-decorative) !important; }

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

button,
input,
textarea {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--mint);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(91, 173, 218, 0.08), 0 0 16px rgba(91, 173, 218, 0.65);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(91, 173, 218, 0), 0 0 20px rgba(91, 173, 218, 0.8);
  }
}

/* Composition helpers. Combine these with component classes instead of
   creating a new one-off flex declaration for every layout. */
.cluster {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.cluster-nowrap {
  flex-wrap: nowrap;
}

.cluster-between {
  justify-content: space-between;
}

.cluster-end {
  justify-content: flex-end;
}

.items-end {
  align-items: flex-end;
}

.gap-xs {
  gap: 6px;
}

.stack {
  display: grid;
  gap: var(--stack-gap, 16px);
}

.text-center {
  text-align: center;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(7, 19, 34, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 19, 34, 0.94);
}

.nav-row {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(33, 139, 201, 0.2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
  font-weight: 650;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.header-actions {
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 700;
}

.text-link:hover {
  color: var(--white);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #071523;
  background: var(--mint);
  box-shadow: 0 14px 34px rgba(33, 139, 201, 0.18);
}

.button-primary:hover {
  background: #84cdf1;
  box-shadow: 0 18px 42px rgba(33, 139, 201, 0.26);
}

.button-secondary {
  color: var(--white);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
  border-color: rgba(91, 173, 218, 0.4);
  background: rgba(91, 173, 218, 0.07);
}

.button-sm {
  min-height: 44px;
  padding-inline: 18px;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu {
  display: none;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-light {
  color: var(--text-dark);
  background: var(--paper);
}

.section-light-alt {
  color: var(--text-dark);
  background: var(--paper-soft);
}

.section-header {
  max-width: 760px;
  margin-bottom: 58px;
}

.section-header.center {
  margin-inline: auto;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--mint-strong);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-light .section-kicker,
.section-light-alt .section-kicker {
  color: #126a9c;
}

.section-header.center .section-kicker {
  justify-content: center;
}

.section-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(33, 139, 201, 0.08);
}

.section h2 {
  margin-bottom: 22px;
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-intro {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.section-light .section-intro,
.section-light-alt .section-intro {
  color: var(--text-dark-soft);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #146893;
  font-weight: 800;
}

.inline-link .icon {
  width: 17px;
  transition: transform 160ms ease;
}

.inline-link:hover .icon {
  transform: translateX(3px);
}

.form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.form-card h3 {
  margin-bottom: 7px;
}

.form-intro {
  margin-bottom: 23px;
  color: #869a90;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #9fb1a8;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--white);
  background: rgba(5, 16, 28, 0.65);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(91, 173, 218, 0.65);
  box-shadow: 0 0 0 3px rgba(91, 173, 218, 0.08);
}

.form-card .button {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 12px 0 0;
  color: #698076;
  text-align: center;
}

.site-footer {
  padding: 64px 0 32px;
  color: #81958b;
  background: #050e19;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.6fr);
  gap: 50px;
  padding-bottom: 58px;
}

.footer-brand p {
  max-width: 350px;
  margin: 20px 0 0;
}

.footer-column strong {
  display: block;
  margin-bottom: 16px;
  color: #d8e4de;
  letter-spacing: 0.05em;
}

.footer-column a {
  display: block;
  margin-top: 10px;
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--mint);
}

.footer-bottom {
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-bottom-links {
  gap: 18px;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

/* Small, intentional utilities use !important so they remain reliable when
   composed with more specific component selectors. */
.text-accent {
  color: var(--mint) !important;
}

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

.font-normal {
  font-weight: 400 !important;
}

.mt-md {
  margin-top: 22px !important;
}

.mt-lg {
  margin-top: 30px !important;
}

@media (max-width: 1050px) {
  .nav-links {
	display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    width: min(100% - 34px, var(--content));
  }

  .header-actions .text-link,
  .header-actions .button {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-menu {
    position: fixed;
    inset: var(--nav-height) 0 0;
    z-index: 99;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 24px;
    overflow-y: auto;
    background: rgba(7, 19, 34, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    color: #d5e2db;
    font-weight: 700;
  }

  .mobile-menu .button {
    margin-top: 16px;
    color: var(--ink);
  }

  .section {
    padding: 92px 0;
  }

  .footer-top {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--content));
  }

.section {
    padding: 76px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

.form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 22px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
	scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
	animation-duration: 0.01ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.01ms !important;
  }
}
