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

@font-face {
  font-family: 'Marcellus SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/marcellussc/v13/ke8iOgUHP1dg-Rmi6RWjbLEPgdydGKikhA.woff2') format('woff2');
}

body {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  background: #0e0e0e;
  color: #d4d4d4;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: #e0e0e0; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Marcellus SC", serif;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.site-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === PAGE BACKGROUND TEXTURE === */
.site-page-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url(/images/bg.png);
  background-position: 50% 50%;
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* === DECORATIVE PAGE BORDERS === */
.site-border-t, .site-border-b, .site-border-l, .site-border-r {
  position: fixed;
  pointer-events: none;
  user-select: none;
  background-size: 100% 100%;
  z-index: 2000;
}
.site-border-t, .site-border-b { left: 0; width: 100%; height: 100px; }
.site-border-l, .site-border-r { top: 0; height: 100%; width: 25px; }
.site-border-t { top: 0; background-image: url(/images/border-top.png); }
.site-border-b { bottom: 0; background-image: url(/images/border-bottom.png); }
.site-border-l { left: 0; background-image: url(/images/border-left.png); }
.site-border-r { right: 0; background-image: url(/images/border-right.png); }

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, transform 0.3s;
}
.site-nav.scrolled {
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(8px);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 70px;
}
.site-nav-logo {
  text-decoration: none;
  color: #ffffff;
  font-family: "Marcellus SC", serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav-logo:hover { opacity: 1; color: #ffffff; }
.site-nav-logo img { height: 40px; }
.site-nav-links { display: flex; align-items: center; gap: 0; }
.site-nav-links > a,
.site-nav-links .nav-drop-trigger {
  color: #e0e0e0;
  text-decoration: none;
  font-family: "Marcellus SC", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  position: relative;
  transition: color 0.2s;
}
.site-nav-links > a:hover,
.site-nav-links > a.active { opacity: 1; color: #ffffff; }

/* === LINK SPLIT EFFECT (from Godlike theme) === */
.link-fx { display: inline-block; position: relative; }
.link-fx::after {
  content: '';
  position: absolute;
  display: block;
  left: 0;
  right: 0;
  bottom: -3px;
  border-bottom: 1px solid currentColor;
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: 100% 0;
  transition: transform 0.2s;
}
.link-fx .fx-l {
  display: inline-block;
}
.link-fx .fx-l > span {
  display: inline-block;
  transition: transform 0.2s;
}
.link-fx .fx-r {
  display: none;
}
a:hover .link-fx::after,
a.active .link-fx::after {
  transform: scaleX(1);
  transform-origin: 0 0;
}
a:hover .link-fx .fx-l > span {
  transform: translateY(-1px);
}

/* nav dropdown */
.nav-drop { position: relative; }
.nav-drop-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-drop-trigger:hover { color: #ffffff; opacity: 1; }
.nav-caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
}
.nav-drop:hover .nav-caret { transform: rotate(180deg); }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(14, 14, 14, 0.97);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  z-index: 200;
  margin-top: 4px;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  color: #b0b0b0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  padding: 8px 24px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0;
}
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover { color: #ffffff; background: rgba(255,255,255,0.05); opacity: 1; }

.site-hamburger {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
}
.site-hamburger:hover { color: #ffffff; }

/* === BUTTONS === */
.site-btn {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.4);
  font-family: "Marcellus SC", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.site-btn:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.06);
  opacity: 1;
  color: #ffffff;
}
.site-btn-filled {
  background: #ffffff;
  color: #0e0e0e;
  border-color: #ffffff;
}
.site-btn-filled:hover {
  background: rgba(255,255,255,0.9);
  color: #0e0e0e;
}

/* === HERO === */
.site-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}
.site-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.35;
}
.site-hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 24px 60px;
}
.site-hero h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-hero .subline {
  font-size: 16px;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* === SECTIONS === */
.site-section { padding: 80px 0; }
.site-section-header { text-align: center; margin-bottom: 48px; }
.site-section-header h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-section-header p {
  font-size: 16px;
  color: #888888;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === CARD GRID === */
.site-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.site-card {
  background: #0e0e0e;
  overflow: hidden;
  transition: transform 0.3s;
}
.site-card:hover { transform: translateY(-4px); }
.site-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.site-card-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s;
}
.site-card:hover .site-card-thumb img { transform: scale(1.05); }
.site-card-thumb::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.3s;
  pointer-events: none;
}
.site-card:hover .site-card-thumb::after {
  box-shadow: inset 0 0 80px 0 rgba(0,0,0,0.5);
}
.site-card-body { padding: 28px 30px; }
.site-card h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.site-card h3 a { color: #ffffff; text-decoration: none; }
.site-card h3 a:hover { opacity: 0.7; }
.site-card .card-meta {
  font-size: 13px;
  color: #666666;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.site-card p {
  font-size: 15px;
  color: #999999;
  line-height: 1.7;
  margin-bottom: 16px;
}
.site-card-link {
  color: #ffffff;
  font-family: "Marcellus SC", serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.site-card-link:hover { border-color: #ffffff; opacity: 1; }

/* 3-col variant */
.site-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* === STATS === */
.site-stats { display: flex; gap: 60px; justify-content: center; padding: 40px 0; }
.site-stat { text-align: center; }
.site-stat-number {
  font-family: "Marcellus SC", serif;
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
}
.site-stat-label {
  font-size: 13px;
  color: #666666;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === FEATURE ROWS === */
.site-feature { padding: 60px 0; }
.site-feature-inner { display: flex; align-items: center; gap: 60px; }
.site-feature.reverse .site-feature-inner { flex-direction: row-reverse; }
.site-feature-content { flex: 1; }
.site-feature-content h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-feature-content p { font-size: 16px; color: #999999; line-height: 1.7; margin-bottom: 14px; }
.site-feature-image { flex: 1; }

/* === CTA === */
.site-cta {
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  position: relative;
}
.site-cta h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-cta p { color: #888888; font-size: 16px; margin-bottom: 28px; }

/* === SEPARATOR LINE === */
.site-sep {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto;
}
.site-sep-left { margin: 0; }

/* === GAP SPACERS === */
.gap-1 { height: 20px; }
.gap-2 { height: 40px; }
.gap-3 { height: 60px; }
.gap-4 { height: 80px; }

/* === PAGINATION === */
.site-pagination { text-align: center; padding: 20px 0; }
.site-pagination a, .site-pagination span {
  display: inline-block;
  padding: 8px 16px;
  color: #888888;
  font-family: "Marcellus SC", serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.site-pagination a:hover { color: #ffffff; opacity: 1; }
.site-pagination .current { color: #ffffff; }

/* === FOOTER === */
.site-footer {
  position: relative;
  background: #000000;
  color: #eeeeee;
  padding: 60px 0 0;
}
.site-footer-corner {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  max-height: 250px;
  pointer-events: none;
  user-select: none;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}
.site-footer-brand {
  font-family: "Marcellus SC", serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.site-footer-desc { font-size: 14px; color: #666666; line-height: 1.7; max-width: 300px; }
.site-footer-col h4 {
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.site-footer-col a {
  display: block;
  color: #777777;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s;
  text-decoration: none;
}
.site-footer-col a:hover { color: #ffffff; opacity: 1; }
.site-footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: #555555;
}
.site-footer-bottom .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer-bottom a { color: #777777; text-decoration: none; }
.site-footer-bottom a:hover { color: #ffffff; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .site-cards { grid-template-columns: 1fr 1fr; }
  .site-cards-3 { grid-template-columns: 1fr 1fr; }
  .site-hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .site-hero { min-height: 400px; }
  .site-hero h1 { font-size: 28px; }
  .site-hero-bg { background-attachment: scroll; }
  .site-cards { grid-template-columns: 1fr; }
  .site-cards-3 { grid-template-columns: 1fr; }
  .site-stats { flex-direction: column; gap: 24px; }
  .site-feature-inner { flex-direction: column; gap: 30px; }
  .site-feature.reverse .site-feature-inner { flex-direction: column; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .site-footer-desc { margin: 0 auto; }
  .site-footer-bottom .site-container { flex-direction: column; gap: 8px; text-align: center; }

  .site-border-t, .site-border-b { height: 50px; }
  .site-border-l, .site-border-r { width: 15px; }
}

@media (max-width: 480px) {
  .site-container { padding: 0 16px; }
  .site-hero h1 { font-size: 24px; letter-spacing: 0.1em; }
  .site-section { padding: 60px 0; }
  .site-section-header h2 { font-size: 24px; }
  .site-border-t, .site-border-b { height: 30px; }
  .site-border-l, .site-border-r { width: 10px; }
}

/* === MOBILE BOTTOM TAB BAR (godlike: dark, monochrome, animated) === */
.site-tabbar { display: none; }
.tabbar-indicator { display: none; }

@media (max-width: 768px) {
  .site-hamburger { display: none; }
  .site-nav-links { display: none !important; }
  .site-nav-logo img { height: 36px; }
  .site-nav-inner { justify-content: center; padding: 0 16px; min-height: 56px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .site-tabbar {
    display: flex;
    align-items: stretch;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99;
    min-height: 64px;
    background: rgba(14,14,14,0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.6);
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* sliding glow indicator that tracks the active tab (positioned by script) */
  .tabbar-indicator {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px 1px rgba(255,255,255,0.7);
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), width 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.25s;
    pointer-events: none;
  }

  .site-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px 7px;
    text-decoration: none;
    color: #e0e0e0;
    font-family: "Marcellus SC", serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
    transition: opacity 0.25s, color 0.25s;
  }
  .site-tabbar a svg {
    width: 23px; height: 23px; display: block;
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
  }
  .site-tabbar a span { display: block; line-height: 1.1; }
  .site-tabbar a:hover { opacity: 0.85; }
  .site-tabbar a.active { opacity: 1; color: #ffffff; }
  .site-tabbar a.active svg { transform: translateY(-2px) scale(1.12); }
  .site-tabbar a:active svg { transform: scale(0.9); }

  /* center tab: floating circular white pill with a slow glow pulse */
  .site-tabbar a.tab-primary {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    padding: 0;
    margin: -16px 10px 0;
    opacity: 1;
    color: #0e0e0e;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(14,14,14,0.95), 0 6px 22px rgba(255,255,255,0.25);
    transition: transform 0.18s ease;
    animation: tabbar-pulse 3.2s ease-in-out infinite;
  }
  .site-tabbar a.tab-primary span { display: none; }
  .site-tabbar a.tab-primary svg { width: 26px; height: 26px; }
  .site-tabbar a.tab-primary.active { color: #0e0e0e; }
  .site-tabbar a.tab-primary.active svg { transform: none; }
  .site-tabbar a.tab-primary:active { transform: scale(0.94); }

  @keyframes tabbar-pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(14,14,14,0.95), 0 6px 22px rgba(255,255,255,0.18); }
    50% { box-shadow: 0 0 0 5px rgba(14,14,14,0.95), 0 6px 30px rgba(255,255,255,0.45); }
  }
}
