* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 140, 255, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(135deg, #05070a, #0b0f17 45%, #151923);
  color: #e8eef8;
  min-height: 100vh;
  overflow-x: hidden;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

.top-line {
  height: 4px;
  background: linear-gradient(90deg, #00a3ff, #64748b, #111827);
  box-shadow: 0 0 26px rgba(0, 163, 255, 0.75);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  text-decoration: none;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo span {
  color: #00a3ff;
}

.menu-button {
  display: none;
  color: #e8eef8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 10px 14px;
  border-radius: 8px;
  transition: 0.25s;
  font-size: 14px;
}

.nav a:hover {
  color: #ffffff;
  border-color: rgba(0, 163, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 163, 255, 0.18);
  transform: translateY(-2px);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: stretch;
}

.hero-content,
.hero-panel,
.side-card,
.post-card,
.modal-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    linear-gradient(135deg, rgba(0,163,255,0.12), transparent 58%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.hero-content {
  border-radius: 24px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.hero-content::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -90px;
  right: -80px;
  border-radius: 50%;
  border: 1px solid rgba(0, 163, 255, 0.3);
  box-shadow: 0 0 90px rgba(0, 163, 255, 0.18);
}

.eyebrow,
.section-head p {
  margin: 0 0 10px;
  color: #8ed7ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: 1px;
}

.hero-text {
  color: #b6c3d1;
  font-size: 17px;
  line-height: 1.9;
  max-width: 720px;
  margin: 20px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 800;
  transition: 0.25s;
  border: none;
}

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

.primary {
  color: #06111c;
  background: #00a3ff;
  box-shadow: 0 0 24px rgba(0, 163, 255, 0.35);
}

.ghost {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.hero-panel {
  border-radius: 24px;
  padding: 26px;
}

.panel-title {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.status-list {
  display: grid;
  gap: 14px;
}

.status-list div {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.status-list strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.status-list span {
  color: #94a3b8;
  font-size: 14px;
}

.blog-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  align-items: start;
}

.section-head {
  text-align: center;
  margin-bottom: 20px;
}

.section-head.left {
  text-align: left;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 1px;
}

.tools {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

#searchInput {
  width: 100%;
  color: #e8eef8;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}

#searchInput:focus {
  border-color: rgba(0, 163, 255, 0.75);
  box-shadow: 0 0 18px rgba(0, 163, 255, 0.16);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tabs button {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  transition: 0.25s;
}

.category-tabs button.active,
.category-tabs button:hover {
  color: #06111c;
  background: #00a3ff;
  border-color: #00a3ff;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  border-radius: 20px;
  padding: 20px;
  transition: 0.25s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 163, 255, 0.5);
}

.post-meta {
  margin: 0 0 8px;
  color: #8ed7ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.post-card h3 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 24px;
}

.post-card p,
.side-card p,
.modal-card p,
.modal-card li {
  color: #aab8c7;
  line-height: 1.85;
  font-size: 15px;
}

.text-button {
  color: #ffffff;
  background: none;
  border: none;
  padding: 0;
  font-weight: 900;
  transition: 0.25s;
}

.text-button:hover {
  color: #8ed7ff;
}

.empty {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 24px;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.side-card {
  border-radius: 20px;
  padding: 22px;
}

.side-card h3 {
  margin: 0 0 14px;
  font-size: 19px;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: #cbd5e1;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: 0.25s;
}

.side-links a:hover {
  color: #ffffff;
  border-color: rgba(0, 163, 255, 0.45);
}

.howto-list {
  margin: 0;
  padding-left: 20px;
  color: #aab8c7;
  line-height: 1.9;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10;
}

.modal.show {
  display: block;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(760px, calc(100% - 32px));
  max-height: 84vh;
  overflow-y: auto;
  margin: 8vh auto;
  border-radius: 22px;
  padding: 30px;
  z-index: 1;
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.modal-card h3 {
  color: #ffffff;
  margin-top: 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 24px;
}

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
  padding: 30px 20px;
  color: #7f8ea3;
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero,
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .nav.show {
    display: flex;
  }

  h1 {
    font-size: 36px;
  }

  .hero-content {
    padding: 30px;
  }

  .logo {
    font-size: 25px;
  }
}
