:root {
  --color-dark: #15101f;
  --color-bright: #f5f2fb;
  --color-accent: #8b3ffb;
  --color-accent-rgb: 139, 63, 251;
  --color-bg: #1a1424;
  --color-text: #ece7f5;
  --color-muted: #a598bd;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius: 0.65rem;
  --color-blue-tint: #212145;
  --color-electric-blue: #4573fd;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Chrome */
.tn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(139, 63, 251, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.tn-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.tn-logo-wrapper {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.tn-logo {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Header CTAs & Lang group */
.tn-header__actions-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.tn-header__ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .tn-header__ctas .tn-cta--secondary {
    display: none;
  }
}

/* CTA Buttons */
.tn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

.tn-cta--primary {
  background-color: var(--color-accent);
  color: var(--color-bright);
  box-shadow: 0 0 15px rgba(139, 63, 251, 0.3);
  border: 1px solid transparent;
}

.tn-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 63, 251, 0.6);
  background-color: #9a55ff;
}

.tn-cta--secondary {
  background-color: rgba(139, 63, 251, 0.08);
  color: var(--color-text);
  border: 1px solid rgba(139, 63, 251, 0.4);
}

.tn-cta--secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(139, 63, 251, 0.18);
  border-color: var(--color-accent);
  color: var(--color-bright);
}

/* Language Switcher */
.tn-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-lang__item {
  display: inline-flex;
}

.tn-lang__link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(165, 152, 189, 0.15);
  transition: all 0.2s ease;
}

.tn-lang__link:hover {
  color: var(--color-bright);
  border-color: rgba(165, 152, 189, 0.4);
}

.tn-lang__link--active {
  color: var(--color-bright);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(139, 63, 251, 0.3);
}

/* Navigation - Always-Burger responsive drawer for 32 items menu */
.tn-nav {
  display: flex;
  align-items: center;
}

.tn-nav__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.tn-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.65rem;
  cursor: pointer;
  z-index: 1000;
  position: relative;
  background-color: rgba(139, 63, 251, 0.08);
  border: 1px solid rgba(139, 63, 251, 0.25);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.tn-nav__toggle:hover {
  background-color: rgba(139, 63, 251, 0.2);
  border-color: var(--color-accent);
}

.tn-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Checked Hamburger Animation */
.tn-nav__checkbox:checked ~ .tn-nav__toggle .tn-nav__toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  background-color: var(--color-accent);
}

.tn-nav__checkbox:checked ~ .tn-nav__toggle .tn-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.tn-nav__checkbox:checked ~ .tn-nav__toggle .tn-nav__toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  background-color: var(--color-accent);
}

/* Drawer list (always active since collapse_menu_to_burger is true) */
.tn-nav__list {
  position: fixed;
  top: 0;
  right: -340px;
  width: 340px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--color-dark);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  border-left: 1px solid rgba(139, 63, 251, 0.2);
  padding: 5.5rem 1.5rem 2.5rem 1.5rem;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  visibility: hidden;
  margin: 0;
}

.tn-nav__checkbox:checked ~ .tn-nav__list {
  right: 0;
  visibility: visible;
}

/* Smooth CSS backdrop overlay */
.tn-nav__list::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 8, 16, 0.75);
  backdrop-filter: blur(4px);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.tn-nav__checkbox:checked ~ .tn-nav__list::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tn-nav__item {
  list-style: none;
  display: block;
  width: 100%;
}

.tn-nav__link {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.tn-nav__link:hover {
  background-color: rgba(139, 63, 251, 0.1);
  color: var(--color-bright);
  border-left-color: var(--color-accent);
}

.tn-nav__link--active {
  background-color: rgba(139, 63, 251, 0.15);
  color: var(--color-bright);
  border-left-color: var(--color-accent);
  text-shadow: 0 0 10px rgba(139, 63, 251, 0.4);
}

/* Nested submenus */
.tn-nav__item--has-children {
  position: relative;
}

.tn-nav__submenu {
  list-style: none;
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  border-left: 1px solid rgba(139, 63, 251, 0.25);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.tn-nav__item--has-children:hover .tn-nav__submenu,
.tn-nav__item--has-children:focus-within .tn-nav__submenu {
  display: flex;
}

.tn-nav__submenu .tn-nav__link {
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
}

.tn-nav__submenu .tn-nav__link:hover {
  color: var(--color-bright);
}

/* Breadcrumbs */
.tn-breadcrumbs {
  background-color: rgba(21, 16, 31, 0.4);
  border-bottom: 1px solid rgba(139, 63, 251, 0.08);
  padding: 0.75rem 1.5rem;
}

.tn-breadcrumbs ol {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tn-breadcrumbs__item {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.tn-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(165, 152, 189, 0.3);
}

.tn-breadcrumbs__link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tn-breadcrumbs__link:hover {
  color: var(--color-accent);
}

.tn-breadcrumbs__item [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
  pointer-events: none;
}

/* Main Content Container */
.tn-main-container {
  min-height: 70vh;
  position: relative;
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at 50% 15%, rgba(139, 63, 251, 0.07) 0%, transparent 60%);
}

/* Footer Chrome */
.tn-footer {
  background-color: var(--color-dark);
  border-top: 2px solid var(--color-accent);
  padding: 4.5rem 1.5rem 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.tn-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  filter: blur(1px);
}

.tn-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.tn-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.tn-footer__brand {
  max-width: 420px;
}

.tn-footer__tagline {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.tn-footer__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tn-footer__middle {
  border-top: 1px solid rgba(165, 152, 189, 0.1);
  border-bottom: 1px solid rgba(165, 152, 189, 0.1);
  padding: 1.75rem 0;
}

.tn-footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tn-footer-nav__item {
  display: inline-flex;
}

.tn-footer-nav__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tn-footer-nav__link:hover {
  color: var(--color-accent);
}

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

.tn-footer__copyright {
  font-size: 0.8rem;
  color: rgba(165, 152, 189, 0.5);
  margin: 0;
  letter-spacing: 0.02em;
}