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

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #000;
  color: #fff;
}

body.body-root {
  font-family: 'Noto Sans Hebrew', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, menu { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; }

/* ─── Scroll margin for sticky nav ─── */
div[id] {
  scroll-margin-top: 100px;
}

/* ─── Announce Bar ─── */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  color: #000;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 16px;
  text-transform: uppercase;
}

.announce-inner {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 210;
  position: relative;
}

.brand-logo { height: 36px; width: auto; }

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

/* ─── Nav: details > summary + menu > li > a ─── */
.nav-details {
  position: static;
}

.nav-details[open] .nav-overlay {
  display: flex;
}

.nav-details[open] .burger-line {
  display: none;
}

.nav-details[open] .burger-close {
  display: block;
}

.nav-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  z-index: 210;
  position: relative;
}

.nav-trigger::-webkit-details-marker { display: none; }
.nav-trigger::marker { display: none; }

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: opacity 0.2s;
}

.burger-close {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1;
}

/* Full-screen overlay menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 205;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.nav-menu li a {
  display: block;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  padding: 0.6rem 1.5rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 640px;
  transition: color 0.2s, background 0.2s;
}

.nav-menu li a:hover {
  color: #000;
  background: #fff;
}

/* ─── Sticky anchors bar ─── */
.sticky-anchors {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.9);
}

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

.anchor-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  padding: 0 1.25rem;
  height: 36px;
  min-height: 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, background 0.2s;
  text-transform: none;
}

.anchor-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* ─── Hero ─── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 128px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(60%);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem 6rem;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #000;
  background: #fff;
  padding: 6px 18px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  margin-bottom: 1.5rem;
  word-break: break-all;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 2.5rem;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  min-height: 48px;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.85);
  transform: translateY(-2px);
}

.hero-float-tag {
  position: absolute;
  top: 140px;
  right: 2.5rem;
  z-index: 3;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ─── Main layout: aside + section ─── */
.site-main {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

/* aside on left */
.site-aside {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 128px;
  align-self: flex-start;
  margin-right: 3rem;
}

.aside-inner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.aside-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.aside-label--lower {
  margin-top: 1.5rem;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aside-nav-list li a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-list li a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.aside-kw {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ─── Article + content div ─── */
.site-article {
  flex: 1;
  min-width: 0;
}

.content-section {
  /* no additional wrapper needed */
}

/* ─── Content typography from page.content ─── */
.site-article h1,
.site-article h2,
.site-article h3,
.site-article h4 {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.site-article h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  border-top: 2px solid rgba(255,255,255,0.12);
  padding-top: 2rem;
}

.site-article h2 > span {
  display: inline;
}

.site-article h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.site-article p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

.site-article ul,
.site-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.site-article li {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
}

.site-article a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
}

.site-article a:hover {
  border-color: #fff;
}

/* Glass card style for sections inside content */
.site-article div {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s;
}

.site-article div:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.site-article div h2:first-child,
.site-article div h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* faq / details inside content */
.site-article details {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}

.site-article details summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
}

.site-article details summary::-webkit-details-marker { display: none; }
.site-article details summary::marker { display: none; }

.site-article details[open] > * + * {
  margin-top: 0.75rem;
}

/* time element */
.site-article time {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ─── Footer ─── */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0 2rem 3rem;
}

.footer-cta-block {
  text-align: center;
  padding: 6rem 2rem 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 3rem;
}

.footer-cta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-cta-title {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 2.5rem;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
  min-height: 48px;
}

.footer-cta-btn:hover {
  background: rgba(255,255,255,0.85);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-dl dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-dl dd {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-dl dd a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
}

.footer-dl dd a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Scroll Reveal Animations ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal-left.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .site-main {
    flex-direction: column;
    padding: 6rem 1.5rem 4rem;
  }
  .site-aside {
    width: 100%;
    position: static;
    margin-right: 0;
    margin-bottom: 2rem;
  }
  .aside-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 1rem;
  }
  .hero-content {
    padding: 2rem 1rem 4rem;
  }
  .hero-float-tag {
    right: 1rem;
    top: 100px;
  }
  .site-main {
    padding: 5rem 1rem 3rem;
  }
  .site-article div {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-cta-block {
    padding: 3rem 1rem 2rem;
  }
  .sticky-anchors {
    padding: 0 0.5rem;
  }
  .anchor-link {
    padding: 0 0.75rem;
    font-size: 0.65rem;
  }
  .nav-menu li a {
    font-size: clamp(1.25rem, 8vw, 2.5rem);
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  .site-article h2 {
    font-size: 1.75rem;
  }
}
