:root {
  --shell-bg: #07101e;
  --shell-surface: rgba(12, 23, 40, 0.82);
  --shell-border: rgba(148, 163, 184, 0.16);
  --shell-text: #f8fafc;
  --shell-muted: #94a3b8;
  --shell-accent: #4f8cff;
  --shell-accent-soft: rgba(79, 140, 255, 0.14);
}

[data-theme="light"] {
  --shell-bg: #f7f9fd;
  --shell-surface: rgba(255, 255, 255, 0.84);
  --shell-border: rgba(15, 23, 42, 0.1);
  --shell-text: #0f172a;
  --shell-muted: #64748b;
  --shell-accent: #2563eb;
  --shell-accent-soft: rgba(37, 99, 235, 0.1);
}

winfocus-header,
winfocus-footer {
  display: block;
  color: var(--shell-text);
  font-size: 16px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  line-height: 1.5;
}

winfocus-header *,
winfocus-footer * { box-sizing: border-box; }

.wf-shell-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition: min-height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.wf-shell-header.is-scrolled,
.wf-shell-header.menu-open {
  min-height: 70px;
  background: color-mix(in srgb, var(--shell-bg) 88%, transparent);
  border-color: var(--shell-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wf-shell-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: 82px;
  color: var(--shell-text);
  text-decoration: none;
}

.wf-shell-brand img {
  display: block;
  width: 82px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.wf-shell-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--shell-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--shell-surface) 76%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme="light"] winfocus-header .wf-shell-header .wf-shell-nav {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.07);
}

.wf-shell-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--shell-muted);
  font-size: 0.78em;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.wf-shell-nav a:hover,
.wf-shell-nav a[aria-current="page"] {
  color: var(--shell-text);
  background: var(--shell-accent-soft);
}

.wf-shell-divider {
  width: 1px;
  height: 17px;
  margin-inline: 5px;
  background: var(--shell-border);
}

.wf-shell-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.wf-shell-theme,
.wf-shell-menu {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--shell-border);
  border-radius: 50%;
  background: var(--shell-surface);
  color: var(--shell-text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.wf-shell-theme:hover,
.wf-shell-menu:hover {
  border-color: var(--shell-accent);
  transform: translateY(-1px);
}

.wf-shell-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #236be8, #7057e8);
  box-shadow: 0 10px 24px rgba(45, 105, 225, 0.25);
  font-size: 0.76em;
  font-weight: 600;
  text-decoration: none;
}

.wf-shell-menu {
  display: none;
}

.wf-shell-menu-lines,
.wf-shell-menu-lines::before,
.wf-shell-menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  content: "";
  transition: transform 0.2s ease;
}

.wf-shell-menu-lines::before { transform: translateY(-6px); }
.wf-shell-menu-lines::after { transform: translateY(4px); }
.menu-open .wf-shell-menu-lines { background: transparent; }
.menu-open .wf-shell-menu-lines::before { transform: translateY(0) rotate(45deg); }
.menu-open .wf-shell-menu-lines::after { transform: translateY(-2px) rotate(-45deg); }

.wf-shell-footer {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 70px clamp(24px, 7vw, 112px) 24px;
  font-size: 16px;
  align-items: initial;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  background: #060b14;
  content-visibility: visible;
  contain: none;
}

.wf-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(2, minmax(150px, 0.65fr));
  align-items: start;
  gap: clamp(34px, 6vw, 90px);
  max-width: 1180px;
  margin: 0 auto;
}

.wf-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.wf-footer-brand img { display: block; width: 42px; height: 29px; object-fit: contain; }
.wf-footer-about { min-width: 0; }
.wf-footer-about p { max-width: 440px; margin: 14px 0 0; padding: 0; color: #94a3b8; font-size: 0.85em; line-height: 1.75; }
.wf-footer-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: #cbd5e1; font-size: 0.75em; }
.wf-footer-column { min-width: 0; align-self: start; text-align: left; }
.wf-footer-column h2 { margin: 0 0 18px; padding: 0; color: #fff; font-size: 0.9em; line-height: 1.5; }
.wf-footer-links {
  position: static;
  display: grid;
  justify-self: stretch;
  justify-items: start;
  align-items: start;
  width: auto;
  max-width: none;
  height: auto;
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.wf-footer-links a { color: #94a3b8; font-size: 0.78em; text-decoration: none; transition: color 0.2s ease; }
.wf-footer-links a:hover { color: #fff; }

winfocus-footer .wf-shell-footer .wf-footer-links {
  margin: 0;
  text-align: left;
  border-color: transparent;
  background: transparent;
}

.wf-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.7em;
}

.wf-footer-bottom a { color: #93c5fd; text-decoration: none; }

@media (max-width: 992px) {
  .wf-shell-header { grid-template-columns: 1fr auto; }
  .wf-shell-nav {
    position: fixed;
    inset: 76px 18px auto;
    width: auto;
    max-width: none;
    height: auto;
    flex-direction: initial;
    justify-self: stretch;
    align-items: stretch;
    grid-auto-flow: row;
    display: grid;
    gap: 3px;
    padding: 11px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--shell-bg) 94%, transparent);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .wf-shell-nav a { display: block; width: 100%; padding: 11px 13px; border-radius: 10px; }
  .wf-shell-divider { display: none; }
  .menu-open .wf-shell-nav { opacity: 1; pointer-events: auto; transform: none; }
  .wf-shell-menu { display: grid; }
  .wf-shell-contact span { display: none; }
  .wf-shell-contact { width: 42px; padding: 0; justify-content: center; }
  .wf-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .wf-shell-header { gap: 14px; padding-inline: 28px; }
  .wf-shell-brand,
  .wf-shell-brand img { width: 70px; }
  .wf-shell-nav a { padding-inline: 9px; font-size: 0.7em; }
  .wf-shell-contact { padding-inline: 13px; font-size: 0.7em; }
}

@media (max-width: 650px) {
  .wf-shell-header { min-height: 70px; padding-inline: 18px; }
  .wf-shell-brand,
  .wf-shell-brand img { width: 58px; height: 28px; }
  .wf-shell-theme { display: none; }
  .wf-shell-nav { top: 68px; }
  .wf-shell-footer { padding: 52px 24px 22px; text-align: center; }
  .wf-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wf-footer-column { text-align: center; }
  .wf-footer-about p { margin-inline: auto; }
  .wf-footer-contact { justify-content: center; }
  .wf-footer-links { justify-items: center; }
  .wf-footer-bottom { display: grid; justify-content: center; margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-shell-header,
  .wf-shell-nav,
  .wf-shell-theme,
  .wf-shell-menu { transition: none; }
}
