:root {
  /* backgrounds */
  --bg-0: #000402;
  --bg-1: #011b17;
  --bg-2: #052a22;

  /* typography */
  --text-1: #c8fef8;   /* bright headings / key text */
  --text-2: #1fd8bc;   /* accent / links */
  --text-3: #38ab9a;   /* secondary / muted text */

  /* buttons */
  --btn-bg: #001414;
  --btn-accent: #1adabb;

  /* utility */
  --danger: #ff3b3b;
  --border-dim: rgba(31, 216, 188, 0.18);
  --border-bright: rgba(26, 218, 187, 0.45);
  --glow-cyan: 0 0 24px rgba(26, 218, 187, 0.25);
  --glow-cyan-strong: 0 0 32px rgba(26, 218, 187, 0.45);
  --glass-bg: rgba(5, 42, 34, 0.45);

  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;

  --header-h: 68px;
  --search-h: 56px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(5, 42, 34, 0.55), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 20%, rgba(31, 216, 188, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  background-attachment: fixed;
  color: var(--text-3);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-mono); color: var(--text-1); margin: 0; }

a { color: var(--text-2); text-decoration: none; }

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

.logo-blink {
  animation: blink 1.1s step-end infinite;
  color: var(--btn-accent);
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================== HEADER =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 7, 6, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dim);
}

.header-bar {
  height: var(--header-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-bracket { color: var(--text-2); }

.main-nav { flex: 1; display: flex; justify-content: flex-end; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-3);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}
.nav-link:hover {
  color: var(--text-1);
  text-shadow: 0 0 10px rgba(200, 254, 248, 0.6);
  transform: translateY(-1px);
}

.nav-link--cta {
  background: var(--btn-accent);
  color: var(--btn-bg);
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}
.nav-link--cta:hover {
  color: var(--btn-bg);
  box-shadow: var(--glow-cyan-strong);
  text-shadow: none;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { border-color: var(--border-bright); box-shadow: var(--glow-cyan); color: var(--text-1); }
.icon-btn[aria-expanded="true"] { color: var(--text-1); border-color: var(--border-bright); box-shadow: var(--glow-cyan); }
.icon-btn--sm { width: 30px; height: 30px; font-size: 18px; line-height: 1; }

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  background: transparent;
  cursor: pointer;
}
.burger-btn span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text-2);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* search bar — sticky, tied to header */
.search-bar {
  max-height: 0;
  overflow: hidden;
  background: rgba(1, 7, 6, 0.95);
  border-bottom: 1px solid transparent;
  transition: max-height 0.3s ease, border-color 0.3s ease;
}
.search-bar.open { max-height: 320px; border-bottom-color: var(--border-dim); }

.search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--search-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 15px;
}
#search-input::placeholder { color: var(--text-3); opacity: 0.7; }

.search-results {
  list-style: none;
  margin: 0;
  padding: 0 24px 14px;
  max-width: 1200px;
  margin: 0 auto;
}
.search-results li a {
  display: block;
  padding: 9px 12px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(5, 42, 34, 0.6);
  border: 1px solid var(--border-dim);
  color: var(--text-1);
  font-size: 13px;
}
.search-results li a:hover { border-color: var(--border-bright); box-shadow: var(--glow-cyan); }
.search-results li a small { display: block; color: var(--text-3); font-size: 11px; margin-top: 2px; }
.search-results .no-results { padding: 9px 12px; color: var(--text-3); font-size: 13px; }

/* mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  color: var(--text-1);
  cursor: pointer;
}

.mobile-nav-list { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-nav-list li { margin: 18px 0; }
.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--text-1);
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav-search { font-size: 16px; color: var(--text-2); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

/* =========================== LAYOUT / REVEAL =========================== */

main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 90px 0 40px; scroll-margin-top: calc(var(--header-h) + 12px); }

