@import url("https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/mononoki.min.css");

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent-primary: #0ea5e9;
  --accent-secondary: #10b981;
  --accent-tertiary: #3b82f6;
  --accent-glow: #60a5fa;
  --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  --gradient-2: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  --gradient-3: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Banner & Navigation */
.banner {
  top: 0;
  position: sticky;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  background: white;
  border-bottom: 2px solid var(--border-color);
  z-index: 1000;
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}

.banner img {
  margin: auto 4px;
  display: inline;
  width: 77px;
  height: 60px;
}

.banner span {
  margin: auto 0;
}

.banner c {
  line-height: 1.5;
  font-family: 'Orbitron', Impact, sans-serif;
  font-size: xx-large;
  font-weight: 700;
}

.headnav {
  margin-left: 4em;
  display: flex;
  gap: 4px;
}

.headnav a {
  padding: 10px 18px;
  margin: 0;
  line-height: 2;
  display: inline-block;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.headnav a.active {
  background: var(--gradient-1);
  color: white;
  box-shadow: var(--shadow-md);
}

.headnav a:hover[href] {
  background-color: var(--bg-hover);
  color: var(--accent-primary);
}

/* Content Sections */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.hero {
  text-align: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 60px 40px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
}

pre {
  max-width: 100%;
  color: #f8fafc;
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  line-height: 1.6;
}

pre span {
  color: #66d9ef;
}

pre,
pre * {
  font-size: 12px;
  font-family: 'Monaco', 'mononoki', 'consolas', monospace;
}

pre code {
  color: lightgreen;
  background: transparent;
  padding: 0;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 20px 20px;
  margin-top: 20px;
  display: flex;
  align-items: center;
}

.footer div:nth-child(1) {
  margin-right: auto;
}

.footer div:nth-child(3) {
  margin-left: auto;
}

.footer div {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

.language a {
  color: var(--accent-primary);
  text-decoration: none;
}

.language a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

@media only screen and (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 768px) {
  .banner {
    /*flex-direction: column;*/
    align-items: center;
    padding: 10px;
  }

  .banner img {
    width: 9vw;
    height: 7vw;
  }

  .headnav {
    margin-left: 0;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .headnav a {
    font-size: 13px;
    padding: 8px 14px;
  }

  .banner c {
    font-size: 1.2rem;
  }

  .content {
    padding: 40px 15px;
  }

  .hero {
    padding: 40px 20px;
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer {
    flex-direction: column;
  }
}

@media only screen and (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
}