@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;700&display=swap');

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

:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #1e3a1e;
  --dark3: #0d1a0d;
  --chrome1: #c0ffc0;
  --chrome2: #a0e0a0;
  --glow-green: 0 0 8px #69ff69, 0 0 20px #69ff6966;
  --glow-cyan: 0 0 8px #00ffff, 0 0 20px #00ffff66;
  --nav-h: 64px;
  --sticky-h: 44px;
  --font: 'Noto Sans Hebrew', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body.y2k-body {
  background-color: var(--dark3);
  color: #d4ffd4;
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover, a:focus-visible {
  color: var(--green);
  text-shadow: var(--glow-green);
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

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

ul, ol { list-style: none; }

div[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--sticky-h) + 12px);
}

.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ═══════════════════════════════════════
   HEADER / MAIN NAV
═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: linear-gradient(180deg, #0d1a0dee 80%, #0d1a0d00);
  border-bottom: 1px solid #69ff6933;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-item {
  display: block;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: #a0f0a0;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--green);
  background: #69ff6911;
  text-shadow: var(--glow-green);
}

.nav-icon {
  font-size: 11px;
  color: var(--cyan);
  flex-shrink: 0;
}

.brand-center {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  padding: 8px 12px;
  min-height: 44px;
  justify-content: center;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  text-shadow: var(--glow-green);
  white-space: nowrap;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--green));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ═══════════════════════════════════════
   STICKY BAR
═══════════════════════════════════════ */
.sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--sticky-h);
  background: #172617dd;
  border-bottom: 1px solid #00ffff33;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-bar::-webkit-scrollbar { display: none; }

.sticky-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
}

.sticky-nav {
  height: 100%;
}

.sticky-nav-dl {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.sticky-nav-item {
  display: block;
  flex-shrink: 0;
}

.sticky-nav-link {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: var(--sticky-h);
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: #80d080;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-right: 1px solid #69ff6920;
  transition: color 0.2s, background 0.2s;
}

.sticky-nav-link:hover, .sticky-nav-link:focus-visible {
  color: var(--cyan);
  background: #00ffff11;
  text-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, #1a3d1a 0%, var(--dark3) 70%);
}

.hero-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(80px, 20vw, 260px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: transparent;
  -webkit-text-stroke: 1px #69ff6922;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d1a0d88 0%, #0d1a0dcc 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 20px;
}

.sparkle {
  color: var(--green);
  text-shadow: var(--glow-green);
  animation: sparkle-pulse 2s ease-in-out infinite alternate;
}

@keyframes sparkle-pulse {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.2); }
}

.hero-h1 {
  font-size: clamp(28px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.7;
  color: #b0e8b0;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dark3);
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  border-radius: 2px;
  box-shadow: 0 0 20px #69ff6966, 0 4px 20px #00000080;
  transition: transform 0.2s, box-shadow 0.2s;
  text-shadow: none;
  -webkit-text-fill-color: var(--dark3);
}

.hero-cta:hover, .hero-cta:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 36px #69ff69aa, 0 8px 32px #00000080;
  color: var(--dark3);
  -webkit-text-fill-color: var(--dark3);
  text-shadow: none;
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  animation: bubble-float 6s ease-in-out infinite alternate;
}

.b1 {
  width: 120px; height: 120px;
  background: radial-gradient(circle at 35% 35%, #69ff69, #00ffff);
  top: 15%; left: 8%;
  animation-duration: 7s;
}
.b2 {
  width: 80px; height: 80px;
  background: radial-gradient(circle at 35% 35%, #00ffff, #69ff69);
  top: 60%; left: 80%;
  animation-duration: 5s;
  animation-delay: 1s;
}
.b3 {
  width: 160px; height: 160px;
  background: radial-gradient(circle at 40% 40%, #69ff6944, #00ffff44);
  top: 70%; left: 10%;
  animation-duration: 9s;
  animation-delay: 2s;
}
.b4 {
  width: 60px; height: 60px;
  background: radial-gradient(circle at 35% 35%, #00ffff, #69ff69);
  top: 20%; left: 75%;
  animation-duration: 6s;
  animation-delay: 0.5s;
}

@keyframes bubble-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.08); }
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
.site-main {
  flex: 1;
  padding-top: calc(var(--nav-h) + var(--sticky-h));
  background: var(--dark3);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-template-rows: auto auto;
  gap: 0 32px;
  align-items: start;
}

.content-figure {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 24px 0;
}

.figure-deco {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 40px;
}

.neon-bar {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: var(--glow-green);
  animation: bar-breathe 2s ease-in-out infinite alternate;
}

.bar1 { height: 40px; animation-delay: 0s; }
.bar2 { height: 28px; animation-delay: 0.4s; background: var(--cyan); box-shadow: var(--glow-cyan); }
.bar3 { height: 18px; animation-delay: 0.8s; }

@keyframes bar-breathe {
  0% { opacity: 0.5; transform: scaleY(0.85); }
  100% { opacity: 1; transform: scaleY(1); }
}

.content-body {
  grid-column: 1;
  grid-row: 2;
}

.content-aside {
  grid-column: 2;
  grid-row: 1 / 3;
  position: sticky;
  top: calc(var(--nav-h) + var(--sticky-h) + 20px);
}

.aside-inner {
  background: linear-gradient(160deg, #1e3a1e 0%, #172617 100%);
  border: 1px solid #69ff6933;
  border-radius: 4px;
  padding: 20px 16px;
  box-shadow: 0 0 20px #69ff6911;
}

.aside-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 12px;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-nav-list li { display: block; }

.aside-link {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 13px;
  color: #90c890;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
  line-height: 1.4;
  min-height: 40px;
}

.aside-link:hover, .aside-link:focus-visible {
  color: var(--green);
  background: #69ff6911;
  text-shadow: var(--glow-green);
}

.aside-decoration {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--chrome1), var(--chrome2));
  box-shadow: 0 0 6px #69ff6966;
}

/* ── Page content styles ── */
.content-body h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin: 48px 0 16px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body h3 {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--cyan);
  margin: 32px 0 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.content-body small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 6px;
  opacity: 0.8;
}

