:root {
  --navy: #243b53;
  --charcoal: #141e28;
  --saffron: #d98a2b;
  --amber: #e5a94c;
  --steel: #5c768d;
  --cream: #f4f1ea;
  --ink: #e8eef3;
  --muted: #9aa8b3;
  --dim: #6b7d8c;
  --canvas: #141e28;
  --canvas-soft: #1a2835;
  --panel: rgba(36, 59, 83, 0.55);
  --line: rgba(244, 241, 234, 0.1);
  --line-strong: rgba(244, 241, 234, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Syne", ui-sans-serif, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(217, 138, 43, 0.35) transparent;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(217, 138, 43, 0.07), transparent 42%),
  linear-gradient(rgba(244, 241, 234, 0.014) 1px, transparent 1px),
  linear-gradient(90deg, rgba(244, 241, 234, 0.014) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--saffron);
  color: var(--charcoal);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

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

.mono {
  font-family: var(--mono);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--charcoal);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: clamp(18px, 3vw, 52px);
  left: clamp(18px, 3vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1280px;
  min-height: 64px;
  padding: 8px 10px 8px 18px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(20, 30, 40, 0.78);
  backdrop-filter: blur(18px) saturate(130%);
  transition: background 250ms ease, border-color 250ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  background: rgba(20, 30, 40, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  width: max-content;
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-self: center;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--cream);
  background: rgba(244, 241, 234, 0.05);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: end;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.22), transparent 65%);
  content: "";
  transform: translateX(-120%);
  transition: transform 600ms var(--ease);
}

.button:hover::before {
  transform: translateX(120%);
}

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

.button--small {
  min-height: 44px;
  padding: 0 16px;
  gap: 14px;
  font-size: 0.85rem;
}

.button--primary {
  background: linear-gradient(165deg, var(--amber), var(--saffron));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 10px 30px rgba(217, 138, 43, 0.22);
  color: var(--charcoal);
}

.button--secondary {
  border-color: var(--line-strong);
  background: rgba(244, 241, 234, 0.04);
  color: var(--cream);
}

.button--secondary:hover {
  border-color: rgba(229, 169, 76, 0.45);
}

.button--quiet {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: #d5dde4;
}

.button--quiet:hover {
  border-color: rgba(229, 169, 76, 0.4);
}

.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 70px clamp(24px, 5vw, 80px) 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(36, 59, 83, 0.2));
  overflow: hidden;
}

.footer-rings {
  position: absolute;
  top: -120px;
  right: 8%;
  width: 280px;
  height: 280px;
  opacity: 0.35;
  pointer-events: none;
}

.footer-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--steel);
  border-radius: 50%;
}

.footer-rings i:nth-child(2) {
  inset: 18%;
  border-color: var(--saffron);
  opacity: 0.6;
}

.footer-rings i:nth-child(3) {
  inset: 36%;
  border-color: var(--amber);
  opacity: 0.5;
}

.footer-top {
  display: grid;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand--footer .brand-logo {
  width: 42px;
  height: 42px;
}

.footer-top > p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.footer-links strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0;
  }

  .menu-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    padding-top: 10px;
  }

  .header-actions .button {
    flex: 1;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(20, 30, 40, 0.98);
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }
}

@media (max-width: 520px) {
  .header-start span:not(.page-button-icon) {
    display: none;
  }
}