@font-face {
  font-family: "Oxygen";
  src: url("../assets/fonts/Oxygen-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oxygen";
  src: url("../assets/fonts/Oxygen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oxygen";
  src: url("../assets/fonts/Oxygen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #141b28;
  --color-surface: #1f293a;
  --color-surface-alt: #243249;
  --color-text: #f4f1ea;
  --color-text-soft: #c8d1df;
  --color-primary: #e6942c;
  --color-primary-hover: #f2a542;
  --color-border: #31425f;
  --color-success: #82c49a;
  --shadow-strong: 0 20px 45px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-width: 1160px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Oxygen", "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at 15% 10%, #22314a 0%, var(--color-bg) 55%);
  color: var(--color-text);
  line-height: 1.6;
  padding-top: var(--header-height);
}

body.motion-enabled {
  overflow-x: clip;
}

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

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

.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;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-label {
  margin: 0;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Oxygen", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

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

.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: #1a2435;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  border-color: var(--color-primary);
  color: var(--color-text);
  background: rgba(230, 148, 44, 0.12);
}

.btn-secondary:hover {
  background: rgba(230, 148, 44, 0.22);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease,
    background-color 0.22s ease;
}

body.motion-enabled .site-header {
  opacity: 0;
  transform: translateY(-12px);
}

body.motion-enabled.page-entered .site-header {
  opacity: 1;
  transform: translateY(0);
}

body.motion-enabled .reveal-item {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.992);
  filter: blur(4px);
  transition: opacity 0.64s ease, transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.64s ease;
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
  will-change: opacity, transform, filter;
}

/* Suppress transitions during initialisation so elements snap hidden instantly */
body.motion-enabled.motion-initializing .reveal-item {
  transition: none;
  transition-delay: 0ms;
}

body.motion-enabled .reveal-item.reveal-from-left {
  transform: translate3d(-26px, 18px, 0) scale(0.992);
}

body.motion-enabled .reveal-item.reveal-from-right {
  transform: translate3d(26px, 18px, 0) scale(0.992);
}

body.motion-enabled .reveal-item.reveal-from-bottom {
  transform: translate3d(0, 18px, 0) scale(0.992);
}

body.motion-enabled .section.is-visible .reveal-item,
body.motion-enabled .site-footer.is-visible .reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.brand-logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.brand:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-item-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.55rem;
}

.nav-links a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--color-text-soft);
  background-color: transparent;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.nav-dropdown-toggle {
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}

.nav-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-item-dropdown.is-open .nav-caret {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"],
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-toggle[data-active="true"] {
  color: #1a2435;
  background: var(--color-primary);
}

.nav-submenu {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.12rem);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 17, 27, 0.94);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 60;
}

.nav-item-dropdown.is-open .nav-submenu {
  display: block;
}

.nav-submenu a {
  width: 100%;
  border-radius: 8px;
  color: var(--color-text-soft);
  background-color: transparent;
  padding: 0.56rem 0.7rem;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible,
.nav-submenu a[aria-current="page"] {
  background: var(--color-primary);
  color: #1a2435;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: #1f2a3c;
  color: var(--color-text);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease,
    transform 0.22s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(230, 148, 44, 0.45);
  background: #25344c;
}

.nav-toggle-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-toggle-icon-close {
  opacity: 0;
  transform: scale(0.8) rotate(-18deg);
}

.nav-toggle.is-open .nav-toggle-icon-open {
  opacity: 0;
  transform: scale(0.8) rotate(18deg);
}

.nav-toggle.is-open .nav-toggle-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 22, 0.45);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(140px, 0.7fr) minmax(220px, 1fr);
  align-items: start;
  column-gap: 2.5rem;
  row-gap: 1.4rem;
  padding: 3rem 0 2rem;
}

.footer-title {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.footer-brand-copy {
  min-width: 0;
}

.footer-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-soft);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.95rem 0 1.45rem;
  color: var(--color-text-soft);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-soft);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  color: var(--color-primary);
  border-color: rgba(230, 148, 44, 0.4);
  background: rgba(230, 148, 44, 0.08);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (max-width: 900px) {
  .nav-inner {
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    background: #161f30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-inner > nav {
    width: 0;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-item-dropdown::after {
    display: none;
  }

  .nav-links a,
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .nav-submenu {
    position: static;
    min-width: 100%;
    margin-top: 0.35rem;
    border-radius: 10px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem;
  }

  .nav-item-dropdown.is-open .nav-submenu {
    display: block;
  }

  .nav-links.is-open {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2.3rem 0 1.3rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.8rem 0;
  }

  .btn {
    width: 100%;
  }

  body.motion-enabled .reveal-item {
    transform: translate3d(0, 14px, 0) scale(0.995);
    transition-duration: 0.6s;
  }

  body.motion-enabled .reveal-item.reveal-from-left,
  body.motion-enabled .reveal-item.reveal-from-right,
  body.motion-enabled .reveal-item.reveal-from-bottom {
    transform: translate3d(0, 14px, 0) scale(0.995);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .reveal-item,
  .btn,
  .nav-links a,
  .nav-dropdown-toggle,
  .nav-submenu a {
    transition: none !important;
    animation: none !important;
  }

  body.motion-enabled .site-header,
  body.motion-enabled .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