.content-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #c0e8c0;
  margin-bottom: 16px;
}

.content-body ul, .content-body ol {
  margin: 0 0 20px 20px;
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
  font-size: 16px;
  line-height: 1.7;
  color: #b8e0b8;
  margin-bottom: 8px;
}

.content-body a {
  color: var(--cyan);
  border-bottom: 1px solid #00ffff44;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}

.content-body a:hover {
  color: var(--green);
  border-color: var(--green);
  text-shadow: var(--glow-green);
}

.content-body div {
  padding: 48px 0;
  border-bottom: 1px solid #69ff6920;
}

.content-body div:last-child {
  border-bottom: none;
}

.content-body blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  background: #1e3a1e88;
  margin: 20px 0;
  color: #b0d8b0;
  font-style: italic;
}

.content-body strong {
  color: var(--green);
  font-weight: 600;
}

.content-body em {
  color: var(--cyan);
  font-style: normal;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.content-body th {
  background: #1e3a1e;
  color: var(--cyan);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--green);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.content-body td {
  padding: 10px 14px;
  color: #b0d8b0;
  border-bottom: 1px solid #69ff6920;
}

.content-body tr:hover td {
  background: #69ff6908;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, #172617 0%, #0d1a0d 100%);
  border-top: 1px solid #69ff6933;
  padding: 48px 24px 0;
}

.footer-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-dl-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 16px;
  display: block;
}

.footer-dl-item {
  margin-bottom: 8px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: #80b880;
  transition: color 0.2s, text-shadow 0.2s;
  padding: 4px 0;
}

.footer-link:hover, .footer-link:focus-visible {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.footer-brand-desc {
  font-size: 13px;
  color: #608060;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.08em;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #69ff6920;
  padding: 20px 0;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: #507050;
  letter-spacing: 0.04em;
}

.footer-deco {
  font-size: 12px;
  color: var(--green);
  opacity: 0.5;
  letter-spacing: 0.3em;
}

/* ═══════════════════════════════════════
   STAGGER LIST ANIMATION
═══════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .content-body div {
    animation: fade-up 0.5s ease both;
  }

  .content-body div:nth-child(1) { animation-delay: 0.05s; }
  .content-body div:nth-child(2) { animation-delay: 0.1s; }
  .content-body div:nth-child(3) { animation-delay: 0.15s; }
  .content-body div:nth-child(4) { animation-delay: 0.2s; }
  .content-body div:nth-child(5) { animation-delay: 0.25s; }
  .content-body div:nth-child(6) { animation-delay: 0.3s; }
  .content-body div:nth-child(7) { animation-delay: 0.35s; }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-link, .sticky-nav-link, .aside-link, .footer-link {
    transition: color 0.2s, background 0.2s, text-shadow 0.2s, transform 0.15s;
  }

  .nav-link:hover { transform: translateY(-1px); }
  .aside-link:hover { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --sticky-h: 44px;
  }

  .main-nav {
    gap: 4px;
  }

  .nav-text { font-size: 12px; }
  .nav-left, .nav-right { flex-wrap: nowrap; overflow-x: auto; }

  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 32px 16px 60px;
  }

  .content-figure {
    grid-column: 1;
    grid-row: 1;
  }

  .content-aside {
    grid-column: 1;
    grid-row: 3;
    position: static;
    margin-top: 40px;
  }

  .content-body {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-h1 {
    font-size: clamp(24px, 8vw, 44px);
  }
}

@media (max-width: 480px) {
  .main-nav {
    padding: 0 8px;
  }

  .nav-link {
    padding: 10px 6px;
    font-size: 11px;
    min-height: 44px;
  }

  .nav-icon { display: none; }

  .brand-name {
    font-size: 13px;
  }

  .brand-link {
    padding: 8px 8px;
    min-height: 44px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .hero-desc {
    font-size: 15px;
  }

  .sticky-nav-link {
    padding: 0 10px;
    font-size: 12px;
    min-height: 44px;
  }
}

/* ═══════════════════════════════════════
   CHROME / METALLIC ACCENTS
═══════════════════════════════════════ */
.content-body h2::after {
  content: '';
  display: block;
  height: 2px;
  width: 48px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 1px;
  margin-top: 8px;
  box-shadow: var(--glow-green);
}

.content-body h3::before {
  content: '◈ ';
  color: var(--cyan);
  font-size: 0.8em;
  opacity: 0.7;
}

.btn-glossy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  min-height: 44px;
  background: linear-gradient(160deg, #69ff69 0%, #00d4d4 100%);
  color: var(--dark3);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  box-shadow: 0 2px 12px #69ff6944, inset 0 1px 0 #ffffff33;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-text-fill-color: var(--dark3);
}

.btn-glossy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px #69ff6966, inset 0 1px 0 #ffffff44;
  -webkit-text-fill-color: var(--dark3);
  color: var(--dark3);
  text-shadow: none;
}
