:root {
  --bg: #0d1117;
  --bg-soft: #131820;
  --card: #141920;
  --text: #eef2f7;
  --muted: #8fa0b3;
  --accent: #f2c96b;
  --accent-dim: #c8a24e;
  --line: #1e2a38;
  --line-bright: #2d3e52;
  --glow: 0 0 18px #f2c96b26;
}

* {
  box-sizing: border-box;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marqueeFade {
  0%   { opacity: 0; transform: translateY(8px) scale(0.97); filter: blur(4px); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.01); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); }
}

body.react-home-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #0d1117;
  min-height: 100vh;
  overflow-x: hidden;
}

.rh-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.rh-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(1.5);
  background: #0d1117f0;
  border-bottom: 1px solid #1e2a38;
  box-shadow: 0 1px 0 #f2c96b14;
}

.rh-nav-inner {
  display: flex;
  align-items: center;
  position: relative;
  padding: 10px 0;
}

.rh-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.rh-logo img {
  border-radius: 8px;
  background: transparent;
}

.rh-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}

.rh-links a {
  color: #b8c8d8;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #1e2d3e;
  background: #0b111b;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.18s, border-color 0.2s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.rh-links a:hover {
  background: #111d2c;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px #f2c96b28;
  transform: translateY(-1px);
}

.rh-marquee {
  margin: 16px 0 10px;
  position: sticky;
  top: 72px;
  z-index: 19;
  background: linear-gradient(90deg, #0f1620 0%, #121e2e 100%);
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  text-align: center;
}

.rh-marquee-icon {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.rh-marquee-text {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: marqueeFade 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rh-hero {
  display: block;
  margin: 14px 0 26px;
  animation: fadeUp 0.5s ease both;
}

.rh-hero-card,
.rh-video-card,
.rh-section,
.rh-footer {
  background: linear-gradient(155deg, #141b24, #0e1218);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.rh-hero-card {
  padding: 28px 28px 26px;
  border-left: 3px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.rh-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at -10% 50%, #f2c96b0c, transparent);
  pointer-events: none;
}

.rh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f2c96b16;
  border: 1px solid #f2c96b30;
  border-radius: 999px;
  padding: 3px 10px;
}

.rh-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.rh-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
}

.rh-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.rh-btn {
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.rh-btn:hover {
  transform: translateY(-2px);
}

.rh-btn.primary {
  color: #0e1218;
  background: var(--accent);
  border-color: #e6be5d;
  box-shadow: 0 4px 16px #f2c96b30;
}

.rh-btn.primary:hover {
  background: #f7d97c;
  box-shadow: 0 6px 22px #f2c96b45;
}

.rh-btn.secondary {
  color: #d9e5f2;
  background: #192030;
  border-color: var(--line-bright);
}

.rh-btn.secondary:hover {
  background: #1f2d42;
  border-color: #3d5470;
}

.rh-video-card {
  padding: 0;
  overflow: hidden;
}

.rh-video-card video {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 18px;
  background: #000;
  display: block;
}

.rh-video-el {
  opacity: 1;
  transition: opacity 0.36s ease;
}

.rh-video-el.is-fading {
  opacity: 0;
}

.rh-section {
  padding: 22px 22px 18px;
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.1s ease both;
}

.rh-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rh-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.rh-section-accent {
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  margin-left: 10px;
  vertical-align: middle;
}

.rh-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rh-org-card {
  background: #0e131c;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: cardFadeIn 0.4s ease both;
}

.rh-org-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 8px 28px #00000055;
}

.rh-org-card-image-wrap {
  position: relative;
  overflow: hidden;
}

.rh-org-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rh-org-card:hover img {
  transform: scale(1.04);
}

.rh-org-card-image-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #0e131c);
  pointer-events: none;
}

.rh-org-content {
  padding: 14px;
}

.rh-org-content h3 {
  margin: 0 0 5px;
  font-size: 0.98rem;
  font-weight: 700;
}

.rh-org-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.rh-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.rh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-bright);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.rh-dot.active {
  background: var(--accent);
  animation: dotPulse 0.35s ease;
}

.rh-footer {
  margin-bottom: 24px;
  padding: 22px;
  border-top: 2px solid var(--line);
}

.rh-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.rh-footer-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}

.rh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.rh-footer-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  transition: color 0.15s, border-color 0.15s;
}

.rh-footer-links a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.rh-footer-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.rh-kw {
  font-size: 0.78rem;
  color: #6a7d91;
  background: #111820;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
}

.rh-footer small,
.rh-footer p {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.rh-footer-copy {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #4a5a6b;
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .rh-hero {
    grid-template-columns: 1fr;
  }

  .rh-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

}

@media (max-width: 640px) {
  .rh-hero-card {
    border-left-width: 2px;
  }

  .rh-section {
    padding: 16px;
  }

  .rh-footer {
    padding: 16px;
  }

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

@media (max-width: 640px) {
  .rh-shell {
    width: calc(100% - 20px);
  }

  .rh-marquee {
    top: 110px;
  }

  .rh-nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .rh-logo {
    justify-content: center;
  }

  .rh-links {
    position: static;
    transform: none;
    justify-content: center;
  }

  .rh-links a {
    flex: 1 1 46%;
    text-align: center;
  }

  .rh-cards {
    grid-template-columns: 1fr;
  }

  .rh-hero-card,
  .rh-section,
  .rh-footer {
    padding: 14px;
  }
}
