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

:root {
  --navy: #11296b;
  --blue: #00509d;
  --paper: #ededed;
  --white: #ffffff;
  --yellow: #ffcb05;
  --yellow-soft: #ffdb57;
  --ink: #0d1838;
  --body: #314468;
  --muted: #687799;
  --line: rgba(17, 41, 107, 0.14);
  --line-strong: rgba(17, 41, 107, 0.24);
  --shadow: 0 22px 60px rgba(17, 41, 107, 0.12);
  --nav-height: 72px;
  --sidebar-width: 300px;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  padding-top: var(--nav-height);
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  box-shadow: 0 18px 44px rgba(17, 41, 107, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-logo img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
  transition: transform 220ms ease, filter 220ms ease;
}

.nav-logo:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.nav-logo:hover img {
  transform: translateY(-1px) scale(1.08);
  filter:
    drop-shadow(0 0 10px rgba(255, 203, 5, 0.55))
    drop-shadow(0 8px 18px rgba(0, 80, 157, 0.18));
}

.nav-links-manifesto {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
}

.nav-links-manifesto a {
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 760;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links-manifesto a:hover {
  color: var(--blue);
}

.nav-links-manifesto .nav-cta {
  color: var(--navy) !important;
  background: var(--yellow);
  padding: 0.62rem 0.9rem;
  border-radius: 6px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 203, 5, 0.2);
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 220ms ease, opacity 160ms ease;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.layout {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

aside {
  position: sticky;
  top: var(--nav-height);
  height: calc(100svh - var(--nav-height));
  padding: 2rem 1.25rem 2rem 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.sidebar-group + .sidebar-group {
  margin-top: 1.7rem;
}

.sidebar-label {
  color: var(--blue);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-links {
  list-style: none;
  margin-top: 0.55rem;
  display: grid;
  gap: 0.18rem;
}

.sidebar-links a {
  display: block;
  padding: 0.42rem 0.55rem;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  color: var(--navy);
  border-left-color: var(--yellow);
  background: rgba(255, 203, 5, 0.16);
}

main {
  min-width: 0;
  padding: clamp(2.5rem, 5vw, 4rem) 0 4rem;
}

.hero {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(0, 80, 157, 0.18);
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--blue);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.16);
}

.hero h1 {
  max-width: 860px;
  margin-top: 1.2rem;
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero p.lead {
  max-width: 780px;
  margin-top: 1.2rem;
  color: var(--body);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

section {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

h2 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}

h2::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--yellow);
  flex: 0 0 auto;
}

h3 {
  margin: 1.6rem 0 0.8rem;
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

p {
  margin-bottom: 1.15rem;
  color: var(--body);
  font-size: 1.02rem;
}

p strong,
li strong {
  color: var(--navy);
  font-weight: 800;
}

ul,
ol {
  color: var(--body);
  padding-left: 1.25rem;
  margin: 1rem 0;
}

li + li {
  margin-top: 0.45rem;
}

code {
  color: var(--navy);
  background: rgba(0, 80, 157, 0.08);
  border: 1px solid rgba(0, 80, 157, 0.12);
  border-radius: 5px;
  padding: 0.08rem 0.3rem;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.9em;
}

.quote-block,
.tech-spec,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(17, 41, 107, 0.07);
}

.quote-block {
  margin: 1.6rem 0;
  padding: 1.4rem;
  border-left: 4px solid var(--yellow);
}

.quote-block blockquote {
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
}

.quote-block cite {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-family: "JetBrains Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.card {
  padding: 1.2rem;
}

.card h4 {
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.tech-spec {
  margin: 1.6rem 0;
  padding: 1.2rem;
  background: var(--navy);
  color: var(--white);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.82rem;
}

.tech-spec header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(237, 237, 237, 0.16);
  color: rgba(237, 237, 237, 0.72);
}

.tech-line {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  gap: 1rem;
  margin-top: 0.65rem;
}

.tech-label {
  color: var(--yellow-soft);
  font-weight: 800;
}

.tech-val {
  color: rgba(237, 237, 237, 0.82);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

th,
td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  text-align: left;
  font-size: 0.94rem;
}

th {
  color: var(--navy);
  background: #f7f9fc;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

footer {
  padding: 2.4rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
}

.footer-brand img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 750;
}

.footer-right {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
}

#lightbox {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 24, 56, 0.88);
  cursor: zoom-out;
  backdrop-filter: blur(10px);
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 92%;
  max-height: 86%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: clamp(2rem, 8vh, 4.5rem);
  z-index: 10001;
  width: min(380px, calc(100vw - 2.5rem));
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 203, 5, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 28px 70px rgba(17, 41, 107, 0.18);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, var(--yellow), var(--blue));
}

.toast.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast-x-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.4rem;
}

.toast-title {
  padding-right: 1.8rem;
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.05;
}

.toast-title span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 203, 5, 0.18);
}

.toast-desc {
  margin-top: 0.65rem;
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.55;
}

.toast-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.toast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.82rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.toast-btn-primary {
  color: var(--navy);
  background: linear-gradient(180deg, var(--yellow-soft), var(--yellow));
  box-shadow: 0 10px 24px rgba(255, 203, 5, 0.28);
}

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

.toast-btn-primary:hover {
  box-shadow: 0 14px 30px rgba(255, 203, 5, 0.34);
}

.toast-btn-secondary {
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--white);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  aside {
    display: none;
  }

  main {
    padding-top: 2rem;
  }
}

@media (max-width: 820px) {
  .burger {
    display: flex;
  }

  .nav-links-manifesto {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-links-manifesto a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links-manifesto li:last-child a {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  nav {
    height: 66px;
  }

  :root {
    --nav-height: 66px;
  }

  .hero {
    padding: 1.4rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4.5rem);
  }

  h2 {
    align-items: flex-start;
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .layout {
    width: min(100% - 1.25rem, 1280px);
  }

  .toast {
    left: 0.75rem;
    right: auto;
    bottom: 1rem;
    width: calc(100dvw - 1.5rem);
    max-width: 360px;
    padding: 1.1rem;
  }

  .toast-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tech-line {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .tech-spec header {
    flex-direction: column;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