.section-title {
  font-size: 28px;
  text-align: center;
  color: var(--text-2);
  margin-bottom: 36px;
  text-shadow: 0 0 18px rgba(31, 216, 188, 0.35);
  letter-spacing: 1px;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================== HERO =========================== */

.hero { padding: 100px 0 60px; text-align: center; }

.hero-title-wrap {
  background: linear-gradient(135deg, #3a0000, #7a0d0d 45%, #3a0000);
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: 0 0 50px rgba(200, 20, 20, 0.35), inset 0 0 40px rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.25);
}

.hero-title {
  font-size: 48px;
  color: #ffeceb;
  text-shadow: 0 0 22px rgba(255, 70, 70, 0.8), 0 0 60px rgba(255, 70, 70, 0.4);
  line-height: 1.25;
  word-break: break-word;
}
.hero-title-colon { color: #ff9d9d; }

.hero-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0 36px;
  flex-wrap: wrap;
}
.hero-img { width: 280px; height: auto; }
.hero-img-bck { background-color: #ffffff; }

.hero-text {
  margin: 0 auto;
  font-size: 20px;
  color: var(--text-1);
  font-weight: 400;
  line-height: 1.7;
}
.detail-color_red {
  color: #ff3b3b;
}
.detail-color_yellow {
  color: #f5ff3b;
}

/* =========================== PLACEHOLDER IMG =========================== */

.img-placeholder {
  position: relative;
  background: linear-gradient(160deg, rgba(5, 42, 34, 0.9), rgba(1, 7, 6, 0.9));
  border: 1px dashed var(--border-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.img-placeholder:hover { border-color: var(--border-bright); box-shadow: var(--glow-cyan); }
.img-placeholder::before {
  content: "";
  width: 46px;
  height: 46px;
  background-color: var(--text-3);
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><path d='M21 15l-5-5L5 21'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><path d='M21 15l-5-5L5 21'/></svg>") center/contain no-repeat;
}
.img-placeholder::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  opacity: 0.8;
}

/* =========================== PANELS / CARDS =========================== */

.panel {
  background: var(--glass-bg);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 28px 28px 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.panel:hover { border-color: var(--border-bright); }

.panel-subtitle { font-size: 28px; color: var(--text-1); margin-bottom: 10px;}
.panel-text { color: var(--text-3); font-size: 18px; margin: 0 0 20px; }

/* =========================== CONTENT BLOCKS (Title1) =========================== */

.content-blocks { display: flex; flex-direction: column; gap: 32px; }

.content-block {
  background: var(--glass-bg);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease;
}
.content-block:hover { border-color: var(--border-bright); }

.block-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-dim);
}
.block-number {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--btn-accent);
  opacity: 0.8;
}
.block-title { font-size: 28px; color: var(--text-1); }

.block-element { margin-bottom: 20px; }
.block-element:last-child { margin-bottom: 0; }

.block-text { color: var(--text-3); font-size: 18px; line-height: 1.75; }
.block-text strong { color: var(--text-2); }

.block-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}

.block-image { min-height: 170px; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 10px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 420px;
}
.data-table th, .data-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border-dim);
}
.data-table th {
  background: rgba(31, 216, 188, 0.08);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.4px;
}
.data-table td { color: var(--text-3); }
.data-table tbody tr { transition: background 0.2s ease; }
.data-table tbody tr:hover { background: rgba(31, 216, 188, 0.05); }

/* =========================== COMMENTS TABLE =========================== */

.comments-table td.col-user { display: flex; align-items: center; gap: 10px; border-bottom: none; }
.avatar-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--btn-bg);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-icon svg { width: 14px; height: 14px; color: var(--btn-accent); }
.username { color: var(--text-1); font-family: var(--font-mono); font-size: 13px; }

.paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.pager-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  background: var(--btn-bg);
  color: var(--btn-accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.pager-btn:hover:not(:disabled) { box-shadow: var(--glow-cyan); transform: translateY(-1px); }
.pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pager-info { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); min-width: 90px; text-align: center; }

/* =========================== BUTTONS =========================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--btn-bg);
  color: var(--btn-accent);
  border: 1px solid var(--border-bright);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.25s ease;
}
.btn-primary:hover {
  box-shadow: var(--glow-cyan-strong);
  transform: translateY(-2px);
  background: #002020;
}
.btn-primary svg { flex-shrink: 0; }

/* =========================== FOOTER =========================== */

.site-footer {
  text-align: center;
  padding: 50px 24px 60px;
  border-top: 1px solid var(--border-dim);
  margin-top: 60px;
}
.footer-gif {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 50%;
  /*border: 1px solid var(--border-bright);
  box-shadow: var(--glow-cyan-strong);*/
}
.footer-text { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.opacity-display { opacity: 0.0; }

/* =========================== RESPONSIVE =========================== */

@media (max-width: 992px) {
  .hero-title { font-size: 36px; }
  .section { padding: 70px 0 30px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .burger-btn { display: flex; }
}

@media (max-width: 600px) {
  .header-bar { padding: 0 16px; }
  main { padding: 0 16px; }
  .hero { padding: 50px 0 60px; }
  .hero-title { font-size: 36px; }
  .hero-title-wrap { padding: 20px 14px; }
  .hero-text { font-size: 17px; margin-top: 50px;}
  .hero-img { width: 100%; max-width: 200px; height: auto; }
  .section-title { font-size: 22px; }
  .panel, .content-block { padding: 20px; }
  .block-row { grid-template-columns: 1fr; }
  .hero-images { margin: 50px auto; }
}
