/* ==========================================================================
   OPENSLEEK — BASE STYLES
   Design tokens, reset, typography, header, footer, shared layout.
   Loaded on every page, before the page-specific stylesheet.
   ========================================================================== */

:root {
  /* Base */
  --ink: #0a0e17;
  --ink-soft: #10151f;
  --paper: #f7f8fa;
  --slate: #94a3b8;
  --slate-dim: #5b6472;
  --line: rgba(255, 255, 255, 0.09);

  /* IT portal */
  --it-blue: #2563eb;
  --it-violet: #7c3aed;
  --it-grad: linear-gradient(120deg, var(--it-blue), var(--it-violet));

  /* Marketing portal */
  --mkt-red: #dc2626;
  --mkt-amber: #f59e0b;
  --mkt-grad: linear-gradient(120deg, var(--mkt-red), var(--mkt-amber));

  /* Duality gradient — used sparingly, only where both worlds meet */
  --duo-grad: linear-gradient(100deg, var(--mkt-red) 0%, var(--mkt-amber) 28%, var(--it-blue) 68%, var(--it-violet) 100%);

  /* Motion */
  --ease: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --header-h: 84px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

h1, h2, h3, h4 {
  font-family: "Sansation", "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.45s var(--ease);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 34px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.primary-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--slate);
  transition: color 0.25s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--duo-grad);
  transition: width 0.4s var(--ease);
}

.primary-nav a:hover {
  color: var(--paper);
}

.primary-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  width: 30px;
  height: 22px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span { top: 10px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  .primary-nav.is-open {
    max-height: 320px;
  }

  .primary-nav a {
    width: 100%;
    padding: 1rem clamp(1.25rem, 5vw, 2.5rem);
    border-top: 1px solid var(--line);
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-it {
  background: var(--it-grad);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(37, 99, 235, 0.55);
}

.btn-mkt {
  background: var(--mkt-grad);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(220, 38, 38, 0.5);
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--slate);
}

/* ==========================================================================
   SHARED SECTION UTILITIES
   ========================================================================== */

.eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

.section-pad {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-copy p:first-child {
  font-size: 0.9rem;
  color: var(--paper);
}

.footer-copy p:last-child {
  font-size: 0.82rem;
  color: var(--slate-dim);
  margin-top: 0.2rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-socials a:hover {
  color: var(--paper);
  border-color: var(--slate);
}
