/* Content Factory — Landing Page & Auth Modal */

/* ─── Landing wrapper ─── */
#landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-video-bg video.active { opacity: 1; }
.hero-bg-anim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0D0D0D 0%, #1A1612 30%, #0D1117 60%, #12100E 100%);
  background-size: 400% 400%;
  animation: bgShift 12s ease infinite;
}
@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

/* ─── Hero Header ─── */
.hero-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}
.hero-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.lang-btn {
  background: none;
  border: 1px solid rgba(200,169,110,0.4);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover {
  background: rgba(200,169,110,0.12);
  border-color: var(--accent);
}

/* ─── Hero Center ─── */
.hero-center {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}
.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero-sub {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 48px;
  text-transform: uppercase;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 52px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.hero-cta:hover::before { transform: translateY(0); }
.hero-cta:hover { color: #0D0D0D; }
.hero-cta .cta-label { position: relative; z-index: 1; }

/* ─── Scroll Arrow ─── */
.hero-arrow {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px;
  color: rgba(200,169,110,0.5);
  font-size: 20px;
  cursor: pointer;
  animation: bounce 2s ease infinite;
  transition: color 0.2s;
  user-select: none;
}
.hero-arrow:hover { color: var(--accent); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ─── Features Section ─── */
.features {
  background: var(--bg-main);
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  width: 100%;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(200,169,110,0.12);
  border-radius: 4px;
  padding: 36px 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: rgba(200,169,110,0.35);
  transform: translateY(-4px);
}
.feature-num {
  font-size: 52px;
  font-weight: 800;
  color: rgba(200,169,110,0.12);
  line-height: 1;
  margin-bottom: 18px;
}
.feature-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.features-cta { text-align: center; }

/* ─── Auth Modal (#ls) ─── */
#ls {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  transition: opacity 0.3s;
}
#ls.hidden { opacity: 0; pointer-events: none; }
.lc {
  background: var(--bg-panel);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 4px;
  padding: 44px 40px 36px;
  width: min(380px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}
.auth-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.auth-close-btn:hover { color: var(--text-primary); }
.auth-logo-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.lc input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.lc input:focus { border-color: var(--accent); }
.lc input::placeholder { color: rgba(170,170,170,0.5); }
#btnl {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: 3px;
  color: #0D0D0D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
#btnl:hover { background: var(--accent-hover); }
.lerr { font-size: 12px; color: #e24b4a; min-height: 16px; text-align: center; }

/* ─── Sidebar accent overrides ─── */
#sidebar {
  background: var(--bg-panel) !important;
  border-right: 1px solid rgba(200,169,110,0.1) !important;
}
#sb-logo { border-bottom: 1px solid rgba(200,169,110,0.08) !important; }
.sb-logo-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1.2;
}
.sb-logo-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.sbn:hover { background: rgba(200,169,110,0.08) !important; color: #ddd !important; }
.sbn.active { background: rgba(200,169,110,0.14) !important; color: var(--accent) !important; }
.sb-section { color: rgba(200,169,110,0.4) !important; font-size: 9px !important; }
.sbn-disabled { opacity: 0.3; cursor: default !important; pointer-events: none; }

/* ─── Mobile hamburger ─── */
#hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  background: var(--bg-panel);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 3px;
  color: var(--accent);
  font-size: 18px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
#mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 49;
  display: none;
}
#mob-overlay.open { display: block; }
@media (max-width: 900px) {
  #hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-header { padding: 18px 20px; }
  .features { padding: 60px 20px; }
  .sbn { min-height: 48px !important; }
}
