* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #09090b;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #09090b;
}

.site-main {
  flex: 1 1 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f97316;
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.25);
  flex: 0 0 auto;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #d4d4d8;
  font-size: 14px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fb923c;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  width: 42px;
  height: 42px;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px 18px;
  background: rgba(9, 9, 11, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #d4d4d8;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fb923c;
}

.mobile-nav.open {
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}

.container.wide {
  max-width: 1500px;
}

.section-bg {
  position: relative;
  min-height: calc(100vh - 92px + 20mm);
  overflow: hidden;
}

.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.25), transparent 35%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.16), transparent 30%);
  pointer-events: none;
}

.page-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 92px + 20mm);
  align-items: center;
  padding: 24px 0;
}

.page-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.035);
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  animation: revealUp 0.65s ease both;
}

.page-card.dark {
  background: linear-gradient(135deg, #18181b, #09090b);
}

.page-card.contact {
  border-color: rgba(251, 146, 60, 0.25);
  background: #f97316;
  color: #09090b;
}

.page-title {
  display: inline-block;
  margin: 0;
  color: #fb923c;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.page-title:hover {
  color: #fdba74;
}

.small-title {
  font-size: clamp(34px, 5vw, 58px);
}

.contact .page-title {
  color: #09090b;
}

.contact .page-title:hover {
  color: rgba(9, 9, 11, 0.75);
}

.blank-box {
  min-height: 260px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(9, 9, 11, 0.5);
  padding: 32px;
  color: #71717a;
}

.normal-blank {
  margin-top: 40px;
}

.text-card {
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: rgba(9, 9, 11, 0.5);
  padding: 32px;
}

.text-card p {
  max-width: 900px;
  margin: 0;
  color: #d4d4d8;
  font-size: 18px;
  line-height: 1.8;
}

.text-card p + p {
  margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  font-size: 26px;
  flex: 0 0 auto;
}

.nerd-layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.sidebar {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: rgba(9, 9, 11, 0.72);
  padding: 24px;
  min-width: 0;
}

.sidebar-title {
  margin: 0;
  color: #fb923c;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.sidebar-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.sidebar-list a {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  color: #d4d4d8;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
  white-space: normal;
}

.sidebar-list a:hover {
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
}

.contact-text {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(9, 9, 11, 0.75);
}

.site-footer {
  position: relative;
  z-index: 10;
  margin-top: -20mm;
  height: 20mm;
  flex: 0 0 20mm;
  border-top: 0;
  background: transparent;
  padding: 0 24px;
  text-align: center;
  color: #52525b;
  font-size: 11px;
  line-height: 20mm;
  overflow: hidden;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .page-wrap {
    padding: 32px 0;
  }

  .page-card {
    padding: 28px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .container.wide {
    padding: 0 12px;
  }

  .page-wrap {
    padding: 40px 0;
  }

  .page-card {
    padding: 32px;
  }
}

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

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .brand-text {
    font-size: 24px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .blank-box,
  .text-card {
    padding: 24px;
  }
}
